summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/eigccx86.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/eigccx86.h')
-rw-r--r--src/osd/eigccx86.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/src/osd/eigccx86.h b/src/osd/eigccx86.h
index 6b2769b9ecf..2be2164a165 100644
--- a/src/osd/eigccx86.h
+++ b/src/osd/eigccx86.h
@@ -41,10 +41,10 @@ union _x86_union
#ifndef __x86_64__
#define mul_32x32 _mul_32x32
-INLINE INT64 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT64 ATTR_CONST ATTR_FORCE_INLINE
_mul_32x32(INT32 a, INT32 b)
{
- register INT64 result;
+ INT64 result;
__asm__ (
" imull %[b] ;"
@@ -67,10 +67,10 @@ _mul_32x32(INT32 a, INT32 b)
#ifndef __x86_64__
#define mulu_32x32 _mulu_32x32
-INLINE UINT64 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT64 ATTR_CONST ATTR_FORCE_INLINE
_mulu_32x32(UINT32 a, UINT32 b)
{
- register UINT64 result;
+ UINT64 result;
__asm__ (
" mull %[b] ;"
@@ -92,10 +92,10 @@ _mulu_32x32(UINT32 a, UINT32 b)
-------------------------------------------------*/
#define mul_32x32_hi _mul_32x32_hi
-INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT32 ATTR_CONST ATTR_FORCE_INLINE
_mul_32x32_hi(INT32 a, INT32 b)
{
- register INT32 result, temp;
+ INT32 result, temp;
__asm__ (
" imull %[b] ;"
@@ -117,10 +117,10 @@ _mul_32x32_hi(INT32 a, INT32 b)
-------------------------------------------------*/
#define mulu_32x32_hi _mulu_32x32_hi
-INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT32 ATTR_CONST ATTR_FORCE_INLINE
_mulu_32x32_hi(UINT32 a, UINT32 b)
{
- register UINT32 result, temp;
+ UINT32 result, temp;
__asm__ (
" mull %[b] ;"
@@ -144,10 +144,10 @@ _mulu_32x32_hi(UINT32 a, UINT32 b)
#ifndef __x86_64__
#define mul_32x32_shift _mul_32x32_shift
-INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT32 ATTR_CONST ATTR_FORCE_INLINE
_mul_32x32_shift(INT32 a, INT32 b, UINT8 shift)
{
- register INT32 result;
+ INT32 result;
/* Valid for (0 <= shift <= 31) */
__asm__ (
@@ -174,10 +174,10 @@ _mul_32x32_shift(INT32 a, INT32 b, UINT8 shift)
#ifndef __x86_64__
#define mulu_32x32_shift _mulu_32x32_shift
-INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT32 ATTR_CONST ATTR_FORCE_INLINE
_mulu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
{
- register UINT32 result;
+ UINT32 result;
/* Valid for (0 <= shift <= 31) */
__asm__ (
@@ -202,10 +202,10 @@ _mulu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
#ifndef __x86_64__
#define div_64x32 _div_64x32
-INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT32 ATTR_CONST ATTR_FORCE_INLINE
_div_64x32(INT64 a, INT32 b)
{
- register INT32 result, temp;
+ INT32 result, temp;
/* Throws arithmetic exception if result doesn't fit in 32 bits */
__asm__ (
@@ -229,10 +229,10 @@ _div_64x32(INT64 a, INT32 b)
#ifndef __x86_64__
#define divu_64x32 _divu_64x32
-INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT32 ATTR_CONST ATTR_FORCE_INLINE
_divu_64x32(UINT64 a, UINT32 b)
{
- register UINT32 result, temp;
+ UINT32 result, temp;
/* Throws arithmetic exception if result doesn't fit in 32 bits */
__asm__ (
@@ -257,10 +257,10 @@ _divu_64x32(UINT64 a, UINT32 b)
#ifndef __x86_64__
#define div_64x32_rem _div_64x32_rem
-INLINE INT32 ATTR_FORCE_INLINE
+static inline INT32 ATTR_FORCE_INLINE
_div_64x32_rem(INT64 dividend, INT32 divisor, INT32 *remainder)
{
- register INT32 quotient;
+ INT32 quotient;
/* Throws arithmetic exception if result doesn't fit in 32 bits */
__asm__ (
@@ -285,10 +285,10 @@ _div_64x32_rem(INT64 dividend, INT32 divisor, INT32 *remainder)
#ifndef __x86_64__
#define divu_64x32_rem _divu_64x32_rem
-INLINE UINT32 ATTR_FORCE_INLINE
+static inline UINT32 ATTR_FORCE_INLINE
_divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
{
- register UINT32 quotient;
+ UINT32 quotient;
/* Throws arithmetic exception if result doesn't fit in 32 bits */
__asm__ (
@@ -304,11 +304,11 @@ _divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
}
#else
#define divu_64x32_rem _divu_64x32_rem
-INLINE UINT32 ATTR_FORCE_INLINE
+static inline UINT32 ATTR_FORCE_INLINE
_divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
{
- register UINT32 quotient;
- register _x86_union r;
+ UINT32 quotient;
+ _x86_union r;
r.u64 = dividend;
@@ -336,10 +336,10 @@ _divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
#ifndef __x86_64__
#define div_32x32_shift _div_32x32_shift
-INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT32 ATTR_CONST ATTR_FORCE_INLINE
_div_32x32_shift(INT32 a, INT32 b, UINT8 shift)
{
- register INT32 result;
+ INT32 result;
/* Valid for (0 <= shift <= 31) */
/* Throws arithmetic exception if result doesn't fit in 32 bits */
@@ -368,10 +368,10 @@ _div_32x32_shift(INT32 a, INT32 b, UINT8 shift)
#ifndef __x86_64__
#define divu_32x32_shift _divu_32x32_shift
-INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT32 ATTR_CONST ATTR_FORCE_INLINE
_divu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
{
- register INT32 result;
+ INT32 result;
/* Valid for (0 <= shift <= 31) */
/* Throws arithmetic exception if result doesn't fit in 32 bits */
@@ -399,10 +399,10 @@ _divu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
#ifndef __x86_64__
#define mod_64x32 _mod_64x32
-INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline INT32 ATTR_CONST ATTR_FORCE_INLINE
_mod_64x32(INT64 a, INT32 b)
{
- register INT32 result, temp;
+ INT32 result, temp;
/* Throws arithmetic exception if quotient doesn't fit in 32 bits */
__asm__ (
@@ -426,10 +426,10 @@ _mod_64x32(INT64 a, INT32 b)
#ifndef __x86_64__
#define modu_64x32 _modu_64x32
-INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT32 ATTR_CONST ATTR_FORCE_INLINE
_modu_64x32(UINT64 a, UINT32 b)
{
- register UINT32 result, temp;
+ UINT32 result, temp;
/* Throws arithmetic exception if quotient doesn't fit in 32 bits */
__asm__ (
@@ -453,7 +453,7 @@ _modu_64x32(UINT64 a, UINT32 b)
#ifdef __SSE2__
#define recip_approx _recip_approx
-INLINE float ATTR_CONST
+static inline float ATTR_CONST
_recip_approx(float value)
{
__m128 value_xmm = _mm_set_ss(value);
@@ -476,10 +476,10 @@ _recip_approx(float value)
-------------------------------------------------*/
#define count_leading_zeros _count_leading_zeros
-INLINE UINT8 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT8 ATTR_CONST ATTR_FORCE_INLINE
_count_leading_zeros(UINT32 value)
{
- register UINT32 result;
+ UINT32 result;
__asm__ (
" bsrl %[value], %[result] ;"
@@ -501,10 +501,10 @@ _count_leading_zeros(UINT32 value)
-------------------------------------------------*/
#define count_leading_ones _count_leading_ones
-INLINE UINT8 ATTR_CONST ATTR_FORCE_INLINE
+static inline UINT8 ATTR_CONST ATTR_FORCE_INLINE
_count_leading_ones(UINT32 value)
{
- register UINT32 result;
+ UINT32 result;
__asm__ (
" movl %[value], %[result] ;"
@@ -535,10 +535,10 @@ _count_leading_ones(UINT32 value)
-------------------------------------------------*/
#define compare_exchange32 _compare_exchange32
-INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange)
{
- register INT32 result;
+ INT32 result;
__asm__ __volatile__ (
" lock ; cmpxchgl %[exchange], %[ptr] ;"
@@ -562,10 +562,10 @@ _compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange)
#ifdef __x86_64__
#define compare_exchange64 _compare_exchange64
-INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
{
- register INT64 result;
+ INT64 result;
__asm__ __volatile__ (
" lock ; cmpxchgq %[exchange], %[ptr] ;"
@@ -588,10 +588,10 @@ _compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
-------------------------------------------------*/
#define atomic_exchange32 _atomic_exchange32
-INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_atomic_exchange32(INT32 volatile *ptr, INT32 exchange)
{
- register INT32 result;
+ INT32 result;
__asm__ __volatile__ (
" lock ; xchgl %[exchange], %[ptr] ;"
@@ -611,10 +611,10 @@ _atomic_exchange32(INT32 volatile *ptr, INT32 exchange)
-------------------------------------------------*/
#define atomic_add32 _atomic_add32
-INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_atomic_add32(INT32 volatile *ptr, INT32 delta)
{
- register INT32 result = delta;
+ INT32 result = delta;
__asm__ __volatile__ (
" lock ; xaddl %[result], %[ptr] ;"
@@ -635,10 +635,10 @@ _atomic_add32(INT32 volatile *ptr, INT32 delta)
-------------------------------------------------*/
#define atomic_increment32 _atomic_increment32
-INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_atomic_increment32(INT32 volatile *ptr)
{
- register INT32 result = 1;
+ INT32 result = 1;
__asm__ __volatile__ (
" lock ; xaddl %[result], %[ptr] ;"
@@ -659,10 +659,10 @@ _atomic_increment32(INT32 volatile *ptr)
-------------------------------------------------*/
#define atomic_decrement32 _atomic_decrement32
-INLINE INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
+static inline INT32 ATTR_NONNULL(1) ATTR_FORCE_INLINE
_atomic_decrement32(INT32 volatile *ptr)
{
- register INT32 result = -1;
+ INT32 result = -1;
__asm__ __volatile__ (
" lock ; xaddl %[result], %[ptr] ;"
@@ -691,7 +691,7 @@ _atomic_decrement32(INT32 volatile *ptr)
#define get_profile_ticks _get_profile_ticks
#ifndef __x86_64__
-INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
+static inline UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
{
UINT64 result;
__asm__ __volatile__ (
@@ -701,7 +701,7 @@ INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
return result;
}
#else
-INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
+static inline UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
{
_x86_union r;
__asm__ __volatile__ (