mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function
This commit is contained in:
parent
f34235e050
commit
e112a406a2
11 changed files with 519 additions and 512 deletions
22
compiler/builtins/bitcode/src/num.zig
Normal file
22
compiler/builtins/bitcode/src/num.zig
Normal file
|
@ -0,0 +1,22 @@
|
|||
const std = @import("std");
|
||||
const math = std.math;
|
||||
|
||||
pub fn atan(num: f64) callconv(.C) f64 {
|
||||
return math.atan(num);
|
||||
}
|
||||
|
||||
pub fn isFinite(num: f64) callconv(.C) bool {
|
||||
return math.isFinite(num);
|
||||
}
|
||||
|
||||
pub fn powInt(base: i64, exp: i64) callconv(.C) i64 {
|
||||
return math.pow(i64, base, exp);
|
||||
}
|
||||
|
||||
pub fn acos(num: f64) callconv(.C) f64 {
|
||||
return math.acos(num);
|
||||
}
|
||||
|
||||
pub fn asin(num: f64) callconv(.C) f64 {
|
||||
return math.asin(num);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue