babel
aien-dev/babel
Brought by drakestapleton
babel / examples / complete / src / arith.c
| 1 | #include <stdint.h> |
| 2 | |
| 3 | uint64_t blend(uint64_t a, uint64_t b) { |
| 4 | return a * b + a - b; |
| 5 | } |
| 6 | |
| 7 | uint64_t cube(uint64_t x) { |
| 8 | return x * x * x; |
| 9 | } |
| 10 | |
| 11 | uint64_t spread(uint64_t a, uint64_t b, uint64_t c) { |
| 12 | return a * b + b * c - c * a; |
| 13 | } |