shithub: orca

Download patch

ref: 6267ea0045831bc7816fb1cedf1a1ff97a944563
parent: d304dc8e18352333a6a3358c8c192031c0854641
author: cancel <cancel@cancel.fm>
date: Sun Jan 26 02:47:18 EST 2020

Cleanup

--- a/base.h
+++ b/base.h
@@ -79,13 +79,13 @@
 ORCA_FORCEINLINE static Usz orca_round_up_power2(Usz x) {
   assert(x <= SIZE_MAX / 2 + 1);
   x -= 1;
-  x |= (x >> 1);
-  x |= (x >> 2);
-  x |= (x >> 4);
-  x |= (x >> 8);
-  x |= (x >> 16);
+  x |= x >> 1;
+  x |= x >> 2;
+  x |= x >> 4;
+  x |= x >> 8;
+  x |= x >> 16;
 #if SIZE_MAX > UINT32_MAX
-  x |= (x >> 32);
+  x |= x >> 32;
 #endif
   return x + 1;
 }