xref: /haiku/src/system/libroot/posix/musl/math/scalbln.c (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 #include <limits.h>
2 #include <math.h>
3 
4 double scalbln(double x, long n)
5 {
6 	if (n > INT_MAX)
7 		n = INT_MAX;
8 	else if (n < INT_MIN)
9 		n = INT_MIN;
10 	return scalbn(x, n);
11 }
12