]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/ia64/fpu/libm_error_codes.h
1 /* file: libm_error_codes.h */
5 // Copyright (c) 2000 - 2004, Intel Corporation
6 // All rights reserved.
8 // Contributed 2000 by the Intel Numerics Group, Intel Corporation
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
14 // * Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
17 // * Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
21 // * The name of Intel Corporation may not be used to endorse or promote
22 // products derived from this software without specific prior written
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
34 // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 // Intel Corporation is the author of this code, and requests that all
39 // problem reports or change requests be submitted to it directly at
40 // http://www.intel.com/software/products/opensource/libraries/num.htm.
44 // ========================================================================
45 // This file contains the interface to the Intel exception dispatcher.
49 // ========================================================================
50 // 12/15/2004 Initial version - extracted from libm_support.h
54 #if !defined(__LIBM_ERROR_CODES_H__)
55 #define __LIBM_ERROR_CODES_H__
59 logl_zero
=0, logl_negative
, /* 0, 1 */
60 log_zero
, log_negative
, /* 2, 3 */
61 logf_zero
, logf_negative
, /* 4, 5 */
62 log10l_zero
, log10l_negative
, /* 6, 7 */
63 log10_zero
, log10_negative
, /* 8, 9 */
64 log10f_zero
, log10f_negative
, /* 10, 11 */
65 expl_overflow
, expl_underflow
, /* 12, 13 */
66 exp_overflow
, exp_underflow
, /* 14, 15 */
67 expf_overflow
, expf_underflow
, /* 16, 17 */
68 powl_overflow
, powl_underflow
, /* 18, 19 */
69 powl_zero_to_zero
, /* 20 */
70 powl_zero_to_negative
, /* 21 */
71 powl_neg_to_non_integer
, /* 22 */
72 powl_nan_to_zero
, /* 23 */
73 pow_overflow
, pow_underflow
, /* 24, 25 */
74 pow_zero_to_zero
, /* 26 */
75 pow_zero_to_negative
, /* 27 */
76 pow_neg_to_non_integer
, /* 28 */
77 pow_nan_to_zero
, /* 29 */
78 powf_overflow
, powf_underflow
, /* 30, 31 */
79 powf_zero_to_zero
, /* 32 */
80 powf_zero_to_negative
, /* 33 */
81 powf_neg_to_non_integer
, /* 34 */
82 powf_nan_to_zero
, /* 35 */
86 expm1l_overflow
, /* 39 */
87 expm1l_underflow
, /* 40 */
88 expm1_overflow
, /* 41 */
89 expm1_underflow
, /* 42 */
90 expm1f_overflow
, /* 43 */
91 expm1f_underflow
, /* 44 */
92 hypotl_overflow
, /* 45 */
93 hypot_overflow
, /* 46 */
94 hypotf_overflow
, /* 47 */
95 sqrtl_negative
, /* 48 */
96 sqrt_negative
, /* 49 */
97 sqrtf_negative
, /* 50 */
98 scalbl_overflow
, scalbl_underflow
, /* 51, 52 */
99 scalb_overflow
, scalb_underflow
, /* 53, 54 */
100 scalbf_overflow
, scalbf_underflow
, /* 55, 56 */
101 acosl_gt_one
, acos_gt_one
, acosf_gt_one
, /* 57, 58, 59 */
102 asinl_gt_one
, asin_gt_one
, asinf_gt_one
, /* 60, 61, 62 */
103 coshl_overflow
, cosh_overflow
, coshf_overflow
, /* 63, 64, 65 */
104 y0l_zero
, y0l_negative
,y0l_gt_loss
, /* 66, 67, 68 */
105 y0_zero
, y0_negative
,y0_gt_loss
, /* 69, 70, 71 */
106 y0f_zero
, y0f_negative
,y0f_gt_loss
, /* 72, 73, 74 */
107 y1l_zero
, y1l_negative
,y1l_gt_loss
, /* 75, 76, 77 */
108 y1_zero
, y1_negative
,y1_gt_loss
, /* 78, 79, 80 */
109 y1f_zero
, y1f_negative
,y1f_gt_loss
, /* 81, 82, 83 */
110 ynl_zero
, ynl_negative
,ynl_gt_loss
, /* 84, 85, 86 */
111 yn_zero
, yn_negative
,yn_gt_loss
, /* 87, 88, 89 */
112 ynf_zero
, ynf_negative
,ynf_gt_loss
, /* 90, 91, 92 */
113 j0l_gt_loss
, /* 93 */
115 j0f_gt_loss
, /* 95 */
116 j1l_gt_loss
, /* 96 */
118 j1f_gt_loss
, /* 98 */
119 jnl_gt_loss
, /* 99 */
120 jn_gt_loss
, /* 100 */
121 jnf_gt_loss
, /* 101 */
122 lgammal_overflow
, lgammal_negative
,lgammal_reserve
, /* 102, 103, 104 */
123 lgamma_overflow
, lgamma_negative
,lgamma_reserve
, /* 105, 106, 107 */
124 lgammaf_overflow
, lgammaf_negative
, lgammaf_reserve
,/* 108, 109, 110 */
125 gammal_overflow
,gammal_negative
, gammal_reserve
, /* 111, 112, 113 */
126 gamma_overflow
, gamma_negative
, gamma_reserve
, /* 114, 115, 116 */
127 gammaf_overflow
,gammaf_negative
,gammaf_reserve
, /* 117, 118, 119 */
128 fmodl_by_zero
, /* 120 */
129 fmod_by_zero
, /* 121 */
130 fmodf_by_zero
, /* 122 */
131 remainderl_by_zero
, /* 123 */
132 remainder_by_zero
, /* 124 */
133 remainderf_by_zero
, /* 125 */
134 sinhl_overflow
, sinh_overflow
, sinhf_overflow
, /* 126, 127, 128 */
135 atanhl_gt_one
, atanhl_eq_one
, /* 129, 130 */
136 atanh_gt_one
, atanh_eq_one
, /* 131, 132 */
137 atanhf_gt_one
, atanhf_eq_one
, /* 133, 134 */
138 acoshl_lt_one
, /* 135 */
139 acosh_lt_one
, /* 136 */
140 acoshf_lt_one
, /* 137 */
141 log1pl_zero
, log1pl_negative
, /* 138, 139 */
142 log1p_zero
, log1p_negative
, /* 140, 141 */
143 log1pf_zero
, log1pf_negative
, /* 142, 143 */
144 ldexpl_overflow
, ldexpl_underflow
, /* 144, 145 */
145 ldexp_overflow
, ldexp_underflow
, /* 146, 147 */
146 ldexpf_overflow
, ldexpf_underflow
, /* 148, 149 */
147 logbl_zero
, logb_zero
, logbf_zero
, /* 150, 151, 152 */
148 nextafterl_overflow
, nextafter_overflow
,
149 nextafterf_overflow
, /* 153, 154, 155 */
150 ilogbl_zero
, ilogb_zero
, ilogbf_zero
, /* 156, 157, 158 */
151 exp2l_overflow
, exp2l_underflow
, /* 159, 160 */
152 exp2_overflow
, exp2_underflow
, /* 161, 162 */
153 exp2f_overflow
, exp2f_underflow
, /* 163, 164 */
154 exp10l_overflow
, exp10_overflow
,
155 exp10f_overflow
, /* 165, 166, 167 */
156 log2l_zero
, log2l_negative
, /* 168, 169 */
157 log2_zero
, log2_negative
, /* 170, 171 */
158 log2f_zero
, log2f_negative
, /* 172, 173 */
159 scalbnl_overflow
, scalbnl_underflow
, /* 174, 175 */
160 scalbn_overflow
, scalbn_underflow
, /* 176, 177 */
161 scalbnf_overflow
, scalbnf_underflow
, /* 178, 179 */
162 remquol_by_zero
, /* 180 */
163 remquo_by_zero
, /* 181 */
164 remquof_by_zero
, /* 182 */
165 lrintl_large
, lrint_large
, lrintf_large
, /* 183, 184, 185 */
166 llrintl_large
, llrint_large
, llrintf_large
, /* 186, 187, 188 */
167 lroundl_large
, lround_large
, lroundf_large
, /* 189, 190, 191 */
168 llroundl_large
, llround_large
, llroundf_large
, /* 192, 193, 194 */
169 fdiml_overflow
, fdim_overflow
, fdimf_overflow
, /* 195, 196, 197 */
170 nexttowardl_overflow
, nexttoward_overflow
,
171 nexttowardf_overflow
, /* 198, 199, 200 */
172 scalblnl_overflow
, scalblnl_underflow
, /* 201, 202 */
173 scalbln_overflow
, scalbln_underflow
, /* 203, 204 */
174 scalblnf_overflow
, scalblnf_underflow
, /* 205, 206 */
175 erfcl_underflow
, erfc_underflow
, erfcf_underflow
, /* 207, 208, 209 */
176 acosdl_gt_one
, acosd_gt_one
, acosdf_gt_one
, /* 210, 211, 212 */
177 asindl_gt_one
, asind_gt_one
, asindf_gt_one
, /* 213, 214, 215 */
178 atan2dl_zero
, atan2d_zero
, atan2df_zero
, /* 216, 217, 218 */
179 tandl_overflow
, tand_overflow
, tandf_overflow
, /* 219, 220, 221 */
180 cotdl_overflow
, cotd_overflow
, cotdf_overflow
, /* 222, 223, 224 */
181 cotl_overflow
, cot_overflow
, cotf_overflow
, /* 225, 226, 227 */
182 sinhcoshl_overflow
, sinhcosh_overflow
, sinhcoshf_overflow
, /* 228, 229, 230 */
183 annuityl_by_zero
, annuity_by_zero
, annuityf_by_zero
, /* 231, 232, 233 */
184 annuityl_less_m1
, annuity_less_m1
, annuityf_less_m1
, /* 234, 235, 236 */
185 annuityl_overflow
, annuity_overflow
, annuityf_overflow
, /* 237, 238, 239 */
186 annuityl_underflow
, annuity_underflow
, annuityf_underflow
, /* 240, 241, 242 */
187 compoundl_by_zero
, compound_by_zero
, compoundf_by_zero
, /* 243, 244, 245 */
188 compoundl_less_m1
, compound_less_m1
, compoundf_less_m1
, /* 246, 247, 248 */
189 compoundl_overflow
, compound_overflow
, compoundf_overflow
, /* 249, 250, 251 */
190 compoundl_underflow
, compound_underflow
, compoundf_underflow
, /* 252, 253, 254 */
191 tgammal_overflow
, tgammal_negative
, tgammal_reserve
, /* 255, 256, 257 */
192 tgamma_overflow
, tgamma_negative
, tgamma_reserve
, /* 258, 259, 260 */
193 tgammaf_overflow
, tgammaf_negative
, tgammaf_reserve
, /* 261, 262, 263 */
194 exp10l_underflow
, exp10_underflow
, exp10f_underflow
, /* 264, 265, 266 */
195 nextafterl_underflow
, nextafter_underflow
,
196 nextafterf_underflow
, /* 267, 268, 269 */
197 nexttowardl_underflow
, nexttoward_underflow
,
198 nexttowardf_underflow
/* 270, 271, 272 */
201 #define LIBM_ERROR __libm_error_support
203 extern void LIBM_ERROR(void*,void*,void*,error_types
);
205 libc_hidden_proto(LIBM_ERROR
)
208 #define LIBM_ERROR1(x,r,e) LIBM_ERROR(&(x), (void *)0, &(r), e)
209 #define LIBM_ERROR2(x,y,r,e) LIBM_ERROR(&(x), &(y), &(r), e)
211 #endif // !defined(__LIBM_ERROR_CODES_H__)