fletcher32.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Eistec AB
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef CHECKSUM_FLETCHER32_H
21 #define CHECKSUM_FLETCHER32_H
22 
23 #include <stdlib.h>
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
44 uint32_t fletcher32(const uint16_t *buf, size_t words);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* CHECKSUM_FLETCHER32_H */
51 
fletcher32
uint32_t fletcher32(const uint16_t *buf, size_t words)
Fletcher's 32 bit checksum.