mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 18:55:15 +02:00
Start fixing npm test warnings.
This commit is contained in:
@@ -2,7 +2,8 @@ var crypto = require('crypto')
|
||||
|
||||
// See http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith32Bits
|
||||
function reverseByteBits(b) {
|
||||
return ((b * 0x0802 & 0x22110) | (b * 0x8020 & 0x88440)) * 0x10101 >> 16 & 0xFF
|
||||
return (((b * 0x0802 & 0x22110) |
|
||||
(b * 0x8020 & 0x88440)) * 0x10101 >> 16 & 0xFF)
|
||||
}
|
||||
|
||||
function reverseBufferByteBits(b) {
|
||||
|
||||
Reference in New Issue
Block a user