@@ -438,42 +438,42 @@ Int.bitwiseNot(2) == -3
438
438
let bitwiseNot: int => int
439
439
440
440
/**
441
- `leftShift (n, length)` calculates the shifted value of an integer `n` by `length` bits to the left.
441
+ `shiftLeft (n, length)` calculates the shifted value of an integer `n` by `length` bits to the left.
442
442
443
443
## Examples
444
444
445
445
```rescript
446
- Int.leftShift (4, 1) == 8
446
+ Int.shiftLeft (4, 1) == 8
447
447
```
448
448
*/
449
- external leftShift : (int, int) => int = "%lslint"
449
+ external shiftLeft : (int, int) => int = "%lslint"
450
450
451
451
/**
452
- `rightShift (n, length)` calculates the shifted value of an integer `n` by `length` bits to the right.
452
+ `shiftRight (n, length)` calculates the shifted value of an integer `n` by `length` bits to the right.
453
453
454
454
Also known as "arithmetic right shift" operation.
455
455
456
456
## Examples
457
457
458
458
```rescript
459
- Int.rightShift (8, 1) == 4
459
+ Int.shiftRight (8, 1) == 4
460
460
```
461
461
*/
462
- external rightShift : (int, int) => int = "%asrint"
462
+ external shiftRight : (int, int) => int = "%asrint"
463
463
464
464
/**
465
- `unsignedRightShift (n, length)` calculates the shifted value of an integer `n` by `length` bits to the right.
465
+ `shiftRightUnsigned (n, length)` calculates the shifted value of an integer `n` by `length` bits to the right.
466
466
Excess bits shifted off to the right are discarded, and zero bits are shifted in from the left.
467
467
468
468
Also known as "zero-filling right shift" operation.
469
469
470
470
## Examples
471
471
472
472
```rescript
473
- Int.unsignedRightShift (4, 1) == 2
473
+ Int.shiftRightUnsigned (4, 1) == 2
474
474
```
475
475
*/
476
- external unsignedRightShift : (int, int) => int = "%lsrint"
476
+ external shiftRightUnsigned : (int, int) => int = "%lsrint"
477
477
478
478
/**
479
479
`ignore(int)` ignores the provided int and returns unit.
0 commit comments