.githooks/
compiler/
kernel/
lib/
scripts/
seed/
sublime/
test/
boot/
bootstrap/
compiler/
cycles/
dispatch/
format/
input/
output/
basic.rad
458 B
escapes.rad
42 B
regions.rad
529 B
host/
integration/
kernel/
loader/
manifests/
mmio/
native/
packages/
runtime/
scheduling/
shared/
slots/
smp/
std/
sync/
termination/
tests/
trap/
verify/
Makefile
9.2 KiB
kernel.rad
776 B
runner.rad
11.6 KiB
vim/
.gitignore
333 B
.gitsigners
224 B
AGENTS.md
8.3 KiB
CONTRIBUTING
2.1 KiB
LICENSE
1.1 KiB
Makefile
2.5 KiB
README
3.4 KiB
STYLE
3.2 KiB
std.lib
2.1 KiB
std.lib.test
1.1 KiB
test/format/output/basic.rad
raw
| 1 | fn f(a: u32, b: u32) -> u32 { |
| 2 | let total = compute( |
| 3 | first, second, third, fourth, fifth, sixth, seventh, eighth, ninth |
| 4 | ); |
| 5 | if (total > limit and total < maximum) or overridden { |
| 6 | return total + offset * scale; |
| 7 | } |
| 8 | return 0; |
| 9 | } |
| 10 | |
| 11 | static POOL: Heap = heap::new(64); |
| 12 | export static BIG: heap::Heap = heap::new(1 << 20); |
| 13 | fn g() { |
| 14 | static LOCAL: Scratch = scratch::new(128); |
| 15 | } |
| 16 | |
| 17 | @intrinsic export constant fn new(size: u32) -> Heap; |