10 #if defined(_WIN32) || defined(_MSC_VER)
11 #define LTC_CALL __cdecl
23 #ifndef LTC_NO_PROTOTYPES
59 #if !defined(__STRICT_ANSI__) && (defined(INTEL_CC) || (defined(_MSC_VER) && defined(WIN32)) || (defined(__GNUC__) && (defined(__DJGPP__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__i386__))))
61 #define ENDIAN_32BITWORD
63 #define LTC_FAST_TYPE unsigned long
67 #if (defined(__R5900) || defined(R5900) || defined(__R5900__)) && (defined(_mips) || defined(__mips__) || defined(mips))
69 #define ENDIAN_64BITWORD
73 #if !defined(__STRICT_ANSI__) && defined(__x86_64__)
75 #define ENDIAN_64BITWORD
77 #define LTC_FAST_TYPE unsigned long
81 #if !defined(__STRICT_ANSI__) && defined(LTC_PPC32)
83 #define ENDIAN_32BITWORD
85 #define LTC_FAST_TYPE unsigned long
89 #if defined(__sparc__)
91 #if defined(__arch64__)
92 #define ENDIAN_64BITWORD
94 #define ENDIAN_32BITWORD
109 #undef ENDIAN_32BITWORD
110 #undef ENDIAN_64BITWORD
123 #if (defined(ENDIAN_BIG) || defined(ENDIAN_LITTLE)) && !(defined(ENDIAN_32BITWORD) || defined(ENDIAN_64BITWORD))
124 #error You must specify a word size as well as endianess in tomcrypt_cfg.h
127 #if !(defined(ENDIAN_BIG) || defined(ENDIAN_LITTLE))
128 #define ENDIAN_NEUTRAL
LTC_EXPORT void LTC_CALL XQSORT(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
#define LTC_CALL
Definition: tomcrypt_cfg.h:14
LTC_EXPORT clock_t LTC_CALL XCLOCK(void)
LTC_EXPORT int LTC_CALL XMEMCMP(const void *s1, const void *s2, size_t n)
LTC_EXPORT void *LTC_CALL XREALLOC(void *p, size_t n)
#define LTC_EXPORT
Definition: tomcrypt_cfg.h:19
LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2)
LTC_EXPORT void *LTC_CALL XMALLOC(size_t n)
LTC_EXPORT void *LTC_CALL XMEMSET(void *s, int c, size_t n)
LTC_EXPORT void LTC_CALL XFREE(void *p)
LTC_EXPORT void *LTC_CALL XCALLOC(size_t n, size_t s)
LTC_EXPORT void *LTC_CALL XMEMCPY(void *dest, const void *src, size_t n)