@@ -246,9 +246,6 @@ template <> struct numeric_limits<cl::sycl::half> {
246
246
static constexpr bool has_denorm_loss = false ;
247
247
static constexpr bool tinyness_before = false ;
248
248
static constexpr bool traps = false ;
249
- static constexpr float half_min = 6 .103515625e-05f ;
250
- static constexpr float half_max = 65504 .0f ;
251
- static constexpr float half_eps = 9 .765625e-04f ;
252
249
static constexpr int max_exponent10 = 4 ;
253
250
static constexpr int max_exponent = 16 ;
254
251
static constexpr int min_exponent10 = -4 ;
@@ -263,24 +260,24 @@ template <> struct numeric_limits<cl::sycl::half> {
263
260
static constexpr float_round_style round_style = round_to_nearest;
264
261
265
262
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half (min)() noexcept {
266
- return half_min;
263
+ return 6 .103515625e- 05f ; // half minimum value
267
264
}
268
265
269
266
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half (max)() noexcept {
270
- return half_max;
267
+ return 65504 . 0f ; // half maximum value
271
268
}
272
269
273
270
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half lowest () noexcept {
274
- return -half_max;
271
+ return -65504 . 0f ; // -1*(half maximum value)
275
272
}
276
273
277
274
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half epsilon () noexcept {
278
- return half_eps;
275
+ return 9 .765625e- 04f ; // half epsilon
279
276
}
280
277
281
278
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half
282
279
round_error () noexcept {
283
- return 0 .5F ;
280
+ return 0 .5f ;
284
281
}
285
282
286
283
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half infinity () noexcept {
@@ -297,7 +294,7 @@ template <> struct numeric_limits<cl::sycl::half> {
297
294
}
298
295
299
296
static __SYCL_CONSTEXPR_ON_DEVICE const cl::sycl::half denorm_min () noexcept {
300
- return 5 .96046e-08F ;
297
+ return 5 .96046e-08f ;
301
298
}
302
299
};
303
300
0 commit comments