forked from Francesco149/oppai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.hh
43 lines (33 loc) · 804 Bytes
/
types.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
typedef float f32;
typedef double f64;
#ifndef OPPAI_STDINT
typedef unsigned long long int u64;
typedef unsigned int u32;
typedef unsigned short int u16;
typedef unsigned char u8;
typedef long long int i64;
typedef int i32;
typedef short int i16;
typedef signed char i8;
#else
#include <stdint.h>
typedef int_least64_t i64;
typedef int_least32_t i32;
typedef int_least16_t i16;
typedef int_least8_t i8;
typedef uint_least64_t u64;
typedef uint_least32_t u32;
typedef uint_least16_t u16;
typedef uint_least8_t u8;
#endif
#define fi32 "d"
#define fi16 "hd"
#define fu32 "u"
#define fu16 "hu"
#if defined(_WIN32) || defined(_WIN64)
#include <Windows.h>
#if !defined(OPPAI_SSIZE_T_DEFINED)
typedef SSIZE_T ssize_t;
#endif
#endif