From d8cab7aa47f303c6d4f3d12be4407aebe7196061 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sat, 20 Jan 2024 08:54:28 +0100 Subject: [PATCH 1/2] adding rule to gitignore --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ccd8f15..173af69 100644 --- a/.gitignore +++ b/.gitignore @@ -13,11 +13,10 @@ *.pdb *.exe *vgcore -.gdb_history +*.gdb_history .vs/ .xmake/ .cache/ objs/ build/ -example/.gdb_history example/Test From d0923320a3c090d15b079e66e92209234e32a046 Mon Sep 17 00:00:00 2001 From: kbz_8 Date: Wed, 24 Jan 2024 17:49:38 +0100 Subject: [PATCH 2/2] yes --- includes/mlx_profile.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/mlx_profile.h b/includes/mlx_profile.h index 90710bc..52cecfb 100644 --- a/includes/mlx_profile.h +++ b/includes/mlx_profile.h @@ -172,27 +172,6 @@ static_assert(sizeof(uint16_t) == 2, "uint16_t is not of the correct size"); static_assert(sizeof(uint32_t) == 4, "uint32_t is not of the correct size"); static_assert(sizeof(uint64_t) == 8, "uint64_t is not of the correct size"); -#elif defined(MLX_COMPILER_GCC) - #define STATIC_ASSERT(cnd, descr) \ - ({ \ - extern int __attribute__((error("static assert failed: (" #cnd ") (" #descr ")"))) compile_time_check(void); \ - ((cnd) ? 0 : compile_time_check()), 0; \ - }) - - #include - #include - - STATIC_ASSERT(CHAR_BIT == 8, "CHAR_BIT is expected to be 8"); - - STATIC_ASSERT(sizeof(int8_t) == 1, "int8_t is not of the correct size" ); - STATIC_ASSERT(sizeof(int16_t) == 2, "int16_t is not of the correct size"); - STATIC_ASSERT(sizeof(int32_t) == 4, "int32_t is not of the correct size"); - STATIC_ASSERT(sizeof(int64_t) == 8, "int64_t is not of the correct size"); - - STATIC_ASSERT(sizeof(uint8_t) == 1, "uint8_t is not of the correct size" ); - STATIC_ASSERT(sizeof(uint16_t) == 2, "uint16_t is not of the correct size"); - STATIC_ASSERT(sizeof(uint32_t) == 4, "uint32_t is not of the correct size"); - STATIC_ASSERT(sizeof(uint64_t) == 8, "uint64_t is not of the correct size"); #else #define STATIC_ASSERT(COND, MSG) typedef char static_assertion___##MSG[(COND)?1:-1]