diff options
Diffstat (limited to '3rdparty/softfloat3/build')
-rw-r--r-- | 3rdparty/softfloat3/build/MAME/platform.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/3rdparty/softfloat3/build/MAME/platform.h b/3rdparty/softfloat3/build/MAME/platform.h index 5dfa704955c..f49392880ce 100644 --- a/3rdparty/softfloat3/build/MAME/platform.h +++ b/3rdparty/softfloat3/build/MAME/platform.h @@ -33,7 +33,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =============================================================================*/ - +# /*---------------------------------------------------------------------------- Softfloat 3 MAME modifications *----------------------------------------------------------------------------*/ @@ -45,11 +45,7 @@ Softfloat 3 MAME modifications /*---------------------------------------------------------------------------- *----------------------------------------------------------------------------*/ -#ifdef __GNUC_STDC_INLINE__ -#define INLINE inline -#else -#define INLINE extern inline -#endif +#define INLINE static inline /*---------------------------------------------------------------------------- *----------------------------------------------------------------------------*/ @@ -60,6 +56,7 @@ Softfloat 3 MAME modifications #include <intrin.h> // MSVC has __lzcnt16 as well, but opts-GCC.h expects __lzcnt for uint16_t and uint32_t +// FIXME: this requires the ABM instruction set extension and shouldn't be enabled if it isn't available #if defined(_M_IX86) || defined(_M_AMD64) #define __builtin_clz __lzcnt #endif // defined(_M_IX86) || defined(_M_AMD64) @@ -68,14 +65,14 @@ Softfloat 3 MAME modifications #define __builtin_clzll __lzcnt64 #endif // defined(_M_AMD64) -#else // defined(_MSC_VER) +#else // defined(_MSC_VER) && !defined(__clang__)) -// true for GCC and Clang on Intel and ARM, and MSVC on Intel. #define SOFTFLOAT_BUILTIN_CLZ 1 -#if defined(PTR64) + +#if defined(__SIZEOF_INT128__) #define SOFTFLOAT_INTRINSIC_INT128 1 -#endif // defined(PTR64) +#endif // defined(__SIZEOF_INT128__) -#endif // defined(_MSC_VER) +#endif // defined(_MSC_VER) && !defined(__clang__) -#include "opts-GCC.h" +#include "../../source/include/opts-GCC.h" |