blob: db781597f11122b83d1a0ba59920eba4f1088ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2021 Nokia
*/
#ifndef ODP_PLAT_HASH_INLINES_H_
#define ODP_PLAT_HASH_INLINES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <odp/api/abi/hash_crc32.h>
#include <stdint.h>
/** @cond _ODP_HIDE_FROM_DOXYGEN_ */
#ifndef _ODP_NO_INLINE
/* Inline functions by default */
#define _ODP_INLINE static inline
#define odp_hash_crc32 __odp_hash_crc32
#define odp_hash_crc32c __odp_hash_crc32c
#else
#define _ODP_INLINE
#endif
_ODP_INLINE uint32_t odp_hash_crc32(const void *data, uint32_t data_len,
uint32_t init_val)
{
return _odp_hash_crc32(data, data_len, init_val);
}
_ODP_INLINE uint32_t odp_hash_crc32c(const void *data, uint32_t data_len,
uint32_t init_val)
{
return _odp_hash_crc32c(data, data_len, init_val);
}
/** @endcond */
#ifdef __cplusplus
}
#endif
#endif
|