Skip to content

Commit e06e98d

Browse files
authored
ARROW-18081: [Go] Add Scalar Boolean functions (apache#14442)
Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
1 parent 3a0ee3f commit e06e98d

21 files changed

Lines changed: 1812 additions & 9 deletions

ci/scripts/go_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pushd ${source_dir}/arrow
6161
TAGS="assert,test"
6262
if [[ -n "${ARROW_GO_TESTCGO}" ]]; then
6363
if [[ "${MSYSTEM}" = "MINGW64" ]]; then
64-
export PATH=${MINGW_PREFIX}/bin:$PATH
64+
export PATH=${MINGW_PREFIX}\\bin:${MINGW_PREFIX}\\lib:$PATH
6565
fi
6666
TAGS="${TAGS},ccalloc"
6767
fi

go/arrow/bitutil/_lib/bitmap_ops.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@ void FULL_NAME(bitmap_aligned_or)(const uint8_t* left, const uint8_t* right, uin
3131
for (int64_t i = 0; i < nbytes; ++i) {
3232
out[i] = left[i] | right[i];
3333
}
34-
}
34+
}
35+
36+
void FULL_NAME(bitmap_aligned_and_not)(const uint8_t* left, const uint8_t* right, uint8_t* out, const int64_t nbytes) {
37+
for (int64_t i = 0; i < nbytes; ++i) {
38+
out[i] = left[i] & ~right[i];
39+
}
40+
}
41+
42+
void FULL_NAME(bitmap_aligned_xor)(const uint8_t* left, const uint8_t* right, uint8_t* out, const int64_t nbytes) {
43+
for (int64_t i = 0; i < nbytes; ++i) {
44+
out[i] = left[i] ^ right[i];
45+
}
46+
}

go/arrow/bitutil/_lib/bitmap_ops_avx2_amd64.s

Lines changed: 198 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)