Build bitcode with zig 🎉

This commit is contained in:
Jared Ramirez 2020-10-25 14:50:31 -07:00
parent 4502471e9a
commit 242eb6f905
17 changed files with 1365 additions and 88 deletions

View 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);
// }