Skip to content

Commit badc121

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent e6d8aa3 commit badc121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2025-11-30-comptime-c-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_version:
2020

2121
The best use-case I can think of for this technique is generating lookup tables at compile-time, since functions like `sin()` *also* successfully get optimized away. This technique seems to also work fine however for implementing runtime-allocated data structures, without needing macros.
2222

23-
# Required tricks
23+
# Optimization tricks
2424

2525
- `static inline` allows inlining across compilation boundaries.
2626
- `__attribute__((always_inline))` *strongly* urges compilers to inline functions.

0 commit comments

Comments
 (0)