summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/math/logbl.c
blob: f1448eb99b6f86acff0158ed2a2de6b46fead8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
 * Public domain.
 */

#include <math.h>

long double
logbl (long double x)
{
  long double res;

  asm ("fxtract\n\t"
       "fstp	%%st" : "=t" (res) : "0" (x));
  return res;
}