mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Use zig to build bitcode
This commit is contained in:
parent
3d8f34b553
commit
6278a19c35
9 changed files with 89 additions and 48 deletions
18
compiler/builtins/bitcode/src/main.zig
Normal file
18
compiler/builtins/bitcode/src/main.zig
Normal file
|
@ -0,0 +1,18 @@
|
|||
const std = @import("std");
|
||||
const testing = std.testing;
|
||||
|
||||
fn is_finite_(f: f64) bool {
|
||||
return std.math.isFinite(f);
|
||||
}
|
||||
|
||||
fn atan(f: f64) f64 {
|
||||
return std.math.atan(f);
|
||||
}
|
||||
|
||||
fn pow_int_(base: i64, exp: i64) i64 {
|
||||
return std.math.pow(i64, base, exp);
|
||||
}
|
||||
|
||||
// test "basic add functionality" {
|
||||
// testing.expect(add(3, 7) == 10);
|
||||
// }
|
Loading…
Add table
Add a link
Reference in a new issue