All blogs / Performance / optimization
Bits, Math and Performance(?)
50% bits, 50% math (allegedly)
Performance / optimizationAlgorithms / data structuresMathCPU / microarchitectureAssembly
- Posts
- 50 from 12 Sep 2012 to 28 Jul 2026
- Posting
- now and then (4 in the last year)
- Kind
- personal blog
- Feed
- https://bitmath.blogspot.com/feeds/posts/default
2026 3
2025 2
2024 10
- Bit-permuting 16 u32s at once with AVX-512
- Histogramming bytes with positional popcount (GF2P8AFFINEQB edition)
- Enumerating identities, part 2
- Sorting the nibbles of a u64
- Sharpening a lower bound with KnownBits information
- Multiplying 64x64 bit-matrices with GF2P8AFFINEQB
- Implementing grevmul with GF2P8AFFINEQB
- Enumerating all mathematical identities (in fixed-size bitvector arithmetic with a restricted set of operations) of a certain size
- The solutions to 𝚙𝚘𝚙𝚌𝚗𝚝(𝚡) < 𝚝𝚣𝚌𝚗𝚝(𝚡) and why there are Fibonacci[n] of them below 2ⁿ
- Partial sums of popcount
2023 7
2022 1
2021 2
2020 2
2019 1
2018 2
2017 3
2016 1
2014 1
2013 4
2012 11
- Tesseral arithmetic - useful snippets
- Tesseral arithmetic
- The basics of working with the signbit
- Calculating the lower and upper bound of the bitwise OR of two variables that are bounded and may have bits known to be zero
- Calculating the lower and upper bounds of the bitwise AND of two bounded variables
- Calculating the upper bound of the bitwise OR of two bounded variables
- Calculating the lower bound of the bitwise OR of two bounded variables
- Divisibility and modular multiplication, even divisors
- The basics of working with the rightmost bit
- Divisibility and modular multiplication
- Divisibility and digital roots