Skip to content

Commit ce18101

Browse files
committed
osx fixes
1 parent b584e45 commit ce18101

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/coreclr/gc/vxsort/packer.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class packer {
8787

8888
assert(AH::is_aligned(mem_read));
8989

90-
auto memv_read = (TV *) mem_read;
91-
auto memv_write = (TV *) mem_write;
90+
TV * memv_read = (TV *) mem_read;
91+
TV * memv_write = (TV *) mem_write;
9292

9393
auto lenv = len / N;
9494
len -= (lenv * N);
@@ -184,8 +184,8 @@ class packer {
184184
assert(AH::is_aligned(mem_read));
185185

186186
auto lenv = len / (N * 2);
187-
auto memv_read = ((TV *) mem_read) - 1;
188-
auto memv_write = ((TV *) mem_write) - 2;
187+
TV * memv_read = ((TV *) mem_read) - 1;
188+
TV * memv_write = ((TV *) mem_write) - 2;
189189
len -= lenv * N * 2;
190190

191191
while (lenv >= Unroll) {

src/coreclr/gc/vxsort/vxsort.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -426,16 +426,16 @@ class vxsort {
426426

427427
// From now on, we are fully aligned
428428
// and all reading is done in full vector units
429-
auto readLeftV = (TV*) readLeft;
430-
auto readRightV = (TV*) readRight;
429+
TV* readLeftV = (TV*) readLeft;
430+
TV* readRightV = (TV*) readRight;
431431
#ifndef NDEBUG
432432
readLeft = nullptr;
433433
readRight = nullptr;
434434
#endif
435435

436436
for (auto u = 0; u < InnerUnroll; u++) {
437-
auto dl = MT::load_vec(readLeftV + u);
438-
auto dr = MT::load_vec(readRightV - (u + 1));
437+
TV dl = MT::load_vec(readLeftV + u);
438+
TV dr = MT::load_vec(readRightV - (u + 1));
439439
partition_block(dl, P, tmpLeft, tmpRight);
440440
partition_block(dr, P, tmpLeft, tmpRight);
441441
}
@@ -526,7 +526,7 @@ class vxsort {
526526
readLeftV += 1;
527527
}
528528

529-
auto d = MT::load_vec(nextPtr);
529+
TV d = MT::load_vec(nextPtr);
530530
partition_block(d, P, writeLeft, writeRight);
531531
//partition_block_without_compress(d, P, writeLeft, writeRight);
532532
}
@@ -561,8 +561,8 @@ class vxsort {
561561
const auto rightAlign = hint.right_align;
562562
const auto rai = ~((rightAlign - 1) >> 31);
563563
const auto lai = leftAlign >> 31;
564-
const auto preAlignedLeft = (TV*) (left + leftAlign);
565-
const auto preAlignedRight = (TV*) (right + rightAlign - N);
564+
TV* const preAlignedLeft = (TV*) (left + leftAlign);
565+
TV* const preAlignedRight = (TV*) (right + rightAlign - N);
566566

567567
#ifdef VXSORT_STATS
568568
vxsort_stats<T>::bump_vec_loads(2);
@@ -581,8 +581,8 @@ class vxsort {
581581
// were actually needed to be written to the right hand side
582582
// e) We write the right portion of the left vector to the right side
583583
// now that its write position has been updated
584-
auto RT0 = MT::load_vec(preAlignedRight);
585-
auto LT0 = MT::load_vec(preAlignedLeft);
584+
TV RT0 = MT::load_vec(preAlignedRight);
585+
TV LT0 = MT::load_vec(preAlignedLeft);
586586
auto rtMask = MT::get_cmpgt_mask(RT0, P);
587587
auto ltMask = MT::get_cmpgt_mask(LT0, P);
588588
const auto rtPopCountRightPart = max(_mm_popcnt_u32(rtMask), rightAlign);

0 commit comments

Comments
 (0)