Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <math.h>
  2. int __fpclassifyl (long double _x){
  3.   unsigned short sw;
  4.   __asm__ (
  5.         "fxam; fstsw %%ax;"
  6.         : "=a" (sw)
  7.         : "t" (_x)
  8.         );
  9.   return sw & (FP_NAN | FP_NORMAL | FP_ZERO );
  10. }
  11.