MCPcopy Create free account
hub / github.com/ReadyTalk/avian / reflect

Method reflect

classpath/java/util/zip/CRC32.java:59–68  ·  view source on GitHub ↗
(int x, int n)

Source from the content-addressed store, hash-verified

57 }
58
59 private static int reflect(int x, int n) {
60 int reflection = 0;
61 for (int i = 0; i < n; ++i) {
62 if ((x & 1) != 0) {
63 reflection |= (1 << ((n - 1) - i));
64 }
65 x = (x >>> 1);
66 }
67 return reflection;
68 }
69}

Callers 2

updateMethod · 0.95
getValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected