summaryrefslogtreecommitdiff
path: root/src/math/scalbln.c
blob: e6f3f195c856afcf0eafbb0071654800d7b8921c (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <limits.h>
#include <math.h>

double scalbln(double x, long n)
{
	if (n > INT_MAX)
		n = INT_MAX;
	else if (n < INT_MIN)
		n = INT_MIN;
	return scalbn(x, n);
}