mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
Merge pull request #6167 from freshstart2066-create/feat/libc-ceill-floorl
feat(libc): implement ceill and floorl
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -559,6 +559,8 @@ long double APS5_VABI log10l_nid_postfix(long double x) { return std::log10(x);
|
||||
long double APS5_VABI powl_nid_postfix(long double base, long double exp) { return std::pow(base, exp); }
|
||||
long double APS5_VABI ldexpl_nid_postfix(long double x, int exp) { return std::ldexp(x, exp); }
|
||||
long double APS5_VABI truncl_nid_postfix(long double x) { return std::trunc(x); }
|
||||
long double APS5_VABI ceill_nid_postfix(long double x) { return std::ceil(x); }
|
||||
long double APS5_VABI floorl_nid_postfix(long double x) { return std::floor(x); }
|
||||
double APS5_VABI logb_nid_postfix(double x) { return std::logb(x); }
|
||||
int APS5_VABI ilogb_nid_postfix(double x) {
|
||||
if (x == 0.0) {
|
||||
|
||||
@@ -79,6 +79,8 @@ float APS5_VABI copysignf_nid_postfix(float, float);
|
||||
double APS5_VABI remquo_nid_postfix(double, double, int*);
|
||||
float APS5_VABI remquof_nid_postfix(float, float, int*);
|
||||
float APS5_VABI fmaf_nid_postfix(float, float, float);
|
||||
long double APS5_VABI ceill_nid_postfix(long double);
|
||||
long double APS5_VABI floorl_nid_postfix(long double);
|
||||
float APS5_VABI tanf_nid_postfix(float);
|
||||
int APS5_VABI rand_nid_postfix();
|
||||
void APS5_VABI srand_nid_postfix(unsigned int);
|
||||
@@ -407,6 +409,10 @@ static void CheckLongDouble() {
|
||||
Require(frexpl_nid_postfix(INFINITY, &exponent) == INFINITY && exponent == 77);
|
||||
Require(frexpl_nid_postfix(-INFINITY, &exponent) == -INFINITY && exponent == 77);
|
||||
Require(std::isnan(frexpl_nid_postfix(NAN, &exponent)) && exponent == 77);
|
||||
Require(ceill_nid_postfix(2.2L) == 3.0L && ceill_nid_postfix(-2.7L) == -2.0L);
|
||||
Require(floorl_nid_postfix(2.7L) == 2.0L && floorl_nid_postfix(-2.2L) == -3.0L);
|
||||
Require(ceill_nid_postfix(2.0L) == 2.0L && floorl_nid_postfix(-2.0L) == -2.0L);
|
||||
Require(std::isnan(ceill_nid_postfix(NAN)) && std::isnan(floorl_nid_postfix(NAN)));
|
||||
}
|
||||
|
||||
static void CheckNearbyintl() {
|
||||
|
||||
Reference in new issue
Block a user