aboutsummaryrefslogtreecommitdiffstats
path: root/common/bits.h
Commit message (Collapse)AuthorAgeFilesLines
* Use NEXTPNR_NAMESPACE macro's now that headers are seperated.Keith Rothman2021-03-151-4/+4
| | | | Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
* Run "make clangformat" to fix new Bits library.Keith Rothman2021-02-231-5/+8
| | | | Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
* Add a Bits utility library.Keith Rothman2021-02-171-0/+73
This library captures use of __builtin_popcount and __builtin_ctz on GCC/clang and hopefully handles the MSVC case. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>