Yet Another eXchange Tool 0.11.4
Loading...
Searching...
No Matches
cksum.h
Go to the documentation of this file.
1
10/*
11 * Maintainer: Jörg Behrens <behrens@dkrz.de>
12 * Moritz Hanke <hanke@dkrz.de>
13 * Thomas Jahns <jahns@dkrz.de>
14 * URL: https://dkrz-sw.gitlab-pages.dkrz.de/yaxt/
15 *
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions are
18 * met:
19 *
20 * Redistributions of source code must retain the above copyright notice,
21 * this list of conditions and the following disclaimer.
22 *
23 * Redistributions in binary form must reproduce the above copyright
24 * notice, this list of conditions and the following disclaimer in the
25 * documentation and/or other materials provided with the distribution.
26 *
27 * Neither the name of the DKRZ GmbH nor the names of its contributors
28 * may be used to endorse or promote products derived from this software
29 * without specific prior written permission.
30 *
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
32 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
33 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
34 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
35 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
36 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
37 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
38 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 */
43
44#ifdef HAVE_CONFIG_H
45# include "config.h"
46#endif
47
48
49
50#include <inttypes.h>
51#include <sys/types.h>
52
53
54#include "core/symprefix.h"
55#include "core/ppm_visibility.h"
56
58SymPrefix(memcrc_r)(uint32_t *state, const unsigned char *block, size_t block_len);
59
62 uint32_t *state, const unsigned char *elems, size_t num_elems,
63 size_t elem_size);
64
65PPM_DSO_INTERNAL uint32_t
66SymPrefix(memcrc_finish)(uint32_t *state, off_t total_size);
67
68PPM_DSO_INTERNAL uint32_t
69SymPrefix(memcrc)(const unsigned char *b, size_t n);
70
71/*
72 * Local Variables:
73 * coding: utf-8
74 * c-file-style: "Java"
75 * c-basic-offset: 2
76 * indent-tabs-mode: nil
77 * show-trailing-whitespace: t
78 * require-trailing-newline: t
79 * license-project-url: "https://dkrz-sw.gitlab-pages.dkrz.de/yaxt/"
80 * license-default: "bsd"
81 * End:
82 */
PPM_DSO_INTERNAL void SymPrefix memcrc_r_eswap(uint32_t *state, const unsigned char *elems, size_t num_elems, size_t elem_size)
Definition cksum.c:187
PPM_DSO_INTERNAL void SymPrefix memcrc_r(uint32_t *state, const unsigned char *block, size_t block_len)
Definition cksum.c:139
PPM_DSO_INTERNAL uint32_t SymPrefix memcrc_finish(uint32_t *state, off_t total_size)
Definition cksum.c:219
PPM_DSO_INTERNAL uint32_t SymPrefix memcrc(const unsigned char *b, size_t n)
Definition cksum.c:115
#define PPM_DSO_INTERNAL
Define library-specific symbol prefix macros.
#define SymPrefix(symbol)
Definition symprefix.h:53