aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/highwayhash/ya.make
blob: 09bb380f7f7c9205d714d3f621160a7839a42209 (plain) (blame)
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
LIBRARY()

LICENSE(Apache-2.0)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(2017-05-08-2b666ae078292b01024453d01480f3b362a2a012)

NO_COMPILER_WARNINGS()

ADDINCL(GLOBAL contrib/libs/highwayhash)

SRCDIR(contrib/libs/highwayhash/highwayhash)

SRCS(
    # Dispatcher
    arch_specific.cc
    instruction_sets.cc
    nanobenchmark.cc
    os_specific.cc
    # SipHash
    sip_hash.cc
    scalar_sip_tree_hash.cc
    # sip_tree_hash.cc with AVX2 if available
    # HighwayHash
    hh_portable.cc
    # hh_avx2.cc with AVX2
    # hh_sse41.cc with SSE4.1
    # Library
    c_bindings.cc
)

IF (ARCH_X86_64)
    PEERDIR(
        contrib/libs/highwayhash/arch/avx2
        contrib/libs/highwayhash/arch/sse41
    )
ELSE()
    SRCS(
        sip_tree_hash.cc
    )
ENDIF()

END()