File: seqcmp.h

package info (click to toggle)
phylonium 1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,340 kB
  • sloc: cpp: 15,701; ansic: 782; makefile: 139; python: 66; sh: 41
file content (29 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
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
/**
 * SPDX-License-Identifier: GPL-3.0-or-later
 * Copyright 2019 © Fabian Klötzl
 */
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include <stddef.h>
#include "config.h"

size_t seqcmp(const char *begin, const char *other, size_t length);

#ifdef ENABLE_X86_SIMD
size_t seqcmp_sse2(const char *begin, const char *other, size_t length);
size_t seqcmp_avx2(const char *begin, const char *other, size_t length);

#ifdef ENABLE_AVX512
size_t seqcmp_avx512(const char *begin, const char *other, size_t length);
#endif
#endif

typedef size_t(seqcmp_fn)(const char *begin, const char *other, size_t length);

#ifdef __cplusplus
}
#endif