Back to index

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

Go to the source code of this file.


int fesetenv (const fenv_t *envp)

Function Documentation

int fesetenv ( const fenv_t envp)

Definition at line 24 of file fesetenv.c.

  fenv_t env;

     This stinks!
     Magic encoding of default values: bit 62+63 set (which will never
     happen for a user-space address) means it's not indirect.
  if (((fenv_t) envp >> 62) == 0x03)
    env = (fenv_t) envp & 0x3fffffffffffffff;
    env = *envp;

  __asm__ __volatile__ ("mov.m ar.fpsr=%0;;" :: "r" (env));

  return 0;

Here is the call graph for this function: