mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Build bitcode with zig 🎉
This commit is contained in:
parent
4502471e9a
commit
242eb6f905
17 changed files with 1365 additions and 88 deletions
20
compiler/builtins/bitcode/src/main.zig
Normal file
20
compiler/builtins/bitcode/src/main.zig
Normal file
|
@ -0,0 +1,20 @@
|
|||
const std = @import("std");
|
||||
const math = std.math;
|
||||
// const testing = std.testing;
|
||||
|
||||
|
||||
export fn atan_(num: f64) f64 {
|
||||
return math.atan(num);
|
||||
}
|
||||
|
||||
export fn is_finite_(num: f64) bool {
|
||||
return math.isFinite(num);
|
||||
}
|
||||
|
||||
export fn pow_int_(base: i64, exp: i64) i64 {
|
||||
return 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