MCPcopy Create free account
hub / github.com/hoothin/UserScripts / bi_reverse

Function bi_reverse

Picviewer CE+/dist.user.js:10589–10597  ·  view source on GitHub ↗
(code, len)

Source from the content-addressed store, hash-verified

10587 * IN assertion: 1 <= len <= 15
10588 */
10589function bi_reverse(code, len) {
10590 var res = 0;
10591 do {
10592 res |= code & 1;
10593 code >>>= 1;
10594 res <<= 1;
10595 } while (--len > 0);
10596 return res >>> 1;
10597}
10598
10599
10600/* ===========================================================================

Callers 2

gen_codesFunction · 0.70
tr_static_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected