From 504fc8344f4c83391ea7755908030413ed04d772 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 5 Mar 2025 23:44:57 +0100 Subject: Update comments; Typedefs --- test.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'test.c') 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); \ -- cgit v1.2.3