Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
glibc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
d87b712
abilist
aout
argp
assert
bare
bits
catgets
conf
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf
gmon
gnulib
grp
hesiod
hurd
iconv
iconvdata
include
inet
intl
io
libidn
libio
linuxthreads
linuxthreads_db
locale
localedata
login
mach
malloc
manual
math
misc
nis
nptl
nptl_db
nscd
nss
po
posix
pwd
resolv
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string
sunrpc
sysdeps
alpha
arm
generic
gnu
hppa
i386
ia64
bits
elf
fpu
bits
Dist
Makefile
README
Versions
branred.c
doasin.c
dosincos.c
e_acos.S
e_acosf.S
e_acosh.S
e_acoshf.S
e_acoshl.S
e_acosl.S
e_asin.S
e_asinf.S
e_asinl.S
e_atan2.S
e_atan2f.S
e_atan2l.c
e_atanh.S
e_atanhf.S
e_atanhl.S
e_cosh.S
e_coshf.S
e_coshl.S
e_exp.S
e_exp10.S
e_exp10f.S
e_exp10l.S
e_exp2.S
e_exp2f.S
e_exp2l.S
e_expf.S
e_expl.c
e_fmod.S
e_fmodf.S
e_fmodl.S
e_gamma_r.c
e_gammaf_r.c
e_gammal_r.c
e_hypot.S
e_hypotf.S
e_hypotl.S
e_lgamma_r.c
e_lgammaf_r.c
e_lgammal_r.c
e_log.S
e_log10.c
e_log10f.c
e_log10l.c
e_log2.S
e_log2f.S
e_log2l.S
e_logf.S
e_logl.S
e_pow.S
e_powf.S
e_powl.S
e_rem_pio2.c
e_rem_pio2f.c
e_remainder.S
e_remainderf.S
e_remainderl.S
e_scalb.S
e_scalbf.S
e_scalbl.S
e_sinh.S
e_sinhf.S
e_sinhl.S
e_sqrt.S
e_sqrtf.S
e_sqrtl.S
fclrexcpt.c
fedisblxcpt.c
feenablxcpt.c
fegetenv.c
fegetexcept.c
fegetround.c
feholdexcpt.c
fesetenv.c
fesetround.c
feupdateenv.c
fgetexcptflg.c
fraiseexcpt.c
fsetexcptflg.c
ftestexcept.c
gen_import_file_list
halfulp.c
import_check
import_diffs
import_file.awk
import_intel_libm
k_rem_pio2.c
k_rem_pio2f.c
k_rem_pio2l.c
libc_libm_error.c
libm-symbols.h
libm-test-ulps
libm_cpu_defs.h
libm_error.c
libm_error_codes.h
libm_frexp.S
libm_frexp4.S
libm_frexp4f.S
libm_frexp4l.S
libm_frexpf.S
libm_frexpl.S
libm_lgamma.S
libm_lgammaf.S
libm_lgammal.S
libm_reduce.S
libm_scalblnf.S
libm_sincos.S
libm_sincos_large.S
libm_sincosf.S
libm_sincosl.S
libm_support.h
libm_tan.S
math_ldbl.h
mpa.c
mpatan.c
mpatan2.c
mpexp.c
mplog.c
mpsqrt.c
mptan.c
printf_fphex.c
s_asinh.S
s_asinhf.S
s_asinhl.S
s_atan.S
s_atanf.S
s_atanl.S
s_cbrt.S
s_cbrtf.S
s_cbrtl.S
s_ceil.S
s_ceilf.S
s_ceill.S
s_copysign.S
s_copysignf.S
s_copysignl.S
s_cos.S
s_cosf.S
s_cosl.S
s_erf.S
s_erfc.S
s_erfcf.S
s_erfcl.S
s_erff.S
s_erfl.S
s_expm1.S
s_expm1f.S
s_expm1l.S
s_fabs.S
s_fabsf.S
s_fabsl.S
s_fdim.S
s_fdimf.S
s_fdiml.S
s_finite.S
s_finitef.S
s_finitel.S
s_floor.S
s_floorf.S
s_floorl.S
s_fma.S
s_fmaf.S
s_fmal.S
s_fmax.S
s_fmaxf.S
s_fmaxl.S
s_fpclassify.S
s_fpclassifyf.S
s_fpclassifyl.S
s_frexp.c
s_frexpf.c
s_frexpl.c
s_ilogb.S
s_ilogbf.S
s_ilogbl.S
s_isinf.S
s_isinff.S
s_isinfl.S
s_isnan.S
s_isnanf.S
s_isnanl.S
s_ldexp.c
s_ldexpf.c
s_ldexpl.c
s_libm_ldexp.S
s_libm_ldexpf.S
s_libm_ldexpl.S
s_libm_scalbn.S
s_libm_scalbnf.S
s_libm_scalbnl.S
s_log1p.S
s_log1pf.S
s_log1pl.S
s_logb.S
s_logbf.S
s_logbl.S
s_matherrf.c
s_matherrl.c
s_modf.S
s_modff.S
s_modfl.S
s_nearbyint.S
s_nearbyintf.S
s_nearbyintl.S
s_nextafter.S
s_nextafterf.S
s_nextafterl.S
s_nexttoward.S
s_nexttowardf.S
s_nexttowardl.S
s_rint.S
s_rintf.S
s_rintl.S
s_round.S
s_roundf.S
s_roundl.S
s_scalblnf.c
s_scalbn.c
s_scalbnf.c
s_scalbnl.c
s_signbit.S
s_signbitf.S
s_signbitl.S
s_significand.S
s_significandf.S
s_significandl.S
s_sin.c
s_sincos.c
s_sincosf.c
s_sincosl.c
s_sinf.c
s_sinl.c
s_tan.S
s_tanf.S
s_tanh.S
s_tanhf.S
s_tanhl.S
s_tanl.S
s_trunc.S
s_truncf.S
s_truncl.S
sincos32.c
slowexp.c
slowpow.c
t_exp.c
w_acos.c
w_acosf.c
w_acosh.c
w_acoshf.c
w_acoshl.c
w_acosl.c
w_asin.c
w_asinf.c
w_asinl.c
w_atan2.c
w_atan2f.c
w_atan2l.c
w_atanh.c
w_atanhf.c
w_atanhl.c
w_cosh.c
w_coshf.c
w_coshl.c
w_exp.c
w_exp10.c
w_exp10f.c
w_exp10l.c
w_exp2.c
w_exp2f.c
w_exp2l.c
w_expf.c
w_expl.c
w_fmod.c
w_fmodf.c
w_fmodl.c
w_hypot.c
w_hypotf.c
w_hypotl.c
w_lgamma.c
w_lgamma_r.c
w_lgammaf.c
w_lgammaf_r.c
w_lgammal.c
w_lgammal_r.c
w_log.c
w_log10.c
w_log10f.c
w_log10l.c
w_log2.c
w_log2f.c
w_log2l.c
w_logf.c
w_logl.c
w_pow.c
w_powf.c
w_powl.c
w_remainder.c
w_remainderf.c
w_remainderl.c
w_scalb.c
w_scalbf.c
w_scalbl.c
w_sinh.c
w_sinhf.c
w_sinhl.c
w_sqrt.c
w_sqrtf.c
w_sqrtl.c
w_tgamma.S
w_tgammaf.S
w_tgammal.S
Dist
Implies
Makefile
Versions
_mcount.S
abort-instr.h
backtrace.c
bcopy.S
bzero.S
dl-dtprocnum.h
dl-fptr.h
dl-lookupcfg.h
dl-machine.h
dl-sysdep.h
dl-tls.h
dl-trampoline.S
gccframe.h
hp-timing.c
hp-timing.h
htonl.S
htons.S
ia64libgcc.S
ieee754.h
libc-tls.c
machine-gmon.h
memccpy.S
memchr.S
memcmp.S
memcpy.S
memmove.S
memset.S
memusage.h
softpipe.h
stackinfo.h
strcat.c
strchr.S
strcmp.S
strcpy.S
strlen.S
strncmp.S
strncpy.S
sysdep.h
ieee754
m68k
mach
mips
posix
powerpc
pthread
rs6000
s390
sh
sparc
unix
wordsize-32
wordsize-64
x86_64
linkmap.h
sysvipc
termios
time
timezone
wcsmbs
wctype
.cvsignore
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
CONFORMANCE
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
FAQ
FAQ.in
INSTALL
INTERFACE
LICENSES
MakeTAGS
Makeconfig
Makefile
Makefile.in
Makerules
NAMESPACE
NEWS
NOTES
PROJECTS
README
README.libm
README.template
Rules
Versions.def
WUR-REPORT
abi-tags
aclocal.m4
config-name.in
config.h.in
config.make.in
configure
configure.in
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
o-iterator.mk
shlib-versions
test-skeleton.c
tls.make.c
version.h
Breadcrumbs
glibc
/
sysdeps
/
ia64
/
fpu
/
libm_error_codes.h
Blame
Blame
Latest commit
History
History
211 lines (201 loc) · 11.4 KB
Breadcrumbs
glibc
/
sysdeps
/
ia64
/
fpu
/
libm_error_codes.h
Top
File metadata and controls
Code
Blame
211 lines (201 loc) · 11.4 KB
Raw
/* file: libm_error_codes.h */ /* // Copyright (c) 2000 - 2004, Intel Corporation // All rights reserved. // // Contributed 2000 by the Intel Numerics Group, Intel Corporation // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // * The name of Intel Corporation may not be used to endorse or promote // products derived from this software without specific prior written // permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Intel Corporation is the author of this code, and requests that all // problem reports or change requests be submitted to it directly at // http://www.intel.com/software/products/opensource/libraries/num.htm. // // Abstract: // ======================================================================== // This file contains the interface to the Intel exception dispatcher. // // // History: // ======================================================================== // 12/15/2004 Initial version - extracted from libm_support.h // */ #if !defined(__LIBM_ERROR_CODES_H__) #define __LIBM_ERROR_CODES_H__ typedef enum { logl_zero=0, logl_negative, /* 0, 1 */ log_zero, log_negative, /* 2, 3 */ logf_zero, logf_negative, /* 4, 5 */ log10l_zero, log10l_negative, /* 6, 7 */ log10_zero, log10_negative, /* 8, 9 */ log10f_zero, log10f_negative, /* 10, 11 */ expl_overflow, expl_underflow, /* 12, 13 */ exp_overflow, exp_underflow, /* 14, 15 */ expf_overflow, expf_underflow, /* 16, 17 */ powl_overflow, powl_underflow, /* 18, 19 */ powl_zero_to_zero, /* 20 */ powl_zero_to_negative, /* 21 */ powl_neg_to_non_integer, /* 22 */ powl_nan_to_zero, /* 23 */ pow_overflow, pow_underflow, /* 24, 25 */ pow_zero_to_zero, /* 26 */ pow_zero_to_negative, /* 27 */ pow_neg_to_non_integer, /* 28 */ pow_nan_to_zero, /* 29 */ powf_overflow, powf_underflow, /* 30, 31 */ powf_zero_to_zero, /* 32 */ powf_zero_to_negative, /* 33 */ powf_neg_to_non_integer, /* 34 */ powf_nan_to_zero, /* 35 */ atan2l_zero, /* 36 */ atan2_zero, /* 37 */ atan2f_zero, /* 38 */ expm1l_overflow, /* 39 */ expm1l_underflow, /* 40 */ expm1_overflow, /* 41 */ expm1_underflow, /* 42 */ expm1f_overflow, /* 43 */ expm1f_underflow, /* 44 */ hypotl_overflow, /* 45 */ hypot_overflow, /* 46 */ hypotf_overflow, /* 47 */ sqrtl_negative, /* 48 */ sqrt_negative, /* 49 */ sqrtf_negative, /* 50 */ scalbl_overflow, scalbl_underflow, /* 51, 52 */ scalb_overflow, scalb_underflow, /* 53, 54 */ scalbf_overflow, scalbf_underflow, /* 55, 56 */ acosl_gt_one, acos_gt_one, acosf_gt_one, /* 57, 58, 59 */ asinl_gt_one, asin_gt_one, asinf_gt_one, /* 60, 61, 62 */ coshl_overflow, cosh_overflow, coshf_overflow, /* 63, 64, 65 */ y0l_zero, y0l_negative,y0l_gt_loss, /* 66, 67, 68 */ y0_zero, y0_negative,y0_gt_loss, /* 69, 70, 71 */ y0f_zero, y0f_negative,y0f_gt_loss, /* 72, 73, 74 */ y1l_zero, y1l_negative,y1l_gt_loss, /* 75, 76, 77 */ y1_zero, y1_negative,y1_gt_loss, /* 78, 79, 80 */ y1f_zero, y1f_negative,y1f_gt_loss, /* 81, 82, 83 */ ynl_zero, ynl_negative,ynl_gt_loss, /* 84, 85, 86 */ yn_zero, yn_negative,yn_gt_loss, /* 87, 88, 89 */ ynf_zero, ynf_negative,ynf_gt_loss, /* 90, 91, 92 */ j0l_gt_loss, /* 93 */ j0_gt_loss, /* 94 */ j0f_gt_loss, /* 95 */ j1l_gt_loss, /* 96 */ j1_gt_loss, /* 97 */ j1f_gt_loss, /* 98 */ jnl_gt_loss, /* 99 */ jn_gt_loss, /* 100 */ jnf_gt_loss, /* 101 */ lgammal_overflow, lgammal_negative,lgammal_reserve, /* 102, 103, 104 */ lgamma_overflow, lgamma_negative,lgamma_reserve, /* 105, 106, 107 */ lgammaf_overflow, lgammaf_negative, lgammaf_reserve,/* 108, 109, 110 */ gammal_overflow,gammal_negative, gammal_reserve, /* 111, 112, 113 */ gamma_overflow, gamma_negative, gamma_reserve, /* 114, 115, 116 */ gammaf_overflow,gammaf_negative,gammaf_reserve, /* 117, 118, 119 */ fmodl_by_zero, /* 120 */ fmod_by_zero, /* 121 */ fmodf_by_zero, /* 122 */ remainderl_by_zero, /* 123 */ remainder_by_zero, /* 124 */ remainderf_by_zero, /* 125 */ sinhl_overflow, sinh_overflow, sinhf_overflow, /* 126, 127, 128 */ atanhl_gt_one, atanhl_eq_one, /* 129, 130 */ atanh_gt_one, atanh_eq_one, /* 131, 132 */ atanhf_gt_one, atanhf_eq_one, /* 133, 134 */ acoshl_lt_one, /* 135 */ acosh_lt_one, /* 136 */ acoshf_lt_one, /* 137 */ log1pl_zero, log1pl_negative, /* 138, 139 */ log1p_zero, log1p_negative, /* 140, 141 */ log1pf_zero, log1pf_negative, /* 142, 143 */ ldexpl_overflow, ldexpl_underflow, /* 144, 145 */ ldexp_overflow, ldexp_underflow, /* 146, 147 */ ldexpf_overflow, ldexpf_underflow, /* 148, 149 */ logbl_zero, logb_zero, logbf_zero, /* 150, 151, 152 */ nextafterl_overflow, nextafter_overflow, nextafterf_overflow, /* 153, 154, 155 */ ilogbl_zero, ilogb_zero, ilogbf_zero, /* 156, 157, 158 */ exp2l_overflow, exp2l_underflow, /* 159, 160 */ exp2_overflow, exp2_underflow, /* 161, 162 */ exp2f_overflow, exp2f_underflow, /* 163, 164 */ exp10l_overflow, exp10_overflow, exp10f_overflow, /* 165, 166, 167 */ log2l_zero, log2l_negative, /* 168, 169 */ log2_zero, log2_negative, /* 170, 171 */ log2f_zero, log2f_negative, /* 172, 173 */ scalbnl_overflow, scalbnl_underflow, /* 174, 175 */ scalbn_overflow, scalbn_underflow, /* 176, 177 */ scalbnf_overflow, scalbnf_underflow, /* 178, 179 */ remquol_by_zero, /* 180 */ remquo_by_zero, /* 181 */ remquof_by_zero, /* 182 */ lrintl_large, lrint_large, lrintf_large, /* 183, 184, 185 */ llrintl_large, llrint_large, llrintf_large, /* 186, 187, 188 */ lroundl_large, lround_large, lroundf_large, /* 189, 190, 191 */ llroundl_large, llround_large, llroundf_large, /* 192, 193, 194 */ fdiml_overflow, fdim_overflow, fdimf_overflow, /* 195, 196, 197 */ nexttowardl_overflow, nexttoward_overflow, nexttowardf_overflow, /* 198, 199, 200 */ scalblnl_overflow, scalblnl_underflow, /* 201, 202 */ scalbln_overflow, scalbln_underflow, /* 203, 204 */ scalblnf_overflow, scalblnf_underflow, /* 205, 206 */ erfcl_underflow, erfc_underflow, erfcf_underflow, /* 207, 208, 209 */ acosdl_gt_one, acosd_gt_one, acosdf_gt_one, /* 210, 211, 212 */ asindl_gt_one, asind_gt_one, asindf_gt_one, /* 213, 214, 215 */ atan2dl_zero, atan2d_zero, atan2df_zero, /* 216, 217, 218 */ tandl_overflow, tand_overflow, tandf_overflow, /* 219, 220, 221 */ cotdl_overflow, cotd_overflow, cotdf_overflow, /* 222, 223, 224 */ cotl_overflow, cot_overflow, cotf_overflow, /* 225, 226, 227 */ sinhcoshl_overflow, sinhcosh_overflow, sinhcoshf_overflow, /* 228, 229, 230 */ annuityl_by_zero, annuity_by_zero, annuityf_by_zero, /* 231, 232, 233 */ annuityl_less_m1, annuity_less_m1, annuityf_less_m1, /* 234, 235, 236 */ annuityl_overflow, annuity_overflow, annuityf_overflow, /* 237, 238, 239 */ annuityl_underflow, annuity_underflow, annuityf_underflow, /* 240, 241, 242 */ compoundl_by_zero, compound_by_zero, compoundf_by_zero, /* 243, 244, 245 */ compoundl_less_m1, compound_less_m1, compoundf_less_m1, /* 246, 247, 248 */ compoundl_overflow, compound_overflow, compoundf_overflow, /* 249, 250, 251 */ compoundl_underflow, compound_underflow, compoundf_underflow, /* 252, 253, 254 */ tgammal_overflow, tgammal_negative, tgammal_reserve, /* 255, 256, 257 */ tgamma_overflow, tgamma_negative, tgamma_reserve, /* 258, 259, 260 */ tgammaf_overflow, tgammaf_negative, tgammaf_reserve, /* 261, 262, 263 */ exp10l_underflow, exp10_underflow, exp10f_underflow, /* 264, 265, 266 */ nextafterl_underflow, nextafter_underflow, nextafterf_underflow, /* 267, 268, 269 */ nexttowardl_underflow, nexttoward_underflow, nexttowardf_underflow /* 270, 271, 272 */ } error_types; #define LIBM_ERROR __libm_error_support extern void LIBM_ERROR(void*,void*,void*,error_types); #ifdef _LIBC libc_hidden_proto(LIBM_ERROR) #endif #define LIBM_ERROR1(x,r,e) LIBM_ERROR(&(x), (void *)0, &(r), e) #define LIBM_ERROR2(x,y,r,e) LIBM_ERROR(&(x), &(y), &(r), e) #endif // !defined(__LIBM_ERROR_CODES_H__)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
You can’t perform that action at this time.