mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Update.
2000-12-26 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for 64bit platforms. Reported by Dave Gilbert <gilbertd@treblig.org>.
This commit is contained in:
parent
be76803a73
commit
945c975dff
@ -1,3 +1,8 @@
|
|||||||
|
2000-12-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
|
||||||
|
64bit platforms. Reported by Dave Gilbert <gilbertd@treblig.org>.
|
||||||
|
|
||||||
2000-12-11 Bruno Haible <haible@clisp.cons.org>
|
2000-12-11 Bruno Haible <haible@clisp.cons.org>
|
||||||
|
|
||||||
* Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
|
* Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Macros to swap the order of bytes in integer values.
|
/* Macros to swap the order of bytes in integer values.
|
||||||
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -56,7 +56,7 @@ __bswap_32 (unsigned int __bsx)
|
|||||||
# define __bswap_64(x) \
|
# define __bswap_64(x) \
|
||||||
(__extension__ \
|
(__extension__ \
|
||||||
({ union { unsigned long long int __ll; \
|
({ union { unsigned long long int __ll; \
|
||||||
unsigned long int __l[2]; } __v, __r; \
|
unsigned int __l[2]; } __v, __r; \
|
||||||
__v.__ll = (x); \
|
__v.__ll = (x); \
|
||||||
__r.__l[0] = __bswap_32 (__v.__l[1]); \
|
__r.__l[0] = __bswap_32 (__v.__l[1]); \
|
||||||
__r.__l[1] = __bswap_32 (__v.__l[0]); \
|
__r.__l[1] = __bswap_32 (__v.__l[0]); \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Macros to swap the order of bytes in integer values.
|
/* Macros to swap the order of bytes in integer values.
|
||||||
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -56,7 +56,7 @@ __bswap_32 (unsigned int __bsx)
|
|||||||
# define __bswap_64(x) \
|
# define __bswap_64(x) \
|
||||||
(__extension__ \
|
(__extension__ \
|
||||||
({ union { unsigned long long int __ll; \
|
({ union { unsigned long long int __ll; \
|
||||||
unsigned long int __l[2]; } __v, __r; \
|
unsigned int __l[2]; } __v, __r; \
|
||||||
__v.__ll = (x); \
|
__v.__ll = (x); \
|
||||||
__r.__l[0] = __bswap_32 (__v.__l[1]); \
|
__r.__l[0] = __bswap_32 (__v.__l[1]); \
|
||||||
__r.__l[1] = __bswap_32 (__v.__l[0]); \
|
__r.__l[1] = __bswap_32 (__v.__l[0]); \
|
||||||
|
Loading…
Reference in New Issue
Block a user