This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [SH] Fold big/little endian word code with MSW and LSW


On Fri, 2012-04-06 at 07:38 +0900, Kaz Kojima wrote:
> Oleg Endo <oleg.endo@t-online.de> wrote:
> > The attached patch folds some of the code that needs to access high/low
> > subwords depending on the target endianess by utilizing the existing MSW
> > and LSW macros.
> [snip]
> > 	* config/sh/sh.c (MSW, LSW): Move macros to...
> > 	* config/sh/sh.h: ...here.
> > 	* config/sh/sh.md: Use MSW and LSW macros where applicable.
> 
> Exposing three-letter macro MSW and LSW globally looks not
> a good idea to me.

Would 'HIGH_WORD' and 'LOW_WORD' be OK as an alternative?

Cheers,
Oleg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]