   @inline(__always)
   internal static func word(for element: Int) -> Int {
     _sanityCheck(element >= 0)
-    return element &>> Word.shift
+    // Note: We perform on UInts to get faster unsigned math (shifts).
+    let element = UInt(bitPattern: element)
+    let capacity = UInt(bitPattern: Word.capacity)
+    return Int(bitPattern: element / capacity)
   }
 
   @inlinable

  @inlinable
  @inline(__always)
  internal static func wordCount(forCapacity capacity: Int) -> Int {
    return (capacity + Word.capacity - 1) &>> Word.shift
  }

  @inlinable
  internal var capacity: Int {
    @inline(__always)
    get {
      return wordCount &<< Word.shift
    }
  }


  @inline(__always)
  internal static func join(word: Int, bit: Int) -> Int {
    _sanityCheck(bit >= 0 && bit < Word.capacity)
    return word * Word.capacity + bit
  }
}

