Sha256: 2b4d90fe0199e922781a9cd9825bfed5d807d73c5fce7c9d642a2def25270b19

Contents?: true

Size: 222 Bytes

Versions: 21

Compression:

Stored size: 222 Bytes

Contents

module CoreExtensions #:nodoc:
  module Integer #:nodoc:
    module Bitwise
      def rszf(count)
        # zero fill right shift
        (self >> count) & ((2 ** ((self.size * 8) - count))-1)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
arena_barby-0.3.2 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-chunky_png-0.3.4 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.4.1 lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.4.0 lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.3.4 lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.4.3 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.3.3 lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.4.2 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.4.1 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.4.0 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-chunky_png-0.3.3 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.3.2 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.3.1 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.2.0 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.2.1 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
barby-0.3.0 vendor/rqrcode/lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.2.0 lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.3.1 lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.3.2 lib/rqrcode/core_ext/integer/bitwise.rb
rqrcode-0.3.0 lib/rqrcode/core_ext/integer/bitwise.rb