A smaller codesize wrap, since it gets inlined in many places

This commit is contained in:
Julian Kent 2019-09-05 17:34:29 +02:00 committed by Matthias Grob
parent 74ace7d1d5
commit 22bf63cb71
2 changed files with 5 additions and 20 deletions

View File

@ -20,7 +20,6 @@ int main()
TEST(fabs(wrap(360., 0., 360.)) < FLT_EPSILON);
TEST(fabs(wrap(360. - FLT_EPSILON, 0., 360.) - (360. - FLT_EPSILON)) < FLT_EPSILON);
TEST(fabs(wrap(360. + FLT_EPSILON, 0., 360.) - FLT_EPSILON) < FLT_EPSILON);
TEST(!is_finite(wrap(1000., 0., .01)));
// wrap pi
TEST(fabs(wrap_pi(0.)) < FLT_EPSILON);