MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / bitRevX

Method bitRevX

ij/src/main/java/ij/process/FHT.java:388–394  ·  view source on GitHub ↗
(int  x, int bitlen)

Source from the content-addressed store, hash-verified

386 }
387
388 private int bitRevX (int x, int bitlen) {
389 int temp = 0;
390 for (int i=0; i<=bitlen; i++)
391 if ((x & (1<<i)) !=0)
392 temp |= (1<<(bitlen-i-1));
393 return temp;
394 }
395
396 private int bset (int x, int bit) {
397 x |= (1<<bit);

Callers 1

makeBitReverseTableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected