MCPcopy Create free account
hub / github.com/node-js-libs/node.io / mix

Function mix

builtin/pagerank.js:84–95  ·  view source on GitHub ↗
(a,b,c)

Source from the content-addressed store, hash-verified

82 return(a);
83}
84function mix(a,b,c) {
85 a-=b; a-=c; a^=(zF(c,13));
86 b-=c; b-=a; b^=(a<<8);
87 c-=a; c-=b; c^=(zF(b,13));
88 a-=b; a-=c; a^=(zF(c,12));
89 b-=c; b-=a; b^=(a<<16);
90 c-=a; c-=b; c^=(zF(b,5));
91 a-=b; a-=c; a^=(zF(c,3));
92 b-=c; b-=a; b^=(a<<10);
93 c-=a; c-=b; c^=(zF(b,15));
94 return (new Array((a),(b),(c)));
95}
96function GoogleCH(url,length) {
97 if(arguments.length == 1) length=url.length;
98 var a=0x9E3779B9, b=0x9E3779B9, c=0xE6359A60, k=0, len=length, mx=new Array();

Callers 1

GoogleCHFunction · 0.85

Calls 1

zFFunction · 0.85

Tested by

no test coverage detected