Skip to content

Commit e416368

Browse files
author
Raghuveer Devulapalli
committed
Remove trailing white spaces
1 parent 7ab1e73 commit e416368

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/avx512-16bit-qsort.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ struct zmm_vector<float16> {
6464

6565
static opmask_t ge(zmm_t x, zmm_t y)
6666
{
67-
zmm_t sign_x = _mm512_and_si512(x, _mm512_set1_epi16(0x8000));
68-
zmm_t sign_y = _mm512_and_si512(y, _mm512_set1_epi16(0x8000));
69-
zmm_t exp_x = _mm512_and_si512(x, _mm512_set1_epi16(0x7c00));
70-
zmm_t exp_y = _mm512_and_si512(y, _mm512_set1_epi16(0x7c00));
71-
zmm_t mant_x = _mm512_and_si512(x, _mm512_set1_epi16(0x3ff));
72-
zmm_t mant_y = _mm512_and_si512(y, _mm512_set1_epi16(0x3ff));
67+
zmm_t sign_x = _mm512_and_si512(x, _mm512_set1_epi16(0x8000));
68+
zmm_t sign_y = _mm512_and_si512(y, _mm512_set1_epi16(0x8000));
69+
zmm_t exp_x = _mm512_and_si512(x, _mm512_set1_epi16(0x7c00));
70+
zmm_t exp_y = _mm512_and_si512(y, _mm512_set1_epi16(0x7c00));
71+
zmm_t mant_x = _mm512_and_si512(x, _mm512_set1_epi16(0x3ff));
72+
zmm_t mant_y = _mm512_and_si512(y, _mm512_set1_epi16(0x3ff));
7373

7474
__mmask32 mask_ge = _mm512_cmp_epu16_mask(sign_x, sign_y, _MM_CMPINT_LT); // only greater than
7575
__mmask32 sign_eq = _mm512_cmpeq_epu16_mask(sign_x, sign_y);
@@ -595,8 +595,8 @@ template <>
595595
bool comparison_func<zmm_vector<float16>>(const uint16_t &a, const uint16_t &b)
596596
{
597597
uint16_t signa = a & 0x8000, signb = b & 0x8000;
598-
uint16_t expa = a & 0x7c00, expb = b & 0x7c00;
599-
uint16_t manta = a & 0x3ff, mantb = b & 0x3ff;
598+
uint16_t expa = a & 0x7c00, expb = b & 0x7c00;
599+
uint16_t manta = a & 0x3ff, mantb = b & 0x3ff;
600600
if (signa != signb) {
601601
// opposite signs
602602
return a > b;
@@ -605,7 +605,7 @@ bool comparison_func<zmm_vector<float16>>(const uint16_t &a, const uint16_t &b)
605605
// both -ve
606606
if (expa != expb) {
607607
return expa > expb;
608-
}
608+
}
609609
else {
610610
return manta > mantb;
611611
}
@@ -614,12 +614,12 @@ bool comparison_func<zmm_vector<float16>>(const uint16_t &a, const uint16_t &b)
614614
// both +ve
615615
if (expa != expb) {
616616
return expa < expb;
617-
}
617+
}
618618
else {
619619
return manta < mantb;
620620
}
621621
}
622-
622+
623623
//return npy_half_to_float(a) < npy_half_to_float(b);
624624
}
625625

0 commit comments

Comments
 (0)