Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: fenv.h
/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* ISO C99 7.6: Floating-point environment <fenv.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _FENV_H
[21] Fix | Delete
#define _FENV_H 1
[22] Fix | Delete
[23] Fix | Delete
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
[24] Fix | Delete
#include <bits/libc-header-start.h>
[25] Fix | Delete
[26] Fix | Delete
/* Get the architecture dependend definitions. The following definitions
[27] Fix | Delete
are expected to be done:
[28] Fix | Delete
[29] Fix | Delete
fenv_t type for object representing an entire floating-point
[30] Fix | Delete
environment
[31] Fix | Delete
[32] Fix | Delete
FE_DFL_ENV macro of type pointer to fenv_t to be used as the argument
[33] Fix | Delete
to functions taking an argument of type fenv_t; in this
[34] Fix | Delete
case the default environment will be used
[35] Fix | Delete
[36] Fix | Delete
fexcept_t type for object representing the floating-point exception
[37] Fix | Delete
flags including status associated with the flags
[38] Fix | Delete
[39] Fix | Delete
femode_t type for object representing floating-point control modes
[40] Fix | Delete
[41] Fix | Delete
FE_DFL_MODE macro of type pointer to const femode_t to be used as the
[42] Fix | Delete
argument to fesetmode; in this case the default control
[43] Fix | Delete
modes will be used
[44] Fix | Delete
[45] Fix | Delete
The following macros are defined iff the implementation supports this
[46] Fix | Delete
kind of exception.
[47] Fix | Delete
FE_INEXACT inexact result
[48] Fix | Delete
FE_DIVBYZERO division by zero
[49] Fix | Delete
FE_UNDERFLOW result not representable due to underflow
[50] Fix | Delete
FE_OVERFLOW result not representable due to overflow
[51] Fix | Delete
FE_INVALID invalid operation
[52] Fix | Delete
[53] Fix | Delete
FE_ALL_EXCEPT bitwise OR of all supported exceptions
[54] Fix | Delete
[55] Fix | Delete
The next macros are defined iff the appropriate rounding mode is
[56] Fix | Delete
supported by the implementation.
[57] Fix | Delete
FE_TONEAREST round to nearest
[58] Fix | Delete
FE_UPWARD round toward +Inf
[59] Fix | Delete
FE_DOWNWARD round toward -Inf
[60] Fix | Delete
FE_TOWARDZERO round toward 0
[61] Fix | Delete
*/
[62] Fix | Delete
#include <bits/fenv.h>
[63] Fix | Delete
[64] Fix | Delete
__BEGIN_DECLS
[65] Fix | Delete
[66] Fix | Delete
/* Floating-point exception handling. */
[67] Fix | Delete
[68] Fix | Delete
/* Clear the supported exceptions represented by EXCEPTS. */
[69] Fix | Delete
extern int feclearexcept (int __excepts) __THROW;
[70] Fix | Delete
[71] Fix | Delete
/* Store implementation-defined representation of the exception flags
[72] Fix | Delete
indicated by EXCEPTS in the object pointed to by FLAGP. */
[73] Fix | Delete
extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
[74] Fix | Delete
[75] Fix | Delete
/* Raise the supported exceptions represented by EXCEPTS. */
[76] Fix | Delete
extern int feraiseexcept (int __excepts) __THROW;
[77] Fix | Delete
[78] Fix | Delete
#if __GLIBC_USE (IEC_60559_BFP_EXT)
[79] Fix | Delete
/* Set the supported exception flags represented by EXCEPTS, without
[80] Fix | Delete
causing enabled traps to be taken. */
[81] Fix | Delete
extern int fesetexcept (int __excepts) __THROW;
[82] Fix | Delete
#endif
[83] Fix | Delete
[84] Fix | Delete
/* Set complete status for exceptions indicated by EXCEPTS according to
[85] Fix | Delete
the representation in the object pointed to by FLAGP. */
[86] Fix | Delete
extern int fesetexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
[87] Fix | Delete
[88] Fix | Delete
/* Determine which of subset of the exceptions specified by EXCEPTS are
[89] Fix | Delete
currently set. */
[90] Fix | Delete
extern int fetestexcept (int __excepts) __THROW;
[91] Fix | Delete
[92] Fix | Delete
#if __GLIBC_USE (IEC_60559_BFP_EXT)
[93] Fix | Delete
/* Determine which of subset of the exceptions specified by EXCEPTS
[94] Fix | Delete
are set in *FLAGP. */
[95] Fix | Delete
extern int fetestexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
[96] Fix | Delete
#endif
[97] Fix | Delete
[98] Fix | Delete
[99] Fix | Delete
/* Rounding control. */
[100] Fix | Delete
[101] Fix | Delete
/* Get current rounding direction. */
[102] Fix | Delete
extern int fegetround (void) __THROW __attribute_pure__;
[103] Fix | Delete
[104] Fix | Delete
/* Establish the rounding direction represented by ROUND. */
[105] Fix | Delete
extern int fesetround (int __rounding_direction) __THROW;
[106] Fix | Delete
[107] Fix | Delete
[108] Fix | Delete
/* Floating-point environment. */
[109] Fix | Delete
[110] Fix | Delete
/* Store the current floating-point environment in the object pointed
[111] Fix | Delete
to by ENVP. */
[112] Fix | Delete
extern int fegetenv (fenv_t *__envp) __THROW;
[113] Fix | Delete
[114] Fix | Delete
/* Save the current environment in the object pointed to by ENVP, clear
[115] Fix | Delete
exception flags and install a non-stop mode (if available) for all
[116] Fix | Delete
exceptions. */
[117] Fix | Delete
extern int feholdexcept (fenv_t *__envp) __THROW;
[118] Fix | Delete
[119] Fix | Delete
/* Establish the floating-point environment represented by the object
[120] Fix | Delete
pointed to by ENVP. */
[121] Fix | Delete
extern int fesetenv (const fenv_t *__envp) __THROW;
[122] Fix | Delete
[123] Fix | Delete
/* Save current exceptions in temporary storage, install environment
[124] Fix | Delete
represented by object pointed to by ENVP and raise exceptions
[125] Fix | Delete
according to saved exceptions. */
[126] Fix | Delete
extern int feupdateenv (const fenv_t *__envp) __THROW;
[127] Fix | Delete
[128] Fix | Delete
[129] Fix | Delete
/* Control modes. */
[130] Fix | Delete
[131] Fix | Delete
#if __GLIBC_USE (IEC_60559_BFP_EXT)
[132] Fix | Delete
/* Store the current floating-point control modes in the object
[133] Fix | Delete
pointed to by MODEP. */
[134] Fix | Delete
extern int fegetmode (femode_t *__modep) __THROW;
[135] Fix | Delete
[136] Fix | Delete
/* Establish the floating-point control modes represented by the
[137] Fix | Delete
object pointed to by MODEP. */
[138] Fix | Delete
extern int fesetmode (const femode_t *__modep) __THROW;
[139] Fix | Delete
#endif
[140] Fix | Delete
[141] Fix | Delete
/* Include optimization. */
[142] Fix | Delete
#ifdef __OPTIMIZE__
[143] Fix | Delete
# include <bits/fenvinline.h>
[144] Fix | Delete
#endif
[145] Fix | Delete
[146] Fix | Delete
/* NaN support. */
[147] Fix | Delete
[148] Fix | Delete
#if (__GLIBC_USE (IEC_60559_BFP_EXT) \
[149] Fix | Delete
&& defined FE_INVALID \
[150] Fix | Delete
&& defined __SUPPORT_SNAN__)
[151] Fix | Delete
# define FE_SNANS_ALWAYS_SIGNAL 1
[152] Fix | Delete
#endif
[153] Fix | Delete
[154] Fix | Delete
#ifdef __USE_GNU
[155] Fix | Delete
[156] Fix | Delete
/* Enable individual exceptions. Will not enable more exceptions than
[157] Fix | Delete
EXCEPTS specifies. Returns the previous enabled exceptions if all
[158] Fix | Delete
exceptions are successfully set, otherwise returns -1. */
[159] Fix | Delete
extern int feenableexcept (int __excepts) __THROW;
[160] Fix | Delete
[161] Fix | Delete
/* Disable individual exceptions. Will not disable more exceptions than
[162] Fix | Delete
EXCEPTS specifies. Returns the previous enabled exceptions if all
[163] Fix | Delete
exceptions are successfully disabled, otherwise returns -1. */
[164] Fix | Delete
extern int fedisableexcept (int __excepts) __THROW;
[165] Fix | Delete
[166] Fix | Delete
/* Return enabled exceptions. */
[167] Fix | Delete
extern int fegetexcept (void) __THROW;
[168] Fix | Delete
#endif
[169] Fix | Delete
[170] Fix | Delete
__END_DECLS
[171] Fix | Delete
[172] Fix | Delete
#endif /* fenv.h */
[173] Fix | Delete
[174] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function