Fumofumotris/source/fumoengine/fumocommon.h

49 lines
801 B
C
Raw Normal View History

2024-03-25 05:34:59 +00:00
#pragma once
2024-05-07 22:10:15 +00:00
#include <iso646.h>
#include <stdbool.h>
2024-03-25 05:34:59 +00:00
#include <stdint.h>
2024-04-29 20:01:48 +00:00
#define nullptr ((void *)0)
2024-04-30 21:41:31 +00:00
#define ONE_E_9 1000000000
2024-03-25 05:34:59 +00:00
2024-05-06 05:52:30 +00:00
typedef size_t usize;
typedef ptrdiff_t isize;
2024-03-25 05:34:59 +00:00
typedef uint8_t u8;
typedef uint_fast8_t u8f;
typedef uint16_t u16;
typedef uint_fast16_t u16f;
typedef uint32_t u32;
typedef uint_fast32_t u32f;
typedef uint64_t u64;
2024-04-09 22:10:30 +00:00
typedef uint_fast64_t u64f;
typedef int8_t i8;
typedef int_fast8_t i8f;
2024-05-06 05:52:30 +00:00
typedef int16_t i16;
typedef int_fast16_t i16f;
2024-04-09 22:10:30 +00:00
2024-05-06 05:52:30 +00:00
typedef int32_t i32;
typedef int_fast32_t i32f;
2024-04-09 22:10:30 +00:00
2024-05-06 05:52:30 +00:00
typedef int64_t i64;
typedef int_fast64_t i64f;
2024-04-18 05:04:44 +00:00
2024-04-29 20:01:48 +00:00
2024-05-07 03:29:10 +00:00
typedef u64 nsec;
2024-04-30 21:41:31 +00:00
2024-05-07 03:29:10 +00:00
size_t min_usize(usize a, usize b);
2024-04-30 21:41:31 +00:00
2024-05-07 03:29:10 +00:00
nsec TimeNow();
double TimeNowD();
2024-04-30 21:41:31 +00:00
2024-05-07 03:29:10 +00:00
u32 Hash(void *item, usize size);