]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use helper function for bit manipulations. 3075/head
authorIlya Tokar <tokarip@google.com>
Wed, 23 Feb 2022 22:59:56 +0000 (17:59 -0500)
committerIlya Tokar <tokarip@google.com>
Wed, 23 Feb 2022 22:59:56 +0000 (17:59 -0500)
commit0178c12dd98ad5e63968b12eaaf32e3162a0ffee
tree76b6ee67bd50293f90f74c7ef4611d1f75291f3b
parent621d79898811d42529dbabebe7a2d7d5cb0e8dcd
Use helper function for bit manipulations.

We already have BIT_getLowerBits, so use it. Benefits are 2fold:
1) Somewhat cleaner code
2) We are now using bzhi instructions, when available. Performance
delta is too small for microbenchmarks, but avoiding load still helps
larger applications, by reducing data cache pressure.
lib/common/bitstream.h