xref: /haiku/src/system/libroot/posix/musl/math/remainderl.c (revision 0fae96c5a349db3761ac2a4ab4a7fbbf23a3b76c)
1 #include <math.h>
2 #include <float.h>
3 
4 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
5 long double remainderl(long double x, long double y)
6 {
7 	return remainder(x, y);
8 }
9 #else
10 long double remainderl(long double x, long double y)
11 {
12 	int q;
13 	return remquol(x, y, &q);
14 }
15 #endif
16