Skip to content

Commit 1b50e12

Browse files
authored
yes (#43)
2 parents fcf4d3d + 77563b8 commit 1b50e12

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
*.pdb
1414
*.exe
1515
*vgcore
16-
.gdb_history
16+
*.gdb_history
1717
.vs/
1818
.xmake/
1919
.cache/
2020
objs/
2121
build/
22-
example/.gdb_history
2322
example/Test

includes/mlx_profile.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -172,27 +172,6 @@
172172
static_assert(sizeof(uint16_t) == 2, "uint16_t is not of the correct size");
173173
static_assert(sizeof(uint32_t) == 4, "uint32_t is not of the correct size");
174174
static_assert(sizeof(uint64_t) == 8, "uint64_t is not of the correct size");
175-
#elif defined(MLX_COMPILER_GCC)
176-
#define STATIC_ASSERT(cnd, descr) \
177-
({ \
178-
extern int __attribute__((error("static assert failed: (" #cnd ") (" #descr ")"))) compile_time_check(void); \
179-
((cnd) ? 0 : compile_time_check()), 0; \
180-
})
181-
182-
#include <limits.h>
183-
#include <stdint.h>
184-
185-
STATIC_ASSERT(CHAR_BIT == 8, "CHAR_BIT is expected to be 8");
186-
187-
STATIC_ASSERT(sizeof(int8_t) == 1, "int8_t is not of the correct size" );
188-
STATIC_ASSERT(sizeof(int16_t) == 2, "int16_t is not of the correct size");
189-
STATIC_ASSERT(sizeof(int32_t) == 4, "int32_t is not of the correct size");
190-
STATIC_ASSERT(sizeof(int64_t) == 8, "int64_t is not of the correct size");
191-
192-
STATIC_ASSERT(sizeof(uint8_t) == 1, "uint8_t is not of the correct size" );
193-
STATIC_ASSERT(sizeof(uint16_t) == 2, "uint16_t is not of the correct size");
194-
STATIC_ASSERT(sizeof(uint32_t) == 4, "uint32_t is not of the correct size");
195-
STATIC_ASSERT(sizeof(uint64_t) == 8, "uint64_t is not of the correct size");
196175
#else
197176
#define STATIC_ASSERT(COND, MSG) typedef char static_assertion___##MSG[(COND)?1:-1]
198177

0 commit comments

Comments
 (0)