aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webtool
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-07-06 11:27:45 +0200
committerBjörn Gustavsson <[email protected]>2015-07-06 13:38:18 +0200
commit1ffb2647ffcc29170b461c31c018c5d2b046beae (patch)
treef053f4c1b74d73b67d61e16bcc8ddef5923e3040 /lib/webtool
parentc5755ae5ded3ba27dc5d884303ead232abc77a40 (diff)
downloadotp-1ffb2647ffcc29170b461c31c018c5d2b046beae.tar.gz
otp-1ffb2647ffcc29170b461c31c018c5d2b046beae.tar.bz2
otp-1ffb2647ffcc29170b461c31c018c5d2b046beae.zip
Improve unpacking performance on x86_64
When unpacking operands on 64-bit CPUs, use a smarter mask to help the compiler optimize the code. It turns out that on x86_64, if we use the mask 0xFFFFUL (selecting the 16 least significant bits), the compiler can combine a move and a mask operation into the single insruction 'movzwl', which will eliminate one instruction.
Diffstat (limited to 'lib/webtool')
0 files changed, 0 insertions, 0 deletions