Skip to content

Commit

Permalink
Fix sincos to be different on Darwin compared to other.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Oct 9, 2024
1 parent c1266e9 commit bf59efd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/std/math/math.c3
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,10 @@ extern fn double _atan(double x) @extern("atan");
extern fn float _atanf(float x) @extern("atanf");
extern fn double _atan2(double, double) @extern("atan2");
extern fn float _atan2f(float, float) @extern("atan2f");
extern fn void _sincos(double, double*, double*) @extern("__sincos") @link("m");
extern fn void _sincosf(float, float*, float*) @extern("__sincosf") @link("m");
extern fn void _sincos(double, double*, double*) @extern("__sincos") @link("m") @if(env::DARWIN);
extern fn void _sincosf(float, float*, float*) @extern("__sincosf") @link("m") @if(env::DARWIN);
extern fn void _sincos(double, double*, double*) @extern("sincos") @link("m") @if(!env::DARWIN);
extern fn void _sincosf(float, float*, float*) @extern("sincosf") @link("m") @if(!env::DARWIN);
extern fn double _tan(double x) @extern("tan");
extern fn float _tanf(float x) @extern("tanf");
extern fn double _scalbn(double x, int n) @extern("scalbn");
Expand Down

0 comments on commit bf59efd

Please sign in to comment.