MCPcopy Create free account
hub / github.com/demoth/jake2 / swapInt

Method swapInt

qcommon/src/main/java/jake2/qcommon/EndianHandler.java:31–48  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

29 private static final int mask = 0xFF;
30
31 public static int swapInt(int i) {
32
33 int a = i & mask;
34 i >>>= 8;
35
36 a <<= 24;
37
38 int b = i & mask;
39
40 i >>>= 8;
41 b <<= 16;
42
43 int c = i & mask;
44 i >>>= 8;
45 c <<= 8;
46
47 return i | c | b | a;
48 }
49
50}

Callers 1

CLClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected