2002-09-05 13:51:26 +02:00
|
|
|
#include <fenv.h>
|
|
|
|
|
|
|
|
/* 7.6.4.1
|
|
|
|
The fegetenv function stores the current floating-point environment
|
|
|
|
in the object pointed to by envp. */
|
|
|
|
|
2005-08-25 10:39:54 +02:00
|
|
|
int fegetenv (fenv_t * envp)
|
2002-09-05 13:51:26 +02:00
|
|
|
{
|
|
|
|
__asm__ ("fnstenv %0;": "=m" (*envp));
|
2005-08-25 10:39:54 +02:00
|
|
|
return 0;
|
2002-09-05 13:51:26 +02:00
|
|
|
}
|
|
|
|
|