summaryrefslogtreecommitdiffstats
path: root/src/bit.h
Commit message (Collapse)AuthorAgeFilesLines
* bit: Rename bswap{16,32,64}()Tavian Barnes2024-01-031-16/+16
| | | | | NetBSD already defines this in <sys/bswap.h>, so pick names that don't conflict.
* bit: Implement a branchless has_single_bit()Tavian Barnes2023-11-131-1/+2
|
* Revert "bit: Implement a branchless has_single_bit()"Tavian Barnes2023-11-111-2/+1
| | | | | | Doesn't work for the highest bit due to overflow. This reverts commit 208376ef99da243545efcd6fb02d3469b4c068ed.
* bit: Implement a branchless has_single_bit()Tavian Barnes2023-11-101-1/+2
|
* config: Add constants for C standard versionsTavian Barnes2023-11-101-4/+4
|
* bit: Fix UINTPTR_WIDTH typoTavian Barnes2023-09-261-1/+1
|
* bit: Use predefined __*_WIDTH__ macros if we canTavian Barnes2023-09-261-24/+69
|
* bit: Add a cast to squelch -Wsign-compareTavian Barnes2023-07-241-1/+1
| | | | I see this only with musl-gcc for some reason.
* bit: Rename int.h to bit.hTavian Barnes2023-05-181-0/+355