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.

  union { unsigned long long l; unsigned int sw[2] } s;

  /* Get the current status word. */
  __asm__ ("fstd %%fr0,0(%1)       \n\t" 
          "fldd 0(%1),%%fr0 \n\t" 
           : "=m" (s.l) : "r" (&s.l));

  return (s.sw[0] & FE_DOWNWARD);

Here is the call graph for this function: