add benchmark for sin and asin

This commit is contained in:
Brendan Hansknecht 2023-09-16 11:06:03 -07:00
parent 67494e00fd
commit 7986d6cdba
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 32 additions and 1 deletions

View file

@ -1203,6 +1203,10 @@ pub fn fromF32C(arg_f32: f32) callconv(.C) i128 {
}
}
pub fn toF64(arg: RocDec) callconv(.C) f64 {
return @call(.{ .modifier = always_inline }, RocDec.toF64, .{arg});
}
pub fn exportFromInt(comptime T: type, comptime name: []const u8) void {
comptime var f = struct {
fn func(self: T) callconv(.C) i128 {

View file

@ -22,7 +22,7 @@ comptime {
exportDecFn(dec.toStr, "to_str");
exportDecFn(dec.fromU64C, "from_u64");
exportDecFn(dec.toI128, "to_i128");
exportDecFn(dec.fromF64, "from_f64");
exportDecFn(dec.fromF64C, "from_f64");
exportDecFn(dec.toF64, "to_f64");
exportDecFn(dec.eqC, "eq");
exportDecFn(dec.neqC, "neq");