xref: /third_party/musl/src/math/scalbln.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/math/
1570af302Sopenharmony_ci#include <limits.h>
2570af302Sopenharmony_ci#include <math.h>
3570af302Sopenharmony_ci
4570af302Sopenharmony_cidouble scalbln(double x, long n)
5570af302Sopenharmony_ci{
6570af302Sopenharmony_ci	if (n > INT_MAX)
7570af302Sopenharmony_ci		n = INT_MAX;
8570af302Sopenharmony_ci	else if (n < INT_MIN)
9570af302Sopenharmony_ci		n = INT_MIN;
10570af302Sopenharmony_ci	return scalbn(x, n);
11570af302Sopenharmony_ci}
12

Indexes created Thu Nov 07 10:32:03 CST 2024