Build bitcode with zig 🎉

This commit is contained in:
Jared Ramirez 2020-10-26 17:37:02 -07:00
parent f7e4b8145c
commit b3d530f2ae
6 changed files with 1920 additions and 17 deletions

View file

@ -1,15 +1,14 @@
const std = @import("std");
const testing = std.testing;
fn is_finite_(f: f64) bool {
export fn is_finite_(f: f64) bool {
return std.math.isFinite(f);
}
fn atan(f: f64) f64 {
export fn atan_(f: f64) f64 {
return std.math.atan(f);
}
fn pow_int_(base: i64, exp: i64) i64 {
export fn pow_int_(base: i64, exp: i64) i64 {
return std.math.pow(i64, base, exp);
}