aboutsummaryrefslogtreecommitdiff
path: root/node_modules/pako/lib/zlib/adler32.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pako/lib/zlib/adler32.js')
-rw-r--r--node_modules/pako/lib/zlib/adler32.js21
1 files changed, 20 insertions, 1 deletions
diff --git a/node_modules/pako/lib/zlib/adler32.js b/node_modules/pako/lib/zlib/adler32.js
index dcefe9379..d440a9810 100644
--- a/node_modules/pako/lib/zlib/adler32.js
+++ b/node_modules/pako/lib/zlib/adler32.js
@@ -1,9 +1,28 @@
'use strict';
// Note: adler32 takes 12% for level 0 and 2% for level 6.
-// It doesn't worth to make additional optimizationa as in original.
+// It isn't worth it to make additional optimizations as in original.
// Small size is preferable.
+// (C) 1995-2013 Jean-loup Gailly and Mark Adler
+// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
+//
+// 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.
+
function adler32(adler, buf, len, pos) {
var s1 = (adler & 0xffff) |0,
s2 = ((adler >>> 16) & 0xffff) |0,