Changeset 3528 for trunk


Ignore:
Timestamp:
Oct 21, 2013, 11:23:48 AM (5 years ago)
Author:
cameron
Message:

Fix parenthesization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/hash.hpp

    r2719 r3528  
    2828
    2929static int32_t bytes2bits(int32_t bytes) { return bytes * 8; }
    30 static int32_t bits2bytes(int32_t bits) /*{ return (bits + 8) / (8); } */ { return ((bits & (8-1) != 0) ? (bits + 8) / (8) : (bits/8)); }
     30static int32_t bits2bytes(int32_t bits) /*{ return (bits + 8) / (8); } */ { return (((bits & (8-1)) != 0) ? (bits + 8) / (8) : (bits/8)); }
    3131static IDISA_ALWAYS_INLINE uint64_t gen_mask(const uint32_t mask_bits);
    3232
Note: See TracChangeset for help on using the changeset viewer.