mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
Merge ../mosesdecoder into perf_moses2
This commit is contained in:
commit
0e4af190a3
@ -76,8 +76,9 @@ private:
|
|||||||
MinHeapSorter hs(A);
|
MinHeapSorter hs(A);
|
||||||
std::make_heap(A.begin(), A.begin() + n, hs);
|
std::make_heap(A.begin(), A.begin() + n, hs);
|
||||||
|
|
||||||
size_t h = n;
|
// marked volatile to prevent the intel compiler from generating bad code
|
||||||
size_t m1, m2;
|
volatile size_t h = n;
|
||||||
|
volatile size_t m1, m2;
|
||||||
while(h > 1) {
|
while(h > 1) {
|
||||||
m1 = A[0];
|
m1 = A[0];
|
||||||
std::pop_heap(A.begin(), A.begin() + h, hs);
|
std::pop_heap(A.begin(), A.begin() + h, hs);
|
||||||
|
Loading…
Reference in New Issue
Block a user