mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Build bitcode with zig 🎉
This commit is contained in:
parent
f7e4b8145c
commit
b3d530f2ae
6 changed files with 1920 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue