We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99ae81 commit 1646c39Copy full SHA for 1646c39
src/reorder.c
@@ -72,8 +72,8 @@ SEXP reorder(SEXP x, SEXP order)
72
switch (size)
73
{
74
case 4: {
75
- const int* restrict vd = DATAPTR_RO(v);
76
- int* restrict tmp = TMP;
+ const int *restrict vd = DATAPTR_RO(v);
+ int *restrict tmp = TMP;
77
#pragma omp parallel for num_threads(getDTthreads(end, true))
78
for (int i=start; i<=end; ++i) {
79
tmp[i-start] = vd[idx[i]-1]; // copies 4 bytes; e.g. INTSXP and also SEXP pointers on 32bit (STRSXP and VECSXP)
0 commit comments