PHP 8.5.2
Preview: fenv.h Size: 5.65 KB
//usr/include/fenv.h

/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <https://www.gnu.org/licenses/>.  */

/*
 * ISO C99 7.6: Floating-point environment	<fenv.h>
 */

#ifndef _FENV_H
#define _FENV_H	1

#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
#include <bits/libc-header-start.h>

/* Get the architecture dependent definitions.  The following definitions
   are expected to be done:

   fenv_t	type for object representing an entire floating-point
		environment

   FE_DFL_ENV	macro of type pointer to fenv_t to be used as the argument
		to functions taking an argument of type fenv_t; in this
		case the default environment will be used

   fexcept_t	type for object representing the floating-point exception
		flags including status associated with the flags

   femode_t	type for object representing floating-point control modes

   FE_DFL_MODE	macro of type pointer to const femode_t to be used as the
		argument to fesetmode; in this case the default control
		modes will be used

   The following macros are defined iff the implementation supports this
   kind of exception.
   FE_INEXACT		inexact result
   FE_DIVBYZERO		division by zero
   FE_UNDERFLOW		result not representable due to underflow
   FE_OVERFLOW		result not representable due to overflow
   FE_INVALID		invalid operation

   FE_ALL_EXCEPT	bitwise OR of all supported exceptions

   The next macros are defined iff the appropriate rounding mode is
   supported by the implementation.
   FE_TONEAREST		round to nearest
   FE_UPWARD		round toward +Inf
   FE_DOWNWARD		round toward -Inf
   FE_TOWARDZERO	round toward 0
*/
#include <bits/fenv.h>

__BEGIN_DECLS

/* Floating-point exception handling.  */

/* Clear the supported exceptions represented by EXCEPTS.  */
extern int feclearexcept (int __excepts) __THROW;

/* Store implementation-defined representation of the exception flags
   indicated by EXCEPTS in the object pointed to by FLAGP.  */
extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;

/* Raise the supported exceptions represented by EXCEPTS.  */
extern int feraiseexcept (int __excepts) __THROW;

#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
/* Set the supported exception flags represented by EXCEPTS, without
   causing enabled traps to be taken.  */
extern int fesetexcept (int __excepts) __THROW;
#endif

/* Set complete status for exceptions indicated by EXCEPTS according to
   the representation in the object pointed to by FLAGP.  */
extern int fesetexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;

/* Determine which of subset of the exceptions specified by EXCEPTS are
   currently set.  */
extern int fetestexcept (int __excepts) __THROW;

#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
/* Determine which of subset of the exceptions specified by EXCEPTS
   are set in *FLAGP.  */
extern int fetestexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
#endif


/* Rounding control.  */

/* Get current rounding direction.  */
extern int fegetround (void) __THROW __attribute_pure__;

/* Establish the rounding direction represented by ROUND.  */
extern int fesetround (int __rounding_direction) __THROW;


/* Floating-point environment.  */

/* Store the current floating-point environment in the object pointed
   to by ENVP.  */
extern int fegetenv (fenv_t *__envp) __THROW;

/* Save the current environment in the object pointed to by ENVP, clear
   exception flags and install a non-stop mode (if available) for all
   exceptions.  */
extern int feholdexcept (fenv_t *__envp) __THROW;

/* Establish the floating-point environment represented by the object
   pointed to by ENVP.  */
extern int fesetenv (const fenv_t *__envp) __THROW;

/* Save current exceptions in temporary storage, install environment
   represented by object pointed to by ENVP and raise exceptions
   according to saved exceptions.  */
extern int feupdateenv (const fenv_t *__envp) __THROW;


/* Control modes.  */

#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
/* Store the current floating-point control modes in the object
   pointed to by MODEP.  */
extern int fegetmode (femode_t *__modep) __THROW;

/* Establish the floating-point control modes represented by the
   object pointed to by MODEP.  */
extern int fesetmode (const femode_t *__modep) __THROW;
#endif


/* NaN support.  */

#if (__GLIBC_USE (IEC_60559_BFP_EXT_C2X)		\
     && defined FE_INVALID			\
     && defined __SUPPORT_SNAN__)
# define FE_SNANS_ALWAYS_SIGNAL	1
#endif

#ifdef __USE_GNU

/* Enable individual exceptions.  Will not enable more exceptions than
   EXCEPTS specifies.  Returns the previous enabled exceptions if all
   exceptions are successfully set, otherwise returns -1.  */
extern int feenableexcept (int __excepts) __THROW;

/* Disable individual exceptions.  Will not disable more exceptions than
   EXCEPTS specifies.  Returns the previous enabled exceptions if all
   exceptions are successfully disabled, otherwise returns -1.  */
extern int fedisableexcept (int __excepts) __THROW;

/* Return enabled exceptions.  */
extern int fegetexcept (void) __THROW;
#endif

__END_DECLS

#endif /* fenv.h */

Directory Contents

Dirs: 36 × Files: 111

Name Size Perms Modified Actions
arpa DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
c++ DIR
- drwxr-xr-x 2026-01-23 09:03:09
Edit Download
- drwxr-xr-x 2026-01-23 09:02:20
Edit Download
drm DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
finclude DIR
- drwxr-xr-x 2026-01-08 12:55:43
Edit Download
iproute2 DIR
- drwxr-xr-x 2026-01-08 12:55:09
Edit Download
linux DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
memcached DIR
- drwxr-xr-x 2026-01-23 09:03:05
Edit Download
misc DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
mtd DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
net DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netash DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netatalk DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netax25 DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
neteconet DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netinet DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netipx DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netiucv DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netpacket DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netrom DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
netrose DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
nfs DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
openssl DIR
- drwxr-xr-x 2026-02-07 06:05:11
Edit Download
protocols DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
rdma DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
regulator DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
rpc DIR
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
rpcsvc DIR
- drwxr-xr-x 2026-01-08 12:55:43
Edit Download
scsi DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
sound DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
video DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
X11 DIR
- drwxr-xr-x 2024-04-08 16:23:20
Edit Download
- drwxr-xr-x 2026-02-07 06:05:07
Edit Download
xen DIR
- drwxr-xr-x 2026-02-07 06:05:08
Edit Download
xfs DIR
- drwxr-xr-x 2024-10-17 07:36:15
Edit Download
7.56 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.98 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.17 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.69 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
24.95 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.91 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.97 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.42 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.95 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.21 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
10.87 KB lrw-r--r-- 2024-04-08 16:09:21
Edit Download
10.71 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
12.32 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
8.38 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
190.33 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.25 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.80 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.33 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.64 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.37 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.49 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
11.17 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.38 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
18.09 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.65 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.16 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.24 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.04 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
9.35 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
6.19 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
40.72 KB lrw-r--r-- 2024-03-31 05:33:52
Edit Download
4.11 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.43 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.13 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.29 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.84 KB lrw-r--r-- 2024-04-08 16:12:01
Edit Download
6.69 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.58 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.87 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.77 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
11.04 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
17.43 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
126 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.35 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.47 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.57 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.62 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.50 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.84 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
49.75 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.38 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
956 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.28 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.92 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.50 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
27.79 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.71 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
14.07 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
20.81 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.91 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
22 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
6.71 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.40 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
47.25 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.53 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
6.17 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
25.30 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.35 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
12.02 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
963 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.92 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.32 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.38 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.12 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.31 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.50 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
12.73 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
8.19 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
264 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
26.27 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.40 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.96 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
33.84 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.73 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
40.07 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
19.50 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.64 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
11.68 KB lrw-r--r-- 2025-06-25 12:42:53
Edit Download
25 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.11 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
24 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.66 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
214 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.51 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
46.51 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
7.62 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
15.65 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
14.77 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.44 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.04 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.99 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.55 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
44.00 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.86 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
3.15 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
4.00 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
1.91 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
22 B lrw-r--r-- 2026-01-30 08:27:54
Edit Download
38.19 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
5.42 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download
2.44 KB lrw-r--r-- 2026-01-30 08:27:54
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).