mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
tile: Fix __bswap_64 return type in tile bits/byteswap.h
This commit is contained in:
parent
3d45177146
commit
73deba6d3c
@ -1,5 +1,8 @@
|
|||||||
2012-11-20 Chris Metcalf <cmetcalf@tilera.com>
|
2012-11-20 Chris Metcalf <cmetcalf@tilera.com>
|
||||||
|
|
||||||
|
* sysdeps/tile/bits/byteswap.h: Include <bits/types.h>.
|
||||||
|
(__bswap_64): Use __uint64_t instead of unsigned long long int.
|
||||||
|
|
||||||
* sysdeps/tile/s_fma.c: Remove redundant #defines now provided
|
* sysdeps/tile/s_fma.c: Remove redundant #defines now provided
|
||||||
in sysdeps/tile/math_private.h.
|
in sysdeps/tile/math_private.h.
|
||||||
|
|
||||||
|
@ -23,10 +23,12 @@
|
|||||||
#ifndef _BITS_BYTESWAP_H
|
#ifndef _BITS_BYTESWAP_H
|
||||||
#define _BITS_BYTESWAP_H 1
|
#define _BITS_BYTESWAP_H 1
|
||||||
|
|
||||||
|
#include <bits/types.h>
|
||||||
|
|
||||||
/* gcc __builtin_bswap64() can constant-fold, etc, so always use it. */
|
/* gcc __builtin_bswap64() can constant-fold, etc, so always use it. */
|
||||||
#define __bswap_16(x) ((unsigned short)(__builtin_bswap32(x) >> 16))
|
#define __bswap_16(x) ((unsigned short)(__builtin_bswap32(x) >> 16))
|
||||||
#define __bswap_32(x) ((unsigned int)__builtin_bswap32(x))
|
#define __bswap_32(x) ((unsigned int)__builtin_bswap32(x))
|
||||||
#define __bswap_64(x) ((unsigned long long)__builtin_bswap64(x))
|
#define __bswap_64(x) ((__uint64_t)__builtin_bswap64(x))
|
||||||
|
|
||||||
#define __bswap_constant_16(x) __bswap_16(x)
|
#define __bswap_constant_16(x) __bswap_16(x)
|
||||||
#define __bswap_constant_32(x) __bswap_32(x)
|
#define __bswap_constant_32(x) __bswap_32(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user