aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/ansi/musl-generic-math/scalblnf.c
blob: b6bdeed84503de02890253f4fcb900d39de6df27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <limits.h>
#include <math.h>
#include "libm.h"

float scalblnf(float x, long n)
{
	if (n > INT_MAX)
		n = INT_MAX;
	else if (n < INT_MIN)
		n = INT_MIN;
	return scalbnf(x, n);
}