Back to index

glibc  2.9
Defines | Functions
s_lrintf.c File Reference
#include <math.h>

Go to the source code of this file.


#define __llrintf   not___llrintf
#define llrintf   not_llrintf


long int __lrintf (float x)

Define Documentation

#define __llrintf   not___llrintf

Definition at line 19 of file s_lrintf.c.

#define llrintf   not_llrintf

Definition at line 20 of file s_lrintf.c.

Function Documentation

long int __lrintf ( float  x)

Definition at line 26 of file s_lrintf.c.

  double tmp;
  long ret;

  __asm ("cvtst/s %2,%1\n\tcvttq/svd %1,%0"
        : "=&f"(ret), "=&f"(tmp) : "f"(x));

  return ret;