Skip to content

Commit

Permalink
Use sorting network sort in agg
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Oct 18, 2018
1 parent 7e610ac commit 92c9f47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conclave/codegen/templates/sharemind/protocol.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ D uint32[[2]] aggregateSumLeaky(D uint32[[2]] rows, uint keyCol, uint valCol) {
input[:,0] = rows[:,keyCol];
input[:,1] = rows[:,valCol];

D uint32 [[2]] sorted = sort(input, (uint)0);
D uint32 [[2]] sorted = sortingNetworkSort(input, (uint)0);
D uint32 [[2]] result(nrows,ncols + 1);
result[:,0] = sorted[:,0];
result[:,1] = sorted[:,1];
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/sharemind_expected/base
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ D uint32[[2]] aggregateSumLeaky(D uint32[[2]] rows, uint keyCol, uint valCol) {
input[:,0] = rows[:,keyCol];
input[:,1] = rows[:,valCol];

D uint32 [[2]] sorted = sort(input, (uint)0);
D uint32 [[2]] sorted = sortingNetworkSort(input, (uint)0);
D uint32 [[2]] result(nrows,ncols + 1);
result[:,0] = sorted[:,0];
result[:,1] = sorted[:,1];
Expand Down

0 comments on commit 92c9f47

Please sign in to comment.