Back to index

glibc  2.9
fegetround.c File Reference
#include <fenv.h>

Go to the source code of this file.


int fegetround (void)

Function Documentation

int fegetround ( void  )

Definition at line 24 of file fegetround.c.

  int cw;
  /* We only check the x87 FPU unit.  The SSE unit should be the same
     - and if it's not the same there's no way to signal it.  */

  __asm__ ("fnstcw %0" : "=m" (*&cw));

  return cw & 0xc00;

Here is the call graph for this function: