Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jandrewrogers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
1750 ms
·
4951.
▲
by
jandrewrogers
15y ago
PIPA is the Senate version of the bill and Rubio is a Senator. He does not have a vote on SOPA. If both passed then they would need to be reconciled into a single bill.
4952.
▲
by
jandrewrogers
15y ago
I found most of them in code and on the 'net but came up with a couple myself. When I started looking at bit interleaving some years back, I found a few examples for 2- and 3-dimensions but not much explanation. If you step through the algo
4953.
▲
by
jandrewrogers
15y ago
There is a straightforward way to extend bit interleaving to bit strings of arbitrary size using bit-twiddling. The output of the magic constants just have to be shifted in a regular pattern (which varies as a function of dimensionality) so
4954.
▲
by
jandrewrogers
15y ago
Many of the very simple algorithms are done by a good compiler, more complex ones generally are not. It is pretty easy to turn these into clean, generalized functions using templates in C++ and std::numeric_limits. I have a substantial libr