@@ -247,7 +247,7 @@ block_load_impl(const T *p, simd_mask<1> pred, FlagsT flags) {
247
247
248
248
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
249
249
constexpr int SmallIntFactor32Bit =
250
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
250
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
251
251
static_assert (NElts > 0 && NElts % SmallIntFactor32Bit == 0 ,
252
252
" Number of elements is not supported by Transposed load" );
253
253
@@ -333,7 +333,7 @@ block_load_impl(const T *p, simd_mask<1> pred, simd<T, NElts> pass_thru,
333
333
334
334
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
335
335
constexpr int SmallIntFactor32Bit =
336
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
336
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
337
337
static_assert (NElts > 0 && NElts % SmallIntFactor32Bit == 0 ,
338
338
" Number of elements is not supported by Transposed load" );
339
339
@@ -430,7 +430,7 @@ __ESIMD_API
430
430
431
431
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
432
432
constexpr int SmallIntFactor32Bit =
433
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
433
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
434
434
static_assert (NElts > 0 && NElts % SmallIntFactor32Bit == 0 ,
435
435
" Number of elements is not supported by Transposed load" );
436
436
@@ -529,7 +529,7 @@ __ESIMD_API
529
529
530
530
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
531
531
constexpr int SmallIntFactor32Bit =
532
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
532
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
533
533
static_assert (NElts > 0 && NElts % SmallIntFactor32Bit == 0 ,
534
534
" Number of elements is not supported by Transposed load" );
535
535
@@ -586,9 +586,7 @@ block_store_impl(T *p, simd<T, NElts> vals, simd_mask<1> pred, FlagsT flags) {
586
586
587
587
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
588
588
constexpr int SmallIntFactor32Bit =
589
- sizeof (uint32_t ) / sizeof (T) > static_cast <size_t >(1 )
590
- ? sizeof (uint32_t ) / sizeof (T)
591
- : static_cast <size_t >(1 );
589
+ sizeof (uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
592
590
static_assert (NElts > 0 && NElts % SmallIntFactor32Bit == 0 ,
593
591
" Number of elements is not supported by Transposed store" );
594
592
@@ -2614,7 +2612,7 @@ slm_block_load(uint32_t byte_offset, simd_mask<1> pred,
2614
2612
2615
2613
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
2616
2614
constexpr int SmallIntFactor32Bit =
2617
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
2615
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
2618
2616
static_assert (N > 0 && N % SmallIntFactor32Bit == 0 ,
2619
2617
" Number of elements is not supported by Transposed load" );
2620
2618
@@ -2700,7 +2698,7 @@ slm_block_load(uint32_t offset, simd_mask<1> pred, simd<T, N> pass_thru,
2700
2698
2701
2699
constexpr int SmallIntFactor64Bit = sizeof (uint64_t ) / sizeof (T);
2702
2700
constexpr int SmallIntFactor32Bit =
2703
- (std::max)( static_cast < size_t >( 1 ), sizeof (uint32_t ) / sizeof (T)) ;
2701
+ sizeof ( uint32_t ) / sizeof (T) > 1 ? sizeof (uint32_t ) / sizeof (T) : 1 ;
2704
2702
static_assert (N > 0 && N % SmallIntFactor32Bit == 0 ,
2705
2703
" Number of elements is not supported by Transposed load" );
2706
2704
0 commit comments