This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: BZ#13926: Add __bswap_64 for non-GCC compilers
On Thu, Mar 29, 2012 at 08:45:42AM -0400, Richard Henderson wrote:
> On 03/28/2012 02:12 PM, Andreas Jaeger wrote:
> > Would the patch be ok if do the changes that Roland suggested and use ull instead (and fix the s390 version the same)?
>
> While "long long" might not exist, surely uint64_t does.
uint64_t exists only if stdint.h is included, which assumes C99
compiler. E.g. bits/types.h for the unknown compilers just
doesn't define __uint64_t and uses
typedef struct
{
__u_long __val[2];
} __u_quad_t;
for __u_quad_t instead of some 64-bit type.
Jakub