comparison src/build-msvctools/math/logbf.c @ 3061:f8299bb6c872

Initial support for native MSVC compilation. * add MSVC support files: compiler wrappers and support libraries * adapt libiconv to work with MSVC * adapt gettext to work with MSVC
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 17 Jun 2013 22:43:11 -0400
parents
children
comparison
equal deleted inserted replaced
3060:cbdf4575016d 3061:f8299bb6c872
1 /*
2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
4 * Public domain.
5 */
6
7 #include <math.h>
8
9 float
10 logbf (float x)
11 {
12 float res;
13 asm ("fxtract\n\t"
14 "fstp %%st" : "=t" (res) : "0" (x));
15 return res;
16 }