From 082c8aba56108df22f4ade87e35b2000f4d17e92 Mon Sep 17 00:00:00 2001 From: Richard Artoul Date: Fri, 7 Dec 2018 16:13:42 -0500 Subject: [PATCH] switch to |= --- roaring/roaring.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 61827fc77..4df42afdc 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -2860,10 +2860,10 @@ func unionBitmapBitmapInPlace(a, b *Container) { // TODO(rartoul): Can probably make this a few x faster using // SIMD instructions. for i := 0; i < bitmapN; i += 4 { - ab[i] = ab[i] | bb[i] - ab[i+1] = ab[i+1] | bb[i+1] - ab[i+2] = ab[i+2] | bb[i+2] - ab[i+3] = ab[i+3] | bb[i+3] + ab[i] |= bb[i] + ab[i+1] |= bb[i+1] + ab[i+2] |= bb[i+2] + ab[i+3] |= bb[i+3] } }