Subversion Repositories Kolibri OS

Rev

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

  1. #include <math.h>
  2.  
  3. long lrintf (float x)
  4. {
  5.   long retval;
  6.   __asm__ __volatile__                                                        \
  7.     ("fistpl %0"  : "=m" (retval) : "t" (x) : "st");                                  \
  8.   return retval;
  9. }
  10.