mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 09:03:22 -05:00
49 lines
2.0 KiB
C++
49 lines
2.0 KiB
C++
#include <cmath>
|
|
|
|
extern "C" {
|
|
|
|
double cbrt_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double asin_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double acos_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double exp_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double atan_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double tan_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double log2_nid_postfix(double x) { (void)x; return 0.0; }
|
|
double log_nid_postfix(double x) { (void)x; return 0.0; }
|
|
|
|
float sinf_nid_postfix(float x) { return std::sin(x); }
|
|
float cosf_nid_postfix(float x) { return std::cos(x); }
|
|
|
|
void sincosf_nid_postfix(float x, float* sinp, float* cosp) {
|
|
*sinp = std::sin(x);
|
|
*cosp = std::cos(x);
|
|
}
|
|
|
|
double sin_nid_postfix(double x) { return std::sin(x); }
|
|
double cos_nid_postfix(double x) { return std::cos(x); }
|
|
|
|
void sincos_nid_postfix(double x, double* sinp, double* cosp) {
|
|
*sinp = std::sin(x);
|
|
*cosp = std::cos(x);
|
|
}
|
|
|
|
float atanf_nid_postfix(float x) { return std::atan(x); }
|
|
double atan2_nid_postfix(double y, double x) { return std::atan2(y, x); }
|
|
float powf_nid_postfix(float base, float exp) { return std::pow(base, exp); }
|
|
double pow_nid_postfix(double base, double exp) { return std::pow(base, exp); }
|
|
float expf_nid_postfix(float x) { return std::exp(x); }
|
|
float exp2f_nid_postfix(float x) { return std::exp2(x); }
|
|
float logf_nid_postfix(float x) { return std::log(x); }
|
|
float log2f_nid_postfix(float x) { return std::log2(x); }
|
|
double log10_nid_postfix(double x) { return std::log10(x); }
|
|
float ldexpf_nid_postfix(float x, int exp) { return std::ldexp(x, exp); }
|
|
double fmod_nid_postfix(double x, double y) { return std::fmod(x, y); }
|
|
float roundf_nid_postfix(float x) { return std::round(x); }
|
|
double round_nid_postfix(double x) { return std::round(x); }
|
|
|
|
int __isfinite_nid_postfix(double x) { return std::isfinite(x) ? 1 : 0; }
|
|
int __isnan_nid_postfix(double x) { return std::isnan(x) ? 1 : 0; }
|
|
int __signbit_nid_postfix(double x) { return std::signbit(x) ? 1 : 0; }
|
|
|
|
}
|