plan9fox/sys
cinap_lenrek a00b6bdbfa 8c, 6c: native ROL (cyclic shift) instruction support, improve peephole optimizers
introduce rolor() function to subsitute (a << c) | (a >> (bits(a) - c))
with (a <<< c) where <<< is cyclic rotation and c is constant.
this almost doubles the speed of chacha encryption of 386 and amd64.

the peephole optimizer used to stop when it hit a shift or rol
instruction when attempting to eleminate moves by register
substitution. but we do not have to as long as the shift count
operand is not CX (which cannot be substituted) and CX is not
a subject for substitution.
2016-06-09 23:12:46 +02:00
..
doc closed spew branch 2016-04-28 20:52:36 +02:00
games/lib fortunes: Ah, nice. the woodpeckers are back. 2016-03-30 21:14:39 -04:00
include aml: define amlintmask and set it according to DSDT revision (64bit / 32bit) 2016-06-05 14:57:38 +02:00
lib add polish keymap (thanks chomzee!) 2016-05-28 23:59:10 +02:00
man aml(2): document amlintmask 2016-06-05 15:15:03 +02:00
src 8c, 6c: native ROL (cyclic shift) instruction support, improve peephole optimizers 2016-06-09 23:12:46 +02:00