2011-11-04 16:56:25 +11:00
|
|
|
/*
|
2018-08-04 15:14:06 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-11-04 16:56:25 +11:00
|
|
|
*
|
2014-09-02 23:36:21 +10:00
|
|
|
* Copyright 2010-2014 Danny Robson <danny@nerdcruft.net>
|
2011-11-04 16:56:25 +11:00
|
|
|
*/
|
|
|
|
|
2017-11-22 16:49:37 +11:00
|
|
|
#include "adler.hpp"
|
2011-11-04 16:56:25 +11:00
|
|
|
|
2016-06-20 16:37:43 +10:00
|
|
|
static constexpr unsigned MODULUS = 65521;
|
|
|
|
|
2018-08-05 14:42:02 +10:00
|
|
|
using cruft::hash::adler32;
|
2011-11-04 16:56:25 +11:00
|
|
|
|
2016-06-17 15:56:14 +10:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2016-06-20 16:37:43 +10:00
|
|
|
adler32::adler32 ():
|
|
|
|
fletcher (MODULUS, 1, 0)
|
|
|
|
{ ; }
|
|
|
|
|