Skip to content

ViperCraft/branchless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

branchless

C++ header only library provided branchless code blocks

Example

int array[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
int index = bsearch_branchless_tiny<8>::op(3, array);

Licensing

Apache License, Version 2.0

Requirements

Tested on Linux and Mac OS X.

Acknowledgement

This work is based on Sean Eron Anderson "Bit Twiddling Hacks" https://graphics.stanford.edu/~seander/bithacks.html

About

C++ library provided branchless code blocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published