@@ -2409,44 +2409,68 @@ MAKE_1V_2V_FUNC(LessOrGreater, __vLessOrGreater, s::cl_short, s::cl_half,
2409
2409
// (IsFinite) // isfinite
2410
2410
cl_int IsFinite (s::cl_float x) __NOEXC { return std::isfinite (x); }
2411
2411
cl_int IsFinite (s::cl_double x) __NOEXC { return std::isfinite (x); }
2412
- cl_int __vIsFinite (s::cl_float x) __NOEXC { return -(std::isfinite (x)); }
2413
- cl_long __vIsFinite (s::cl_double x) __NOEXC { return -(std::isfinite (x)); }
2412
+ cl_int __vIsFinite (s::cl_float x) __NOEXC {
2413
+ return -static_cast <cl_int>(std::isfinite (x));
2414
+ }
2415
+ cl_long __vIsFinite (s::cl_double x) __NOEXC {
2416
+ return -static_cast <cl_long>(std::isfinite (x));
2417
+ }
2414
2418
cl_int IsFinite (s::cl_half x) __NOEXC { return std::isfinite (x); }
2415
- cl_short __vIsFinite (s::cl_half x) __NOEXC { return -(std::isfinite (x)); }
2419
+ cl_short __vIsFinite (s::cl_half x) __NOEXC {
2420
+ return -static_cast <cl_int>(std::isfinite (x));
2421
+ }
2416
2422
MAKE_1V_FUNC (IsFinite, __vIsFinite, s::cl_int, s::cl_float)
2417
2423
MAKE_1V_FUNC (IsFinite, __vIsFinite, s::cl_long, s::cl_double)
2418
2424
MAKE_1V_FUNC (IsFinite, __vIsFinite, s::cl_short, s::cl_half)
2419
2425
2420
2426
// (IsInf) // isinf
2421
2427
cl_int IsInf (s::cl_float x) __NOEXC { return std::isinf (x); }
2422
2428
cl_int IsInf (s::cl_double x) __NOEXC { return std::isinf (x); }
2423
- cl_int __vIsInf (s::cl_float x) __NOEXC { return -(std::isinf (x)); }
2424
- cl_long __vIsInf (s::cl_double x) __NOEXC { return -(std::isinf (x)); }
2429
+ cl_int __vIsInf (s::cl_float x) __NOEXC {
2430
+ return -static_cast <cl_int>(std::isinf (x));
2431
+ }
2432
+ cl_long __vIsInf (s::cl_double x) __NOEXC {
2433
+ return -static_cast <cl_long>(std::isinf (x));
2434
+ }
2425
2435
cl_int IsInf (s::cl_half x) __NOEXC { return std::isinf (x); }
2426
- cl_short __vIsInf (s::cl_half x) __NOEXC { return -(std::isinf (x)); }
2436
+ cl_short __vIsInf (s::cl_half x) __NOEXC {
2437
+ return -static_cast <cl_short>(std::isinf (x));
2438
+ }
2427
2439
MAKE_1V_FUNC (IsInf, __vIsInf, s::cl_int, s::cl_float)
2428
2440
MAKE_1V_FUNC (IsInf, __vIsInf, s::cl_long, s::cl_double)
2429
2441
MAKE_1V_FUNC (IsInf, __vIsInf, s::cl_short, s::cl_half)
2430
2442
2431
2443
// (IsNan) // isnan
2432
2444
cl_int IsNan (s::cl_float x) __NOEXC { return std::isnan (x); }
2433
2445
cl_int IsNan (s::cl_double x) __NOEXC { return std::isnan (x); }
2434
- cl_int __vIsNan (s::cl_float x) __NOEXC { return -(std::isnan (x)); }
2435
- cl_long __vIsNan (s::cl_double x) __NOEXC { return -(std::isnan (x)); }
2446
+ cl_int __vIsNan (s::cl_float x) __NOEXC {
2447
+ return -static_cast <cl_int>(std::isnan (x));
2448
+ }
2449
+ cl_long __vIsNan (s::cl_double x) __NOEXC {
2450
+ return -static_cast <cl_long>(std::isnan (x));
2451
+ }
2436
2452
2437
2453
cl_int IsNan (s::cl_half x) __NOEXC { return std::isnan (x); }
2438
- cl_short __vIsNan (s::cl_half x) __NOEXC { return -(std::isnan (x)); }
2454
+ cl_short __vIsNan (s::cl_half x) __NOEXC {
2455
+ return -static_cast <cl_short>(std::isnan (x));
2456
+ }
2439
2457
MAKE_1V_FUNC (IsNan, __vIsNan, s::cl_int, s::cl_float)
2440
2458
MAKE_1V_FUNC (IsNan, __vIsNan, s::cl_long, s::cl_double)
2441
2459
MAKE_1V_FUNC (IsNan, __vIsNan, s::cl_short, s::cl_half)
2442
2460
2443
2461
// (IsNormal) // isnormal
2444
2462
cl_int IsNormal (s::cl_float x) __NOEXC { return std::isnormal (x); }
2445
2463
cl_int IsNormal (s::cl_double x) __NOEXC { return std::isnormal (x); }
2446
- cl_int __vIsNormal (s::cl_float x) __NOEXC { return -(std::isnormal (x)); }
2447
- cl_long __vIsNormal (s::cl_double x) __NOEXC { return -(std::isnormal (x)); }
2464
+ cl_int __vIsNormal (s::cl_float x) __NOEXC {
2465
+ return -static_cast <cl_int>(std::isnormal (x));
2466
+ }
2467
+ cl_long __vIsNormal (s::cl_double x) __NOEXC {
2468
+ return -static_cast <cl_long>(std::isnormal (x));
2469
+ }
2448
2470
cl_int IsNormal (s::cl_half x) __NOEXC { return std::isnormal (x); }
2449
- cl_short __vIsNormal (s::cl_half x) __NOEXC { return -(std::isnormal (x)); }
2471
+ cl_short __vIsNormal (s::cl_half x) __NOEXC {
2472
+ return -static_cast <cl_short>(std::isnormal (x));
2473
+ }
2450
2474
MAKE_1V_FUNC (IsNormal, __vIsNormal, s::cl_int, s::cl_float)
2451
2475
MAKE_1V_FUNC (IsNormal, __vIsNormal, s::cl_long, s::cl_double)
2452
2476
MAKE_1V_FUNC (IsNormal, __vIsNormal, s::cl_short, s::cl_half)
@@ -2485,10 +2509,16 @@ MAKE_1V_2V_FUNC(Unordered, __vUnordered, s::cl_short, s::cl_half,
2485
2509
// (SignBitSet) // signbit
2486
2510
cl_int SignBitSet (s::cl_float x) __NOEXC { return std::signbit (x); }
2487
2511
cl_int SignBitSet (s::cl_double x) __NOEXC { return std::signbit (x); }
2488
- cl_int __vSignBitSet (s::cl_float x) __NOEXC { return -(std::signbit (x)); }
2489
- cl_long __vSignBitSet (s::cl_double x) __NOEXC { return -(std::signbit (x)); }
2512
+ cl_int __vSignBitSet (s::cl_float x) __NOEXC {
2513
+ return -static_cast <cl_int>(std::signbit (x));
2514
+ }
2515
+ cl_long __vSignBitSet (s::cl_double x) __NOEXC {
2516
+ return -static_cast <cl_long>(std::signbit (x));
2517
+ }
2490
2518
cl_int SignBitSet (s::cl_half x) __NOEXC { return std::signbit (x); }
2491
- cl_short __vSignBitSet (s::cl_half x) __NOEXC { return -(std::signbit (x)); }
2519
+ cl_short __vSignBitSet (s::cl_half x) __NOEXC {
2520
+ return -static_cast <cl_short>(std::signbit (x));
2521
+ }
2492
2522
MAKE_1V_FUNC (SignBitSet, __vSignBitSet, s::cl_int, s::cl_float)
2493
2523
MAKE_1V_FUNC (SignBitSet, __vSignBitSet, s::cl_long, s::cl_double)
2494
2524
MAKE_1V_FUNC (SignBitSet, __vSignBitSet, s::cl_short, s::cl_half)
0 commit comments