summaryrefslogtreecommitdiff
path: root/src/math/scalbln.c
blob: 53854fda71cfbbc929ed9f8d04d9e790f6231f37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <limits.h>
#include "libm.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);
}