temp.txt deleted online with Bitbucket

This commit is contained in:
Alan Elliott
2018-03-23 16:29:56 -07:00
committed by CekisSWG
parent f52aebcfb1
commit a72a84cef8
82556 changed files with 4633262 additions and 4288 deletions
@@ -0,0 +1,23 @@
// string_crc.java
package script;
// ======================================================================
public final class string_crc implements crc
{
public static int getStringCrc(String s)
{
int crc = CRC_INIT;
if (s != null)
{
char[] c = s.toCharArray();
for (int i = 0; i < c.length; ++i)
crc = crctable[((crc>>24) ^ (c[i]&0xff)) & 0xff] ^ (crc << 8);
}
return crc ^ CRC_INIT;
}
}
// ======================================================================