Skip to content

A collection of functions to calculate a variety of bitwise functions.

License

Notifications You must be signed in to change notification settings

dwillmore/bitmath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitmath

This repository contains functions to perform various calculations and manipulations on variables to transform them or to quantify them.

Functions

  • transpose -- This set of functions take a 64bit variable which describes an 8x8 matrix and transposes it across either the right or left diagonal. Versions are available for machines with 32 bit or 64 bit integers.
  • rotate -- These functions take a 64 bit variable which describes an 8x8 matrix and rotate it clockwise or counter-clockwise. Versions are available for machines with 32 or 64 bit integers.
  • popcount -- These functions calculate the number of set bits in a 32 or 64 bit quantity.
  • swap_endian -- These functions compute the bit reversal of 32 or 64 bit values.

About

A collection of functions to calculate a variety of bitwise functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages