babel
aien-dev/babel
Brought by drakestapleton
babel / examples / sample / src / hash.c
| 1 | #include <stdint.h> |
| 2 | |
| 3 | uint64_t fold(uint64_t h, uint64_t k) { |
| 4 | return h * k + h - k; |
| 5 | } |
| 6 | |
| 7 | uint64_t square(uint64_t x) { |
| 8 | return x * x; |
| 9 | } |
aien-dev/babel
Brought by drakestapleton
babel / examples / sample / src / hash.c
| 1 | #include <stdint.h> |
| 2 | |
| 3 | uint64_t fold(uint64_t h, uint64_t k) { |
| 4 | return h * k + h - k; |
| 5 | } |
| 6 | |
| 7 | uint64_t square(uint64_t x) { |
| 8 | return x * x; |
| 9 | } |