mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Add sincosf function (#7267)
* Add sincosf function * also add sincos Co-authored-by: Veikka Tuominen <git@vexu.eu>
This commit is contained in:
parent
7e63f7ad03
commit
53a8e73205
@ -634,6 +634,16 @@ export fn cosf(a: f32) f32 {
|
||||
return math.cos(a);
|
||||
}
|
||||
|
||||
export fn sincos(a: f64, r_sin: *f64, r_cos: *f64) void {
|
||||
r_sin.* = math.sin(a);
|
||||
r_cos.* = math.cos(a);
|
||||
}
|
||||
|
||||
export fn sincosf(a: f32, r_sin: *f32, r_cos: *f32) void {
|
||||
r_sin.* = math.sin(a);
|
||||
r_cos.* = math.cos(a);
|
||||
}
|
||||
|
||||
export fn exp(a: f64) f64 {
|
||||
return math.exp(a);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user