Debian Codegraph @

src/atlas/util/Checksum.h

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11 #pragma once
12
13 #include <cstddef>
14
15 namespace atlas {
16 namespace util {
17
18 typedef unsigned long checksum_t;
19
20 checksum_t checksum(const int values[], size_t size);
21 checksum_t checksum(const long values[], size_t size);
22 checksum_t checksum(const float values[], size_t size);
23 checksum_t checksum(const double values[], size_t size);
24 checksum_t checksum(const checksum_t values[], size_t size);
25
26 } // namespace util
27 } // namespace atlas