#include <inttypes.h>
#include <sys/types.h>
#include "core/symprefix.h"
#include "core/ppm_visibility.h"
Go to the source code of this file.
header for composable implementation of crc32 algorithm
- Copyright
- Copyright (C) 2021 Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
- Author
- Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
Definition in file cksum.h.
◆ memcrc()
◆ memcrc_finish()
◆ memcrc_r()
◆ memcrc_r_eswap()
PPM_DSO_INTERNAL void SymPrefix memcrc_r_eswap |
( |
uint32_t * | state, |
|
|
const unsigned char * | elems, |
|
|
size_t | num_elems, |
|
|
size_t | elem_size ) |
Does endian-swapping prior to checksumming in case platform is big-endian
- Parameters
-
state | contains the check accumulator, should be initialized to a defined value like 0 |
elems | points to first first element with alignment elem_size |
num_elems | number of elements to process |
elem_size | size of each element in bytes |
Definition at line 187 of file cksum.c.