Skip to content

Commit 3d3f2ef

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent aee622d commit 3d3f2ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ main:
2020
ret
2121
```
2222

23-
[Link-time optimization](https://en.wikipedia.org/wiki/Interprocedural_optimization) should in theory allow GCC and Clang to perform this optimization even when the code is split across several object files, but I haven't bothered to test this for the below programs.
23+
[Link-time optimization](https://en.wikipedia.org/wiki/Interprocedural_optimization) should allow GCC and Clang to perform these optimizations even when the code is split across several object files.
2424

2525
# Generic Stack
2626

@@ -138,6 +138,7 @@ static inline void hashmap_init(hashmap *m, void *buf, size_t ks, size_t vs, siz
138138
memset(buf, 0, cap * m->entry_size);
139139
}
140140
141+
// Naive hashing
141142
static inline size_t hash(const void *key, size_t size) {
142143
size_t h = 0;
143144
for (size_t i = 0; i < size; i++)

0 commit comments

Comments
 (0)