diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/fdr/fdr_loadval.h | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/fdr/fdr_loadval.h')
-rw-r--r-- | contrib/libs/hyperscan/src/fdr/fdr_loadval.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/hyperscan/src/fdr/fdr_loadval.h b/contrib/libs/hyperscan/src/fdr/fdr_loadval.h index 86c39c7f30..887df03aab 100644 --- a/contrib/libs/hyperscan/src/fdr/fdr_loadval.h +++ b/contrib/libs/hyperscan/src/fdr/fdr_loadval.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, Intel Corporation + * Copyright (c) 2015-2016, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -32,23 +32,23 @@ #include "ue2common.h" #include "util/unaligned.h" -#define MAKE_LOADVAL(type, name) \ - static really_inline \ - type name(const u8 *ptr, UNUSED const u8 *lo, UNUSED const u8 *hi) +#define MAKE_LOADVAL(type, name) \ + static really_inline \ + type name(const u8 *ptr, UNUSED const u8 *lo, UNUSED const u8 *hi) -#define NORMAL_SAFE(type) \ - do { \ - assert(ptr >= lo); \ - assert(ptr + sizeof(type) - 1 < hi); \ - } while(0) +#define NORMAL_SAFE(type) \ + do { \ + assert(ptr >= lo); \ + assert(ptr + sizeof(type) - 1 < hi); \ + } while(0) -#define MAKE_LOOP_CE(TYPE) \ - TYPE v = 0; \ - for (TYPE i = 0; i < sizeof(TYPE); i++) { \ - if ((lo <= ptr + i) && (ptr + i < hi)) { \ - v += (TYPE)ptr[i] << (i*8); \ - } \ - } \ +#define MAKE_LOOP_CE(TYPE) \ + TYPE v = 0; \ + for (TYPE i = 0; i < sizeof(TYPE); i++) { \ + if ((lo <= ptr + i) && (ptr + i < hi)) { \ + v += (TYPE)ptr[i] << (i*8); \ + } \ + } \ return v; // no suffix = normal (unaligned) @@ -64,8 +64,8 @@ MAKE_LOADVAL(u64a, lv_u64a) { return unaligned_load_u64a(ptr); } -MAKE_LOADVAL(u16, lv_u16_ce) { MAKE_LOOP_CE(u16); } +MAKE_LOADVAL(u16, lv_u16_ce) { MAKE_LOOP_CE(u16); } -MAKE_LOADVAL(u64a, lv_u64a_ce) { MAKE_LOOP_CE(u64a); } +MAKE_LOADVAL(u64a, lv_u64a_ce) { MAKE_LOOP_CE(u64a); } #endif |