Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ldexpl.c « math « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4477bf6c1be5bd38ea4215f92d55076919c90c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <math.h>
#include <errno.h>


long double ldexpl(long double x, int expn)
{
  if (isfinite (x) && x != 0.0L)
    {
      x = scalbnl (x , expn);
      if (!isfinite (x) || x == 0.0) errno = ERANGE;
    }
  return x;
}