Skip to content

Commit 015b72c

Browse files
committed
Add sincosf function
1 parent 02e12ed commit 015b72c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/std/special/c.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@ export fn cosf(a: f32) f32 {
634634
return math.cos(a);
635635
}
636636

637+
export fn sincosf(a: f32, r_sin: *f32, r_cos: *f32) void {
638+
r_sin.* = math.sin(a);
639+
r_sin.* = math.cos(a);
640+
}
641+
637642
export fn exp(a: f64) f64 {
638643
return math.exp(a);
639644
}

0 commit comments

Comments
 (0)