presto-orc/src/main/java/io/prestosql/orc/stream/BooleanOutputStream.java/BooleanOutputStream/getLowBitMask
class BooleanOutputStream:    private static int getLowBitMask(int bits)
    {
        return (0x1 << bits) - 1;
    }