Remove the unused or/shiftLeft methods from the Word64 class (PR 4938 follow-up)
These methods were introduced in *the first* commit of PR 4938, however they became unused in *the second* commit of that PR. Hence it seems that we've been accidentally shipping, a small amount of, unused code for over a decade.
This commit is contained in:
parent
67065e43f5
commit
0a2c176027
@ -31,11 +31,6 @@ class Word64 {
|
|||||||
this.low ^= word.low;
|
this.low ^= word.low;
|
||||||
}
|
}
|
||||||
|
|
||||||
or(word) {
|
|
||||||
this.high |= word.high;
|
|
||||||
this.low |= word.low;
|
|
||||||
}
|
|
||||||
|
|
||||||
shiftRight(places) {
|
shiftRight(places) {
|
||||||
if (places >= 32) {
|
if (places >= 32) {
|
||||||
this.low = (this.high >>> (places - 32)) | 0;
|
this.low = (this.high >>> (places - 32)) | 0;
|
||||||
@ -46,16 +41,6 @@ class Word64 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shiftLeft(places) {
|
|
||||||
if (places >= 32) {
|
|
||||||
this.high = this.low << (places - 32);
|
|
||||||
this.low = 0;
|
|
||||||
} else {
|
|
||||||
this.high = (this.high << places) | (this.low >>> (32 - places));
|
|
||||||
this.low <<= places;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rotateRight(places) {
|
rotateRight(places) {
|
||||||
let low, high;
|
let low, high;
|
||||||
if (places & 32) {
|
if (places & 32) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user