blob: 1fd340060036c73c9b8215d64510a5ae5df59f15 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
* Copyright 2022-2025 Frederico de Oliveira Linhares
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef BLU_CAT_COM_NUMBERS_H
#define BLU_CAT_COM_NUMBERS_H 1
#include <cstdint>
#include <stdfloat>
// GLM uses some definitions to control their behavior, so you should not
// include it directly. Instead, use this header.
#define GLM_ENABLE_EXPERIMENTAL
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/ext/vector_float3.hpp>
#include <glm/ext.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/vec3.hpp>
// Signed int
typedef int8_t I8;
typedef int16_t I16;
typedef int32_t I32;
typedef int64_t I64;
// Unsigned int
typedef uint8_t UI8;
typedef uint16_t UI16;
typedef uint32_t UI32;
typedef uint64_t UI64;
// Fast signed int
typedef int_fast8_t I8F;
typedef int_fast16_t I16F;
typedef int_fast32_t I32F;
typedef int_fast64_t I64F;
// Fast unsigned int
typedef uint_fast8_t UI8F;
typedef uint_fast16_t UI16F;
typedef uint_fast32_t UI32F;
typedef uint_fast64_t UI64F;
// Floats
typedef std::float32_t F32;
typedef std::float64_t F64;
constexpr UI32F SIZE_32_BIT{4};
constexpr UI32F SIZE_64_BIT{8};
#endif /* BLU_CAT_COM_NUMBERS_H */
|