You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
277 B
JavaScript
8 lines
277 B
JavaScript
2 years ago
|
"use strict";
|
||
|
|
||
|
// FIXME: Replace with standardized version? May have performance impact since the value size is no longer hardcoded to 1 byte
|
||
|
module.exports = function invertBits1Byte(value) {
|
||
|
// Note that this is bit inversion for *unsigned* integers
|
||
|
return 255 - value;
|
||
|
};
|