1#include <float.h>
2#include <math.h>
3
4#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
5long double remainderl(long double x, long double y) {
6    return remainder(x, y);
7}
8#else
9long double remainderl(long double x, long double y) {
10    int q;
11    return remquol(x, y, &q);
12}
13#endif
14