forked from ibphoenix/tomsfastmath
fix ulong64 typedef that led to broken builds for several platforms
x86_64-w64-mingw32 and 32Bit mode on 64Bit system x86_64-w64-mingw32-gcc 'gcc -m32' 'gcc -mx32'
This commit is contained in:
parent
9671aa83e1
commit
c6b1b8e2f1
@ -245,12 +245,15 @@
|
|||||||
#if defined(FP_64BIT)
|
#if defined(FP_64BIT)
|
||||||
/* for GCC only on supported platforms */
|
/* for GCC only on supported platforms */
|
||||||
#ifndef CRYPT
|
#ifndef CRYPT
|
||||||
typedef unsigned long ulong64;
|
typedef unsigned long long ulong64;
|
||||||
#endif
|
#endif /* CRYPT */
|
||||||
|
|
||||||
typedef ulong64 fp_digit;
|
typedef ulong64 fp_digit;
|
||||||
#define SIZEOF_FP_DIGIT 8
|
#define SIZEOF_FP_DIGIT 8
|
||||||
typedef unsigned long fp_word __attribute__ ((mode(TI)));
|
typedef unsigned long fp_word __attribute__ ((mode(TI)));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* this is to make porting into LibTomCrypt easier :-) */
|
/* this is to make porting into LibTomCrypt easier :-) */
|
||||||
#ifndef CRYPT
|
#ifndef CRYPT
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
||||||
@ -259,12 +262,13 @@
|
|||||||
#else
|
#else
|
||||||
typedef unsigned long long ulong64;
|
typedef unsigned long long ulong64;
|
||||||
typedef signed long long long64;
|
typedef signed long long long64;
|
||||||
#endif
|
#endif /* defined(_MSC_VER) ... */
|
||||||
#endif
|
#endif /* CRYPT */
|
||||||
|
|
||||||
typedef unsigned long fp_digit;
|
typedef unsigned long fp_digit;
|
||||||
#define SIZEOF_FP_DIGIT 4
|
#define SIZEOF_FP_DIGIT 4
|
||||||
typedef ulong64 fp_word;
|
typedef ulong64 fp_word;
|
||||||
#endif
|
#endif /* FP_64BIT */
|
||||||
|
|
||||||
/* # of digits this is */
|
/* # of digits this is */
|
||||||
#define DIGIT_BIT ((CHAR_BIT) * SIZEOF_FP_DIGIT)
|
#define DIGIT_BIT ((CHAR_BIT) * SIZEOF_FP_DIGIT)
|
||||||
|
Loading…
Reference in New Issue
Block a user