Add sincosf function (#7267)

* Add sincosf function

* also add sincos

Co-authored-by: Veikka Tuominen <git@vexu.eu>
This commit is contained in:
daurnimator 2020-12-23 20:18:15 +11:00 committed by GitHub
parent 7e63f7ad03
commit 53a8e73205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}