http://grimore.i2p/unix/speeding_up_zfs_encryption_with_sse4.1_acceleration
. +//////////////////////////////////////////////////////////////////////////////// +.macro READ_SMALL_DATA_INPUT OUTPUT, INPUT, LENGTH, \ + END_READ_LOCATION, COUNTER, TMP1 + + // clang compat: no local support + // LOCAL _byte_loop_1, _byte_loop_2, _done + + pxor \OUTPUT, \OUTPUT + mov \LENGTH, \COUNTER + mov \INPUT, \END_READ_LOCATION + add \LENGTH, \END_READ_LOCATION + xor \TMP1, \TMP1 + + + cmp $8, \COUNTER + jl _byte_loop_2_\@ + pinsrq $0, ( \INPUT ) , \OUTPUT //Read in 8 bytes if they exists...