MCPcopy Create free account
hub / github.com/angular/angular / mix

Function mix

packages/compiler/src/i18n/digest.ts:304–333  ·  view source on GitHub ↗
(a: number, b: number, c: number)

Source from the content-addressed store, hash-verified

302}
303
304function mix(a: number, b: number, c: number): [number, number, number] {
305 a -= b;
306 a -= c;
307 a ^= c >>> 13;
308 b -= c;
309 b -= a;
310 b ^= a << 8;
311 c -= a;
312 c -= b;
313 c ^= b >>> 13;
314 a -= b;
315 a -= c;
316 a ^= c >>> 12;
317 b -= c;
318 b -= a;
319 b ^= a << 16;
320 c -= a;
321 c -= b;
322 c ^= b >>> 5;
323 a -= b;
324 a -= c;
325 a ^= c >>> 3;
326 b -= c;
327 b -= a;
328 b ^= a << 10;
329 c -= a;
330 c -= b;
331 c ^= b >>> 15;
332 return [a, b, c];
333}
334
335// Utils
336

Callers 1

hash32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected