Back to index

glibc  2.9
Functions
fesetround.c File Reference
#include <fenv_libc.h>
#include <fpu_control.h>

Go to the source code of this file.

Functions

int fesetround (int round)

Function Documentation

int fesetround ( int  round)

Definition at line 25 of file fesetround.c.

{
  if ((round|FPC_RM_MASK) != FPC_RM_MASK)
    {
      /* ROUND is not a valid rounding mode.  */
      return 1;
    }
  __asm__ volatile ("srnm 0(%0)"
                  :
                  : "a" (round));

  return 0;
}

Here is the call graph for this function: