MCPcopy
hub / github.com/angular/angular / rol32

Function rol32

packages/compiler/src/i18n/digest.ts:353–355  ·  view source on GitHub ↗
(a: number, count: number)

Source from the content-addressed store, hash-verified

351
352// Rotate a 32b number left `count` position
353function rol32(a: number, count: number): number {
354 return (a << count) | (a >>> (32 - count));
355}
356
357function bytesToWords32(bytes: Byte[], endian: Endian): number[] {
358 const size = (bytes.length + 3) >>> 2;

Callers 1

sha1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…