forked from ibphoenix/tomsfastmath
define FP_64BIT on 64bit architectures
This should enable 64bit math on 64bit architecures besides amd64 (like ppc64, sparc64 and so on) Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
This commit is contained in:
parent
993d85de7f
commit
24d98570b0
@ -113,6 +113,10 @@
|
|||||||
#error FP_MAX_SIZE must be a multiple of CHAR_BIT
|
#error FP_MAX_SIZE must be a multiple of CHAR_BIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __SIZEOF_LONG__ == 8
|
||||||
|
#define FP_64BIT
|
||||||
|
#endif
|
||||||
|
|
||||||
/* autodetect x86-64 and make sure we are using 64-bit digits with x86-64 asm */
|
/* autodetect x86-64 and make sure we are using 64-bit digits with x86-64 asm */
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
#if defined(TFM_X86) || defined(TFM_SSE2) || defined(TFM_ARM)
|
#if defined(TFM_X86) || defined(TFM_SSE2) || defined(TFM_ARM)
|
||||||
|
Loading…
Reference in New Issue
Block a user