Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions crc16speed.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#ifndef CRC16SPEED_H
#define CRC16SPEED_H

#if defined(__cplusplus)
extern "C" {
#endif

#include "crcspeed.h"
#include "stdbool.h"

Expand All @@ -17,4 +22,9 @@ uint16_t crc16speed_big(uint16_t crc, const void *s, const uint64_t l);

bool crc16speed_init_native(void);
uint16_t crc16speed_native(uint16_t crc, const void *s, const uint64_t l);

#if defined(__cplusplus)
}
#endif

#endif
10 changes: 10 additions & 0 deletions crc64speed.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#ifndef CRC64SPEED_H
#define CRC64SPEED_H

#if defined(__cplusplus)
extern "C" {
#endif

#include "crcspeed.h"
#include "stdbool.h"

Expand All @@ -17,4 +22,9 @@ uint64_t crc64speed_big(uint64_t crc, const void *s, const uint64_t l);

bool crc64speed_init_native(void);
uint64_t crc64speed_native(uint64_t crc, const void *s, const uint64_t l);

#if defined(__cplusplus)
}
#endif

#endif
8 changes: 8 additions & 0 deletions crc_simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef CRC_SIMD_H
#define CRC_SIMD_H

#if defined(__cplusplus)
extern "C" {
#endif

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Expand All @@ -25,4 +29,8 @@ uint64_t crc64_simd(uint64_t crc, const void *data, uint64_t len);
void crc16_simd_init(void);
uint16_t crc16_simd(uint16_t crc, const void *data, uint64_t len);

#if defined(__cplusplus)
}
#endif

#endif /* CRC_SIMD_H */
9 changes: 9 additions & 0 deletions crcspeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#ifndef CRCSPEED_H
#define CRCSPEED_H

#if defined(__cplusplus)
extern "C" {
#endif

#include <inttypes.h>
#include <stdio.h>

Expand Down Expand Up @@ -57,4 +61,9 @@ uint16_t crcspeed16big(uint16_t table[8][256], uint16_t crc, void *buf,
size_t len);
uint16_t crcspeed16native(uint16_t table[8][256], uint16_t crc, void *buf,
size_t len);

#if defined(__cplusplus)
}
#endif

#endif