1
1
export c_float;
2
2
export c_double;
3
3
4
+ // uncomment once #1433 is fixed
4
5
// FIXME export c_float_math_consts;
5
6
// FIXME export c_double_math_consts;
6
7
@@ -70,6 +71,7 @@ native mod c_double {
70
71
pure fn modf ( n : c_double , & iptr: c_double ) -> c_double ;
71
72
pure fn pow ( n : c_double , e : c_double ) -> c_double ;
72
73
// FIXME enable when rounding modes become available
74
+ // (See Issue #1379)
73
75
// pure fn rint(n: c_double) -> c_double;
74
76
pure fn round ( n : c_double ) -> c_double ;
75
77
// rename: for consistency with logradix
@@ -152,6 +154,7 @@ native mod c_float {
152
154
& iptr: c_float ) -> c_float ;
153
155
#[ link_name="powf" ] pure fn pow ( n : c_float , e : c_float ) -> c_float ;
154
156
// FIXME enable when rounding modes become available
157
+ // (See Issue #1379)
155
158
// #[link_name="rintf"] pure fn rint(n: c_float) -> c_float;
156
159
#[ link_name="roundf" ] pure fn round ( n : c_float ) -> c_float ;
157
160
#[ link_name="scalbnf" ] pure fn ldexp_radix ( n : c_float , i : c_int )
@@ -167,7 +170,7 @@ native mod c_float {
167
170
168
171
// PORT check these by running src/etc/machconsts.c for your architecture
169
172
170
- // FIXME obtain machine float/math constants automatically
173
+ // FIXME obtain machine float/math constants automatically (Issue #1986)
171
174
172
175
mod c_float_targ_consts {
173
176
const radix: uint = 2 u;
@@ -178,6 +181,7 @@ mod c_float_targ_consts {
178
181
const min_10_exp: int = -37 ;
179
182
const max_10_exp: int = 38 ;
180
183
// FIXME this is wrong! replace with hexadecimal (%a) constants below
184
+ // (see Issue #1433)
181
185
const min_value: f32 = 1.175494e-38_f32 ;
182
186
const max_value: f32 = 3.402823e+38_f32 ;
183
187
const epsilon: f32 = 0.000000_f32 ;
@@ -192,14 +196,15 @@ mod c_double_targ_consts {
192
196
const min_10_exp: int = -307 ;
193
197
const max_10_exp: int = 308 ;
194
198
// FIXME this is wrong! replace with hexadecimal (%a) constants below
199
+ // (see Issue #1433)
195
200
const min_value: f64 = 2.225074e-308_f64 ;
196
201
const max_value: f64 = 1.797693e+308_f64 ;
197
202
const epsilon: f64 = 2.220446e-16_f64 ;
198
203
}
199
204
200
205
/*
201
206
202
- FIXME use these once they can be parsed
207
+ FIXME use these once they can be parsed (see Issue #1433)
203
208
204
209
mod c_float_math_consts {
205
210
const pi: c_float = 0x1.921fb6p+1_f32;
0 commit comments