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

Method pushBit

src/main/java/com/thealgorithms/ciphers/a5/LFSR.java:60–64  ·  view source on GitHub ↗
(boolean bit)

Source from the content-addressed store, hash-verified

58 }
59
60 private boolean pushBit(boolean bit) {
61 boolean discardedBit = rightShift();
62 register.set(0, bit);
63 return discardedBit;
64 }
65
66 private boolean rightShift() {
67 boolean discardedBit = get(length - 1);

Callers 1

clockMethod · 0.95

Calls 2

rightShiftMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected