]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: formatting of sign_mask.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 2 Jun 2014 14:54:01 +0000 (07:54 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 2 Jun 2014 14:54:01 +0000 (07:54 -0700)
vm/math.cpp

index c85a279081353b238b0736d9a16088966c83e0d7..cc1fce796e98709c138d3dc2fc8ae607c3c90a07 100644 (file)
@@ -44,7 +44,9 @@ void factor_vm::primitive_fixnum_divmod() {
  * If we're shifting right by n bits, we won't overflow as long as none of the
  * high WORD_SIZE-TAG_BITS-n bits are set.
  */
-inline fixnum factor_vm::sign_mask(fixnum x) { return x >> (WORD_SIZE - 1); }
+inline fixnum factor_vm::sign_mask(fixnum x) {
+    return x >> (WORD_SIZE - 1);
+}
 
 inline fixnum factor_vm::branchless_max(fixnum x, fixnum y) {
   return (x - ((x - y) & sign_mask(x - y)));