This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC floating point little-endian [12 of 15]
- From: Andreas Jaeger <aj at suse dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 09 Aug 2013 08:30:35 +0200
- Subject: Re: PowerPC floating point little-endian [12 of 15]
- References: <20130710012435 dot GN2602 at bubble dot grove dot modra dot org> <20130710013051 dot GY2602 at bubble dot grove dot modra dot org> <20130809044706 dot GX3294 at bubble dot grove dot modra dot org>
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