Skip to content

Instantly share code, notes, and snippets.

@hyunsik
Created August 29, 2016 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyunsik/32f94e78f51a2607f5aaec8a5f1d3bef to your computer and use it in GitHub Desktop.
Save hyunsik/32f94e78f51a2607f5aaec8a5f1d3bef to your computer and use it in GitHub Desktop.
A primitive example of column-at-a-time model
int uselect_bt_void_int_bat_int_const(oid *output, int *input, int value, int size) {
oid i;
int j = 0;
for (i = 0; i < size; i++) {
if (input[i] > value) {
output[j++] = i;
}
}
return j;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment