summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-03-05 23:44:57 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-03-05 23:44:57 +0100
commit504fc8344f4c83391ea7755908030413ed04d772 (patch)
treedfc3208e804c10dd0ca31fdd3ff529e8a6b171ba /test.c
parentdc4e55de19fc8ed144100cdc99105dcd904e0c65 (diff)
downloadreduced_system_layer-504fc8344f4c83391ea7755908030413ed04d772.zip
Update comments; Typedefs
Diffstat (limited to 'test.c')
-rw-r--r--test.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/test.c b/test.c
index 51f0051..9d61923 100644
--- a/test.c
+++ b/test.c
@@ -49,38 +49,13 @@
#if !defined(__wasm__)
-#ifndef TYPES_HEADER_GUARD_
-#define TYPES_HEADER_GUARD_
-
-typedef signed char i8;
-typedef signed short i16;
typedef signed i32;
typedef signed long long i64;
-typedef unsigned char u8;
-typedef unsigned short u16;
typedef unsigned u32;
typedef unsigned long long u64;
typedef char c8;
-typedef int c32;
-typedef unsigned char b8;
-typedef float f32;
typedef double f64;
-typedef struct { f64 x, y; } vec2;
-typedef struct { f64 x, y, z; } vec3;
-typedef struct { f64 x, y, z, w; } vec4;
-typedef struct { f32 x, y; } vec2_f32;
-typedef struct { f32 x, y, z; } vec3_f32;
-typedef struct { f32 x, y, z, w; } vec4_f32;
-typedef struct { i64 x, y; } vec2_i64;
-typedef struct { i64 x, y, z; } vec3_i64;
-typedef struct { i64 x, y, z, w; } vec4_i64;
-typedef struct { f64 v[ 4]; } mat2;
-typedef struct { f64 v[ 9]; } mat3;
-typedef struct { f64 v[16]; } mat4;
-
-#endif // TYPES_HEADER_GUARD_
-
// ================================================================
#ifndef TEST_HEADER_GUARD_
@@ -259,9 +234,7 @@ void bench_register(c8 const *name, c8 const *file, bench_run_fn fn);
#define BENCHMARK_END \
} bench_end_(bench_index_); }
-// FIXME
-// Does this work reliably?
-//
+// FIXME: Does this work reliably?
#define DO_NOT_OPTIMIZE(x) \
do { \
volatile void *bench_ptr_ = &(x); \