Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages