Skip to content

Commit

Permalink
fixed compile for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaxq committed Dec 14, 2023
1 parent 464f337 commit 46e8f62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocl/f2k.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ void f2k(){
}
#endif

#if defined(__APPLE_CC__) || defined(__FreeBSD__)
void sincosf(float x, float * s, float * c){ *s = sin(x); *c = cos(x); }
#endif

void flone(unsigned long long num){
addh(num*(q.eff/dppm)/ovr);
}
Expand Down Expand Up @@ -653,10 +657,6 @@ const float * fldir(){
return dir;
}

#if defined(__APPLE_CC__) || defined(__FreeBSD__)
void sincosf(float x, float * s, float * c){ *s = sin(x); *c = cos(x); }
#endif

void flshift(float r[], float n[], float *m = NULL){
float sft[3]={0};

Expand Down

0 comments on commit 46e8f62

Please sign in to comment.