mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
Assume __GNUC__ >= 3.
gcc 3.0 was seven years ago. Get with the times.
This commit is contained in:
parent
0c1c9d7508
commit
2e3c43d306
3 changed files with 21 additions and 77 deletions
|
|
@ -212,7 +212,7 @@ struct __una_u16 { unsigned short x __attribute__((packed)); };
|
|||
|
||||
static __inline__ unsigned long ldq_u(unsigned long * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
const struct __una_u64 *ptr = (const struct __una_u64 *) r11;
|
||||
return ptr->x;
|
||||
# else
|
||||
|
|
@ -231,7 +231,7 @@ static __inline__ unsigned long ldq_u(unsigned long * r11)
|
|||
|
||||
static __inline__ unsigned long ldl_u(unsigned int * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
const struct __una_u32 *ptr = (const struct __una_u32 *) r11;
|
||||
return ptr->x;
|
||||
# else
|
||||
|
|
@ -250,7 +250,7 @@ static __inline__ unsigned long ldl_u(unsigned int * r11)
|
|||
|
||||
static __inline__ unsigned long ldw_u(unsigned short * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
const struct __una_u16 *ptr = (const struct __una_u16 *) r11;
|
||||
return ptr->x;
|
||||
# else
|
||||
|
|
@ -273,7 +273,7 @@ static __inline__ unsigned long ldw_u(unsigned short * r11)
|
|||
|
||||
static __inline__ void stq_u(unsigned long r5, unsigned long * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
struct __una_u64 *ptr = (struct __una_u64 *) r11;
|
||||
ptr->x = r5;
|
||||
# else
|
||||
|
|
@ -298,7 +298,7 @@ static __inline__ void stq_u(unsigned long r5, unsigned long * r11)
|
|||
|
||||
static __inline__ void stl_u(unsigned long r5, unsigned int * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
struct __una_u32 *ptr = (struct __una_u32 *) r11;
|
||||
ptr->x = r5;
|
||||
# else
|
||||
|
|
@ -323,7 +323,7 @@ static __inline__ void stl_u(unsigned long r5, unsigned int * r11)
|
|||
|
||||
static __inline__ void stw_u(unsigned long r5, unsigned short * r11)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
struct __una_u16 *ptr = (struct __una_u16 *) r11;
|
||||
ptr->x = r5;
|
||||
# else
|
||||
|
|
@ -780,7 +780,7 @@ struct __una_u16 { unsigned short x __attribute__((packed)); };
|
|||
|
||||
static __inline__ unsigned long ldq_u(unsigned long *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
# if defined(__arch64__) || defined(__sparcv9)
|
||||
const struct __una_u64 *ptr = (const struct __una_u64 *) p;
|
||||
# else
|
||||
|
|
@ -796,7 +796,7 @@ static __inline__ unsigned long ldq_u(unsigned long *p)
|
|||
|
||||
static __inline__ unsigned long ldl_u(unsigned int *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
const struct __una_u32 *ptr = (const struct __una_u32 *) p;
|
||||
return ptr->x;
|
||||
# else
|
||||
|
|
@ -808,7 +808,7 @@ static __inline__ unsigned long ldl_u(unsigned int *p)
|
|||
|
||||
static __inline__ unsigned long ldw_u(unsigned short *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
const struct __una_u16 *ptr = (const struct __una_u16 *) p;
|
||||
return ptr->x;
|
||||
# else
|
||||
|
|
@ -820,7 +820,7 @@ static __inline__ unsigned long ldw_u(unsigned short *p)
|
|||
|
||||
static __inline__ void stq_u(unsigned long val, unsigned long *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
# if defined(__arch64__) || defined(__sparcv9)
|
||||
struct __una_u64 *ptr = (struct __una_u64 *) p;
|
||||
# else
|
||||
|
|
@ -835,7 +835,7 @@ static __inline__ void stq_u(unsigned long val, unsigned long *p)
|
|||
|
||||
static __inline__ void stl_u(unsigned long val, unsigned int *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
struct __una_u32 *ptr = (struct __una_u32 *) p;
|
||||
ptr->x = val;
|
||||
# else
|
||||
|
|
@ -846,7 +846,7 @@ static __inline__ void stl_u(unsigned long val, unsigned int *p)
|
|||
|
||||
static __inline__ void stw_u(unsigned long val, unsigned short *p)
|
||||
{
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC_MINOR__ >= 91))
|
||||
# if defined(__GNUC__)
|
||||
struct __una_u16 *ptr = (struct __una_u16 *) p;
|
||||
ptr->x = val;
|
||||
# else
|
||||
|
|
|
|||
Loading…
Reference in a new issue