Skip to content

mshytikov/bits_count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitsCount

Implementations of population count (Hamming weight in binary case) using pure ruby.

Installation

Add this line to your application's Gemfile:

gem 'bits_count'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bits_count

Usage

Example: Calculate bits count in file

(in IRB)

require 'bits_count/irb_helper'

count_bits "path/to/some/file.jpg"

About

Implementation of population count in pure ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages