mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
4d83618c11
PR: 188861 Submitted by: Ports Fury
129 lines
4.1 KiB
C
129 lines
4.1 KiB
C
--- src/osd/eigccx86.h.orig
|
|
+++ src/osd/eigccx86.h
|
|
@@ -42,7 +42,7 @@
|
|
multiply and return the full 64 bit result
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define mul_32x32 _mul_32x32
|
|
INLINE INT64 ATTR_CONST ATTR_FORCE_INLINE
|
|
_mul_32x32(INT32 a, INT32 b)
|
|
@@ -68,7 +68,7 @@
|
|
result
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define mulu_32x32 _mulu_32x32
|
|
INLINE UINT64 ATTR_CONST ATTR_FORCE_INLINE
|
|
_mulu_32x32(UINT32 a, UINT32 b)
|
|
@@ -145,7 +145,7 @@
|
|
result to 32 bits
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define mul_32x32_shift _mul_32x32_shift
|
|
INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_mul_32x32_shift(INT32 a, INT32 b, UINT8 shift)
|
|
@@ -175,7 +175,7 @@
|
|
result to 32 bits
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define mulu_32x32_shift _mulu_32x32_shift
|
|
INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_mulu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
|
|
@@ -203,7 +203,7 @@
|
|
divide and return the 32 bit quotient
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define div_64x32 _div_64x32
|
|
INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_div_64x32(INT64 a, INT32 b)
|
|
@@ -230,7 +230,7 @@
|
|
divide and return the 32 bit quotient
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define divu_64x32 _divu_64x32
|
|
INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_divu_64x32(UINT64 a, UINT32 b)
|
|
@@ -258,7 +258,7 @@
|
|
32 bit remainder
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define div_64x32_rem _div_64x32_rem
|
|
INLINE INT32 ATTR_FORCE_INLINE
|
|
_div_64x32_rem(INT64 dividend, INT32 divisor, INT32 *remainder)
|
|
@@ -286,7 +286,7 @@
|
|
and 32 bit remainder
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define divu_64x32_rem _divu_64x32_rem
|
|
INLINE UINT32 ATTR_FORCE_INLINE
|
|
_divu_64x32_rem(UINT64 dividend, UINT32 divisor, UINT32 *remainder)
|
|
@@ -337,7 +337,7 @@
|
|
division, and returning the 32 bit quotient
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define div_32x32_shift _div_32x32_shift
|
|
INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_div_32x32_shift(INT32 a, INT32 b, UINT8 shift)
|
|
@@ -369,7 +369,7 @@
|
|
division, and returning the 32 bit quotient
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define divu_32x32_shift _divu_32x32_shift
|
|
INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_divu_32x32_shift(UINT32 a, UINT32 b, UINT8 shift)
|
|
@@ -400,7 +400,7 @@
|
|
divide and return the 32 bit remainder
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define mod_64x32 _mod_64x32
|
|
INLINE INT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_mod_64x32(INT64 a, INT32 b)
|
|
@@ -427,7 +427,7 @@
|
|
divide and return the 32 bit remainder
|
|
-------------------------------------------------*/
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
#define modu_64x32 _modu_64x32
|
|
INLINE UINT32 ATTR_CONST ATTR_FORCE_INLINE
|
|
_modu_64x32(UINT64 a, UINT32 b)
|
|
@@ -563,7 +563,7 @@
|
|
return the previous value at 'ptr'.
|
|
-------------------------------------------------*/
|
|
|
|
-#ifdef __x86_64__
|
|
+#if defined(__amd64__) || defined(__x86_64__)
|
|
#define compare_exchange64 _compare_exchange64
|
|
INLINE INT64 ATTR_NONNULL(1) ATTR_FORCE_INLINE
|
|
_compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange)
|
|
@@ -693,7 +693,7 @@
|
|
|
|
#define get_profile_ticks _get_profile_ticks
|
|
|
|
-#ifndef __x86_64__
|
|
+#if !defined(__amd64__) && !defined(__x86_64__)
|
|
INLINE UINT64 ATTR_UNUSED ATTR_FORCE_INLINE _get_profile_ticks(void)
|
|
{
|
|
UINT64 result;
|