7#ifndef CORE_FXCRT_FX_SYSTEM_H_
8#define CORE_FXCRT_FX_SYSTEM_H_
16#include "build/build_config.h"
17#include "core/fxcrt/fx_types.h"
19#if defined(_MSC_VER) && _MSC_VER < 1900
20#error Sorry, VC++ 2015
or later is required to compile PDFium.
23#if defined(__wasm__) && defined(PDF_ENABLE_V8)
24#error Cannot compile v8 with wasm.
35#define FXSYS_IsFloatZero(f) ((f) < 0.0001
&& (f) > -0.0001
)
36#define FXSYS_IsFloatBigger(fa, fb)
38#define FXSYS_IsFloatSmaller(fa, fb)
43#define FXSYS_PI 3.1415926535897932384626433832795f
44#define FXSYS_BEZIER 0.5522847498308f
48#define FXSYS_snprintf (void)snprintf
49#define FXSYS_vsnprintf (void)vsnprintf
50#define FXSYS_sprintf DO_NOT_USE_SPRINTF_DIE_DIE_DIE
51#define FXSYS_vsprintf DO_NOT_USE_VSPRINTF_DIE_DIE_DIE
54#define FXSYS_itoa _itoa
55#define FXSYS_strlwr _strlwr
56#define FXSYS_strupr _strupr
57#define FXSYS_stricmp _stricmp
58#define FXSYS_wcsicmp _wcsicmp
59#define FXSYS_wcslwr _wcslwr
60#define FXSYS_wcsupr _wcsupr
61size_t FXSYS_wcsftime(
wchar_t* strDest,
63 const wchar_t* format,
64 const struct tm* timeptr);
65#define FXSYS_SetLastError SetLastError
66#define FXSYS_GetLastError GetLastError
68char*
FXSYS_itoa(
int value,
char* str,
int radix);
75#define FXSYS_wcsftime wcsftime
84const char*
FXSYS_i64toa(int64_t value,
char* str,
int radix);
95#define FXSYS_UINT16_GET_LSBFIRST(p)
96 (static_cast<uint16_t>(
97 (static_cast<uint32_t>(static_cast<uint8_t>((p)[1
])) << 8
) |
98 (static_cast<uint32_t>(static_cast<uint8_t>((p)[0
])))))
99#define FXSYS_UINT16_GET_MSBFIRST(p)
100 (static_cast<uint16_t>(
101 (static_cast<uint32_t>(static_cast<uint8_t>((p)[0
])) << 8
) |
102 (static_cast<uint32_t>(static_cast<uint8_t>((p)[1
])))))
103#define FXSYS_UINT32_GET_LSBFIRST(p)
104 ((static_cast<uint32_t>(static_cast<uint8_t>((p)[3
])) << 24
) |
105 (static_cast<uint32_t>(static_cast<uint8_t>((p)[2
])) << 16
) |
106 (static_cast<uint32_t>(static_cast<uint8_t>((p)[1
])) << 8
) |
107 (static_cast<uint32_t>(static_cast<uint8_t>((p)[0
]))))
108#define FXSYS_UINT32_GET_MSBFIRST(p)
109 ((static_cast<uint32_t>(static_cast<uint8_t>((p)[0
])) << 24
) |
110 (static_cast<uint32_t>(static_cast<uint8_t>((p)[1
])) << 16
) |
111 (static_cast<uint32_t>(static_cast<uint8_t>((p)[2
])) << 8
) |
112 (static_cast<uint32_t>(static_cast<uint8_t>((p)[3
]))))
void CRYPT_AESSetIV(CRYPT_aes_context *context, const uint8_t *iv)
void CRYPT_AESEncrypt(CRYPT_aes_context *context, uint8_t *dest, const uint8_t *src, uint32_t size)
void CRYPT_AESSetKey(CRYPT_aes_context *context, const uint8_t *key, uint32_t keylen)
void CRYPT_AESDecrypt(CRYPT_aes_context *context, uint8_t *dest, const uint8_t *src, uint32_t size)
#define PUT_32BIT_MSB_FIRST(cp, value)
#define ADD_ROUND_KEY_4()
int32_t FXSYS_atoi(const char *str)
char * FXSYS_strlwr(char *str)
wchar_t * FXSYS_wcsupr(wchar_t *str)
char * FXSYS_strupr(char *str)
uint32_t FXSYS_atoui(const char *str)
int FXSYS_wcsicmp(const wchar_t *str1, const wchar_t *str2)
wchar_t * FXSYS_wcslwr(wchar_t *str)
int32_t FXSYS_wtoi(const wchar_t *str)
#define FXSYS_IsFloatZero(f)
uint32_t FXSYS_GetLastError()
const char * FXSYS_i64toa(int64_t value, char *str, int radix)
int FXSYS_stricmp(const char *str1, const char *str2)
int64_t FXSYS_atoi64(const char *str)
int FXSYS_roundf(float f)
int FXSYS_round(double d)
char * FXSYS_itoa(int value, char *str, int radix)
void FXSYS_SetLastError(uint32_t err)
float FXSYS_sqrt2(float a, float b)
unsigned int keysched[kSchedSize]
unsigned int invkeysched[kSchedSize]