-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from ACBob/main
Fix compiling on Linux
- Loading branch information
Showing
13 changed files
with
216 additions
and
206 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* | ||
* math_proxy.cpp - Implements certain unresolved symbols and points them to their proper endpoints | ||
* | ||
*/ | ||
#include <math.h> | ||
|
||
#if __GNUC__ > 5 | ||
|
||
extern "C" float __powf_finite(float x, float y) | ||
{ | ||
return powf(x, y); | ||
} | ||
|
||
extern "C" double __atan2_finite(double y, double x) | ||
{ | ||
return atan2(y, x); | ||
} | ||
|
||
extern "C" float __logf_finite(float f) | ||
{ | ||
return logf(f); | ||
} | ||
|
||
extern "C" float __acosf_finite(float f) | ||
{ | ||
return acosf(f); | ||
} | ||
|
||
extern "C" double __exp_finite(double f) | ||
{ | ||
return exp(f); | ||
} | ||
|
||
extern "C" float __expf_finite(float f) | ||
{ | ||
return expf(f); | ||
} | ||
|
||
extern "C" double __pow_finite(double x, double y) | ||
{ | ||
return pow(x, y); | ||
} | ||
|
||
extern "C" double __log_finite(double f) | ||
{ | ||
return log(f); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters