This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: PowerPC floating point little-endian [12 of 15]


On 08/09/2013 06:47 AM, Alan Modra wrote:
> diff --git a/sysdeps/powerpc/sysdep.h b/sysdeps/powerpc/sysdep.h
> index 1b5334a..616f3ac 100644
> --- a/sysdeps/powerpc/sysdep.h
> +++ b/sysdeps/powerpc/sysdep.h
> @@ -144,6 +144,21 @@
>  
>  #define VRSAVE	256
>  
> +/* The 32-bit words of a 64-bit dword are at these offsets in memory.  */
> +# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN

Please properly intend the macros. We use:
#if ...
# if ...
#  define
# endif
#endif

> +#define LOWORD 0
> +#define HIWORD 4
> +#else
> +#define LOWORD 4
> +#define HIWORD 0
> +#endif


> +
> +/* The high 16-bit word of a 64-bit dword is at this offset in memory.  */
> +# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
> +#define HISHORT 6
> +#else
> +#define HISHORT 0
> +#endif
>  

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


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