diff options
Diffstat (limited to 'lib/libm/arch/sparc64/fenv.c')
-rw-r--r-- | lib/libm/arch/sparc64/fenv.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libm/arch/sparc64/fenv.c b/lib/libm/arch/sparc64/fenv.c index 4a233982ed0..75fb354c6d4 100644 --- a/lib/libm/arch/sparc64/fenv.c +++ b/lib/libm/arch/sparc64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.1 2011/04/24 00:35:22 martynas Exp $ */ +/* $OpenBSD: fenv.c,v 1.2 2011/04/25 21:04:29 martynas Exp $ */ /* $NetBSD: fenv.c,v 1.1 2011/01/31 00:19:33 christos Exp $ */ /*- @@ -40,6 +40,17 @@ ("stx %%fsr, %0" : "=m" (*(__r))) /* + * The following constant represents the default floating-point environment + * (that is, the one installed at program startup) and has type pointer to + * const-qualified fenv_t. + * + * It can be used as an argument to the functions within the <fenv.h> header + * that manage the floating-point environment, namely fesetenv() and + * feupdateenv(). + */ +fenv_t __fe_dfl_env = 0; + +/* * The feclearexcept() function clears the supported floating-point exceptions * represented by `excepts'. */ |