Skip to content

Commit 31d4b68

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent fc25eb3 commit 31d4b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Here are the used optimization flags:
3636
- Passing `-O3` to the compiler tells it to optimize the code very hard.
3737
- Passing `-march=native` to the compiler tells it to make optimizations based on your specific CPU.
3838

39-
Copy of the code on [Compiler Explorer](https://godbolt.org/z/fdf5acdcn):
39+
Copy of the code on [Compiler Explorer](https://godbolt.org/z/33Tzh5hKo):
4040

4141
```c
4242
#include <assert.h>
@@ -116,7 +116,7 @@ void fn_version(size_t n) {
116116
Pair p1 = {.a = 10, .b = 20};
117117
Pair p2 = {.a = 111, .b = sin(222.0)}; // sin() is optimized away!
118118

119-
// assert()s get optimized away when they are provably true
119+
// assert()s get optimized away when they are provably correct at compile time
120120
assert(stack_push(&s, &p1) == SUCCESS);
121121
assert(stack_push(&s, &p2) == SUCCESS);
122122

0 commit comments

Comments
 (0)