Back to index

glibc  2.9
test-fpucw.c File Reference
#include <fpu_control.h>
#include <stdio.h>

Go to the source code of this file.


int main (void)

Function Documentation

int main ( void  )

Definition at line 24 of file test-fpucw.c.

#ifdef _FPU_GETCW
/* Some architectures don't have _FPU_GETCW (e.g. Linux/Alpha).  */
  fpu_control_t cw;

  _FPU_GETCW (cw);

  cw &= ~_FPU_RESERVED;

  if (cw != (_FPU_DEFAULT & ~_FPU_RESERVED))
    printf ("control word is 0x%lx but should be 0x%lx.\n",
           (long int) cw, (long int) (_FPU_DEFAULT & ~_FPU_RESERVED));

  return cw != (_FPU_DEFAULT & ~_FPU_RESERVED);

  return 0;

Here is the call graph for this function: