3 ms·
While fixing serious problems, numerous smaller incidentals could be patched, such as having chosen the architectural representation of "true" to be 1 instead o
by glhaynes 4y ago
While fixing serious problems, numerous smaller incidentals could be patched, such as having chosen the architectural representation of "true" to be 1 instead of -1.
What issues does that cause? Finding it difficult to web search for…
- a1369209993 4y agoThe only one I recall of the top of my head is that it makes `first & bool | second & ~bool` faster, since you don't need a `dec r0` instruction to turn {0,1} into a bitmask. Anyone else have a better guess?
- pencilguin 4y ago"that & bool", yielding either zero or "that", is common enough, by itself, to matter.
- a1369209993 4y agoHuh, good point, actually; I'd overlooked that, eg in `sum += filter[i] & elem[i]`.