mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
10 lines
191 B
C
10 lines
191 B
C
#include "libc/limits.h"
|
|
#include "libc/math/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);
|
|
}
|