mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
misc.hpp:
Check _LONGLONG_TYPE as well, to define 'word64', to make it work on Solaris 10 x86_64. Can't assume all x86_64 share the same assembler syntax. For now disabled assembler for x86_64 and Solaris. extra/yassl/taocrypt/include/misc.hpp: Check _LONGLONG_TYPE as well, to define 'word64', to make it work on Solaris 10 x86_64. Can't assume all x86_64 share the same assembler syntax. For now disabled assembler for x86_64 and Solaris.
This commit is contained in:
parent
05e658235b
commit
6f3718e4e8
1 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,7 @@ typedef unsigned char byte;
|
|||
typedef unsigned short word16;
|
||||
typedef unsigned int word32;
|
||||
|
||||
#if defined(__GNUC__) || defined(__MWERKS__)
|
||||
#if defined(__GNUC__) || defined(__MWERKS__) || defined(_LONGLONG_TYPE)
|
||||
#define WORD64_AVAILABLE
|
||||
typedef unsigned long long word64;
|
||||
#define W64LIT(x) x##LL
|
||||
|
@ -79,8 +79,10 @@ typedef unsigned int word32;
|
|||
typedef word32 lword;
|
||||
#endif
|
||||
|
||||
// FIXME the !defined(__sun) is a temporarely solution until asm for
|
||||
// __x86_64__ and Solaris is written
|
||||
#if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \
|
||||
defined(__x86_64__) || defined(__mips64)
|
||||
defined(__mips64) || (defined(__x86_64__) && !defined(__sun))
|
||||
// These platforms have 64-bit CPU registers. Unfortunately most C++ compilers
|
||||
// don't allow any way to access the 64-bit by 64-bit multiply instruction
|
||||
// without using assembly, so in order to use word64 as word, the assembly
|
||||
|
|
Loading…
Reference in a new issue