зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1760633: Apply the fdlibm patches for the new files to the in-tree files r=arai
This updates our previously in-tree files to account for the new files we added. Differential Revision: https://phabricator.services.mozilla.com/D164818
This commit is contained in:
Родитель
ecb85f50cf
Коммит
65956c76e1
|
@ -17,7 +17,7 @@ origin:
|
||||||
|
|
||||||
# Revision to pull in
|
# Revision to pull in
|
||||||
# Must be a long or short commit SHA (long preferred)
|
# Must be a long or short commit SHA (long preferred)
|
||||||
revision: 369ea0520a3061c07400d7cd32172efb6af39815
|
revision: bd5e624a861433dee76fe00a8acedc9564425332
|
||||||
|
|
||||||
license: "BSD-2-Clause"
|
license: "BSD-2-Clause"
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
|
|
|
@ -15,10 +15,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef mozilla_imported_fdlibm_h
|
#ifndef mozilla_imported_fdlibm_h
|
||||||
#define mozilla_imported_fdlibm_h
|
#define mozilla_imported_fdlibm_h
|
||||||
|
|
||||||
namespace fdlibm {
|
namespace fdlibm {
|
||||||
|
|
||||||
|
#ifndef M_PI_2
|
||||||
|
#define M_PI_2 1.57079632679489661923 /* pi/2 */
|
||||||
|
#endif
|
||||||
|
|
||||||
double acos(double);
|
double acos(double);
|
||||||
double asin(double);
|
double asin(double);
|
||||||
double atan(double);
|
double atan(double);
|
||||||
|
@ -45,6 +49,7 @@ double acosh(double);
|
||||||
double asinh(double);
|
double asinh(double);
|
||||||
double atanh(double);
|
double atanh(double);
|
||||||
double cbrt(double);
|
double cbrt(double);
|
||||||
|
double exp2(double);
|
||||||
double expm1(double);
|
double expm1(double);
|
||||||
double hypot(double, double);
|
double hypot(double, double);
|
||||||
double log1p(double);
|
double log1p(double);
|
||||||
|
@ -54,13 +59,26 @@ double copysign(double, double);
|
||||||
double nearbyint(double);
|
double nearbyint(double);
|
||||||
double scalbn(double, int);
|
double scalbn(double, int);
|
||||||
double trunc(double);
|
double trunc(double);
|
||||||
|
float acosf(float);
|
||||||
|
float asinf(float);
|
||||||
|
float atanf(float);
|
||||||
|
float cosf(float);
|
||||||
|
float sinf(float);
|
||||||
|
float tanf(float);
|
||||||
|
float exp2f(float);
|
||||||
|
float expf(float);
|
||||||
|
float logf(float);
|
||||||
|
float powf(float, float);
|
||||||
|
float sqrtf(float);
|
||||||
|
|
||||||
float ceilf(float);
|
float ceilf(float);
|
||||||
|
float fabsf(float);
|
||||||
float floorf(float);
|
float floorf(float);
|
||||||
float nearbyintf(float);
|
float nearbyintf(float);
|
||||||
float rintf(float);
|
float rintf(float);
|
||||||
|
float scalbnf(float, int);
|
||||||
float truncf(float);
|
float truncf(float);
|
||||||
|
|
||||||
} /* namespace fdlibm */
|
} /* namespace fdlibm */
|
||||||
|
|
||||||
#endif /* mozilla_imported_fdlibm_h */
|
#endif /* !mozilla_imported_fdlibm_h */
|
||||||
|
|
|
@ -871,22 +871,34 @@ irintl(long double x)
|
||||||
#define __ieee754_scalbf scalbf
|
#define __ieee754_scalbf scalbf
|
||||||
|
|
||||||
#define acos fdlibm::acos
|
#define acos fdlibm::acos
|
||||||
|
#define acosf fdlibm::acosf
|
||||||
#define asin fdlibm::asin
|
#define asin fdlibm::asin
|
||||||
|
#define asinf fdlibm::asinf
|
||||||
#define atan fdlibm::atan
|
#define atan fdlibm::atan
|
||||||
|
#define atanf fdlibm::atanf
|
||||||
#define atan2 fdlibm::atan2
|
#define atan2 fdlibm::atan2
|
||||||
#define cos fdlibm::cos
|
#define cos fdlibm::cos
|
||||||
|
#define cosf fdlibm::cosf
|
||||||
#define sin fdlibm::sin
|
#define sin fdlibm::sin
|
||||||
|
#define sinf fdlibm::sinf
|
||||||
#define tan fdlibm::tan
|
#define tan fdlibm::tan
|
||||||
|
#define tanf fdlibm::tanf
|
||||||
#define cosh fdlibm::cosh
|
#define cosh fdlibm::cosh
|
||||||
#define sinh fdlibm::sinh
|
#define sinh fdlibm::sinh
|
||||||
#define tanh fdlibm::tanh
|
#define tanh fdlibm::tanh
|
||||||
#define exp fdlibm::exp
|
#define exp fdlibm::exp
|
||||||
|
#define expf fdlibm::expf
|
||||||
|
#define exp2 fdlibm::exp2
|
||||||
|
#define exp2f fdlibm::exp2f
|
||||||
#define log fdlibm::log
|
#define log fdlibm::log
|
||||||
|
#define logf fdlibm::logf
|
||||||
#define log10 fdlibm::log10
|
#define log10 fdlibm::log10
|
||||||
#define pow fdlibm::pow
|
#define pow fdlibm::pow
|
||||||
|
#define powf fdlibm::powf
|
||||||
#define ceil fdlibm::ceil
|
#define ceil fdlibm::ceil
|
||||||
#define ceilf fdlibm::ceilf
|
#define ceilf fdlibm::ceilf
|
||||||
#define fabs fdlibm::fabs
|
#define fabs fdlibm::fabs
|
||||||
|
#define fabsf fdlibm::fabsf
|
||||||
#define floor fdlibm::floor
|
#define floor fdlibm::floor
|
||||||
#define acosh fdlibm::acosh
|
#define acosh fdlibm::acosh
|
||||||
#define asinh fdlibm::asinh
|
#define asinh fdlibm::asinh
|
||||||
|
@ -899,6 +911,7 @@ irintl(long double x)
|
||||||
#define scalb fdlibm::scalb
|
#define scalb fdlibm::scalb
|
||||||
#define copysign fdlibm::copysign
|
#define copysign fdlibm::copysign
|
||||||
#define scalbn fdlibm::scalbn
|
#define scalbn fdlibm::scalbn
|
||||||
|
#define scalbnf fdlibm::scalbnf
|
||||||
#define trunc fdlibm::trunc
|
#define trunc fdlibm::trunc
|
||||||
#define truncf fdlibm::truncf
|
#define truncf fdlibm::truncf
|
||||||
#define floorf fdlibm::floorf
|
#define floorf fdlibm::floorf
|
||||||
|
@ -906,6 +919,7 @@ irintl(long double x)
|
||||||
#define nearbyintf fdlibm::nearbyintf
|
#define nearbyintf fdlibm::nearbyintf
|
||||||
#define rint fdlibm::rint
|
#define rint fdlibm::rint
|
||||||
#define rintf fdlibm::rintf
|
#define rintf fdlibm::rintf
|
||||||
|
#define sqrtf fdlibm::sqrtf
|
||||||
|
|
||||||
/* fdlibm kernel function */
|
/* fdlibm kernel function */
|
||||||
int __kernel_rem_pio2(double*,double*,int,int,int);
|
int __kernel_rem_pio2(double*,double*,int,int,int);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче