Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function next0Bit (b) {
- if (b === 255) return -1
- if ((b & 240) === 240) {
- if ((b & 12) === 12) return (b & 2) === 2 ? 7 : 6
- return (b & 8) === 8 ? 5 : 4
- }
- if ((b & 192) === 192) {
- return (b & 32) === 32 ? 3 : 2
- }
- return (b & 128) === 128 ? 1 : 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement