Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yarskegg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
yarskegg
4y ago
I think this might be better for c/c++ though admittedly a bit more cryptic: (x>>1) + (y>>1) + (0x01 & x & y)
2.
▲
by
yarskegg
4y ago
That gets really dicey if you're storing the value of the index in a variable. Does the programmer need to know that if it's an INDEX they're storing that goes from 1-256 they can fit that into an 8-bit value because the comp
3.
▲
by
yarskegg
5y ago
Let me put it to you this way. Everyone knows that salicylic acid (originally derived from willow bark) is a precursor to aspirin that is effective as a pain killer, fever reducer, and anti-inflammatory. https://en.m.wikipedia.or