ReactOS  0.4.15-dev-3428-g0609db5
logb.c File Reference
#include <precomp.h>
Include dependency graph for logb.c:

Go to the source code of this file.

Functions

double _logb (double __x)
 

Function Documentation

◆ _logb()

double _logb ( double  __x)

Definition at line 24 of file logb.c.

25 {
26  register double __val;
27 #ifdef __GNUC__
28  register double __junk;
29  __asm __volatile__
30  ("fxtract\n\t"
31  : "=t" (__junk), "=u" (__val) : "0" (__x));
32 #else
33 #pragma message ("REVIEW ME")
34  __asm fld [__x];
35  __asm fxtract;
36  __asm fstp st(0);
37  __asm fstp [__val];
38 #endif /*__GNUC__*/
39  return __val;
40 }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656