-
Notifications
You must be signed in to change notification settings - Fork 5
/
LICENSE
31 lines (25 loc) · 1.47 KB
/
LICENSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
crc32.c -- compute the CRC-32 of a data stream
From the 'zlib' general purpose compression library version 1.2.8,
April 28th, 2013
Copyright (C) 1995-2006, 2010, 2011, 2012 Mark Adler
With modifications 2014 Space Monkey, Inc.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Jean-loup Gailly Mark Adler
Thanks to Rodney Brown <[email protected]> for his contribution of faster
CRC methods: exclusive-oring 32 bits of data at a time, and pre-computing
tables for updating the shift register in one step with three exclusive-ors
instead of four steps with four exclusive-ors. This results in about a
factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.