MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / rightShift

Method rightShift

src/main/java/com/thealgorithms/ciphers/a5/LFSR.java:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 private boolean rightShift() {
67 boolean discardedBit = get(length - 1);
68 for (int i = length - 1; i > 0; --i) {
69 register.set(i, get(i - 1));
70 }
71 register.set(0, false);
72 return discardedBit;
73 }
74
75 @Override
76 public String toString() {

Callers 1

pushBitMethod · 0.95

Calls 2

getMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected