mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Add defines for GCC_INLINE and GCC_INLINE_ATTRIB (Issues 427 and 428)
This commit is contained in:
parent
8c02c60584
commit
bc0f943c6b
12
cpu.h
12
cpu.h
@ -32,6 +32,18 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif // ARM32 and ARM64 Headers
|
#endif // ARM32 and ARM64 Headers
|
||||||
|
|
||||||
|
// Used when supplying ASM due to missing intrinsics
|
||||||
|
#if defined(__clang__)
|
||||||
|
# define GCC_INLINE inline
|
||||||
|
# define GCC_INLINE_ATTRIB __attribute__((__gnu_inline__, __always_inline__))
|
||||||
|
#elif (CRYPTOPP_GCC_VERSION >= 30300) || defined(__INTEL_COMPILER)
|
||||||
|
# define GCC_INLINE __inline
|
||||||
|
# define GCC_INLINE_ATTRIB __attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||||
|
#else
|
||||||
|
# define GCC_INLINE inline
|
||||||
|
# define GCC_INLINE_ATTRIB
|
||||||
|
# endif
|
||||||
|
|
||||||
// X86/X64/X32 Headers
|
// X86/X64/X32 Headers
|
||||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user