aboutsummaryrefslogtreecommitdiffstats
path: root/common/bits.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use NEXTPNR_NAMESPACE macro's now that headers are seperated.Keith Rothman2021-03-151-4/+7
| | | | Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
* Run "make clangformat" to fix new Bits library.Keith Rothman2021-02-231-6/+8
| | | | Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
* Add a Bits utility library.Keith Rothman2021-02-171-0/+51
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>