Better HN
topnewbestaskshowjobs
Log inSign up

mellum

4 karma · joined Jul 18, 2017 (9y ago) · 2 submissions

Submissions

comment 7y ago · link · parent

Having 3 input operands is definitely an issue. In the Alpha EV6 architecture, it was decided only 2 inputs are supported, so a CMOV would need to be split into two actual instructions, the first of which setting the 65th bit of one of the operands to the result of the test and the other selecting the correct output. Thus, CMOV had 2 cycles latency and still required extra hardware resources to implement.

comment 9y ago · link · parent

For unit conversion to metric, I made a browser plugin: https://github.com/falk-hueffner/metric-cooking It can also convert from volume to mass, e.g. annotate "3/4 cup plus 2 tablespoons packed light-brown sugar" with "[190 g]". It's a bit hacky (basically a giant regexp) but works nicely for me.