diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1a0ab51f1a1..b6a14f34b56 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -166,3 +166,21 @@ jobs: uses: actions/checkout@v6 - name: REUSE Compliance Check uses: fsfe/reuse-action@v6 + + rizin-format: + needs: changes + runs-on: ubuntu-24.04 + if: ${{ needs.changes.outputs.clang-format == 'true' }} + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Install clang-format-20 and gitpython + run: | + sudo apt --assume-yes install clang-format-20 + sudo pip install gitpython --break-system-packages + + - name: Run Rizin Format Script + run: | + python3 sys/clang-format.py + git diff --exit-code \ No newline at end of file diff --git a/binrz/man/rizin.1 b/binrz/man/rizin.1 index 174297a4471..d7ec38f0785 100644 --- a/binrz/man/rizin.1 +++ b/binrz/man/rizin.1 @@ -121,50 +121,45 @@ Same as -e bin.usextr=false, do not use extract plugins, useful for dyldcache Do not load strings or load them even in raw .El .Sh ENVIRONMENT -.Bl -tag -width RZ_DYLDCACHE_FILTER -.It Ev ANSICON -W & H of the buffer and w & h of the window in the form of: "WxH (wxh)" -.It Ev DEBUGINFOD_URLS -Use alternative debuginfod server via bin.dbginfo.debuginfod_urls -.It Ev COLUMNS -Terminal columns to use -.It Ev RZ_ABORTLEVEL -Target log level/severity when to abort -(0:DEBUG, 1:VERBOSE, 2:INFO, 3:WARN, 4:ERROR, 5:FATAL) -.It Ev RZ_CURL -Whether to use curl (for SSL support) -.It Ev RZ_DEBUG_ASSERT -Set a breakpoint when hitting an assert -.It Ev RZ_DEBUG_TOOL -Debug tool to use when showing error messages and crash signal -.It Ev RZ_DYLDCACHE_FILTER -dyld cache filter (MacOS dynamic libraries location(s) at runtime) -.It Ev RZ_HTTP_AUTHFILE -HTTP Authentification user file -.It Ev RZ_LOGCOLORS -Should the log output use colors -.It Ev RZ_LOGFILE -Logging output filename/path -.It Ev RZ_LOGLEVEL -Target log level/severity -(0:DEBUG, 1:VERBOSE, 2:INFO, 3:WARN, 4:ERROR, 5:FATAL) -.It Ev RZ_LOGSHOWSOURCES -Should the log output contain src info (filename:lineno) -.It Ev RZ_PIPE_IN -rzpipe cmd input (file descriptor) -.It Ev RZ_PIPE_OUT -rzpipe cmd output (file descriptor) -.It Ev RZ_PREFIX -Default prefix rizin was compiled for -.It Ev RZ_RCFILE -User config file -.It Ev SFLIBPATH -SFLib syscall library path -.El -.Sh EXAMPLES -Start rizin in analysis mode -.Pq Fl A -on the /bin/ls executable: +.Pp +ANSICON: ansicon's W & H of the buffer and w & h of the window in the form of: "WxH (wxh)" +.Pp +DEBUGINFOD_URLS: e bin.dbginfo.debuginfod_urls - use alternative debuginfod server +.Pp +COLUMNS: terminal columns to use +.Pp +RZ_ABORTLEVEL: target log level/severity when to abort (0:DEBUG, 1:VERBOSE, 2:INFO, 3:WARN, 4:ERROR, 5:FATAL) +.Pp +RZ_CURL: whether to use curl (for SSL support) +.Pp +RZ_DEBUG_ASSERT: set a breakpoint when hitting an assert +.Pp +RZ_DEBUG_TOOL: debug tool to use when showing error messages and crash signal +.Pp +RZ_DYLDCACHE_FILTER: dyld cache filter (MacOS dynamic libraries location(s) at runtime) +.Pp +RZ_HTTP_AUTHFILE: HTTP Authentification user file +.Pp +RZ_LOGCOLORS: should the log output use colors (TODO) +.Pp +RZ_LOGFILE: logging output filename/path +.Pp +RZ_LOGLEVEL: target log level/severity (0:DEBUG, 1:VERBOSE, 2:INFO, 3:WARN, 4:ERROR, 5:FATAL) +.Pp +RZ_LOGSHOWSOURCES: should the log output contain src info (filename:lineno) +.Pp +RZ_PIPE_IN: rzpipe cmd input (file descriptor) +.Pp +RZ_PIPE_OUT: rzpipe cmd output (file descriptor) +.Pp +RZ_PREFIX: default prefix rizin was compiled for +.Pp +RZ_RCFILE: user config file +.Pp +SFLIBPATH: SFLib syscall library path +.Sh EXAMPLE +.Pp +Start rizin in analysis mode (-A) on the /bin/ls executable: .Pp .Nm rizin Fl A Ar /bin/ls .Pp @@ -177,15 +172,16 @@ Start rizin's debugger (-d) on /bin/ls and pass arguments .Pp .Nm rizin Fl d Ar /bin/ls Fl l Ar /tmp .Sh SEE ALSO -.Xr rz-asm 1 , -.Xr rz-ax 1 , -.Xr rz-bin 1 , -.Xr rz-diff 1 , -.Xr rz-find 1 , -.Xr rz-gg 1 , -.Xr rz-hash 1 , -.Xr rz-run 1 , -.Xr rz-test 1 +.Xr rz-test(1) , +.Xr rz-hash(1) , +.Xr rz-find(1) , +.Xr rz-bin(1) , +.Xr rz-diff(1) , +.Xr rz-asm(1) , +.Xr rz-ax(1) , +.Xr rz-gg(1) , +.Xr rz-run(1) .Sh AUTHORS -.An pancake Aq Mt pancake@nopcode.org -.An byteninjaa0 \ No newline at end of file +pancake +.It +byteninjaa0 diff --git a/binrz/man/rz-asm.1 b/binrz/man/rz-asm.1 index ae43095cf40..2f03284beed 100644 --- a/binrz/man/rz-asm.1 +++ b/binrz/man/rz-asm.1 @@ -1,4 +1,4 @@ -.Dd Jan 22, 2024 +.Dd Dec 29, 2025 .Dt RZ_ASM 1 .Sh NAME .Nm rz-asm @@ -22,7 +22,9 @@ .Sh DESCRIPTION This command is part of the Rizin project. .Pp -This tool uses RzAsm to assemble and disassemble files or hexpair strings. It supports a large list of architectures which can be listed using the \-L flag. +This tool uses RzAsm to assemble and disassemble files or hexpair strings. It supports a large list of architectures which can be listed using the +.Fl L +flag. .Pp .Bl -tag -width Fl .It Fl a Ar arch @@ -82,9 +84,8 @@ Use hex dwords instead of hex pairs when assembling .It Fl w Describe opcode .El -.Sh Directives -.Pp -.Bl -tag -width +.Sh DIRECTIVES +.Bl -tag -width ".Ic .fill Ar repeat,size,value" .It Ic .intel_syntax Use Intel syntax rather than AT&T .It Ic .att_syntax @@ -141,41 +142,43 @@ Mark the start of the text section Set the Thumb mode (as opposed to ARM) for ARM architecture .El .Sh ENVIRONMENT -.Pp -RZ_ARCH: e asm.arch - architecture to assemble/disassemble (same as rz-asm -a) -.Pp -RZ_ASM_ARCH: architecture to assemble/disassemble (same as rz-asm -a) -.Pp -RZ_ASM_BITS: cpu register size (8, 16, 32, 64) (same as rz-asm -b) -.Pp -RZ_BITS: e asm.bits - cpu register size (8, 16, 32, 64) (same as rz-asm -b) -.Pp -RZ_DEBUG: if defined, show error messages and crash signal\n" -.Pp -RZ_NOPLUGINS: do not load shared plugins (speedup loading)\n" - - +.Bl -tag -width "RZ_NOPLUGINS" +.It Ev RZ_ARCH +Equivalent to +.Ic e asm.arch +in rizin. Architecture to assemble/disassemble (same as rz-asm -a). +.It Ev RZ_ASM_ARCH +Architecture to assemble/disassemble (same as rz-asm -a). +.It Ev RZ_ASM_BITS +CPU register size (8, 16, 32, 64) (same as rz-asm -b). +.It Ev RZ_BITS +Equivalent to +.Ic e asm.bits +in rizin. CPU register size (8, 16, 32, 64) (same as rz-asm -b). +.It Ev RZ_DEBUG +If defined, show error messages and crash signal. +.It Ev RZ_NOPLUGINS +Do not load shared plugins to speed up loading. +.El .Sh EXAMPLES .Pp Assemble opcode: .Pp -.Nm rz-asm Fl a Cm x86 Fl b Cm 32 Ar 'mov eax, 33' +.Dl $ rz-asm -a x86 -b 32 'mov eax, 33' .Pp Disassemble opcode: .Pp -.Nm rz-asm Fl d Cm 90 +.Dl $ rz-asm -d 90 .Sh SEE ALSO -.Pp -.Xr rizin(1) , -.Xr rz-find(1) , -.Xr rz-hash(1) , -.Xr rz-bin(1) , -.Xr rz-diff(1) , -.Xr rz-gg(1) , -.Xr rz-run(1) , -.Xr rz-ax(1) , +.Xr rizin 1 , +.Xr rz-find 1 , +.Xr rz-hash 1 , +.Xr rz-bin 1 , +.Xr rz-diff 1 , +.Xr rz-gg 1 , +.Xr rz-run 1 , +.Xr rz-ax 1 .Sh AUTHORS -.Pp pancake -.Pp -byteninjaa0 +.br +byteninjaa0 \ No newline at end of file diff --git a/librz/arch/hint.c b/librz/arch/hint.c index 8e5048ca96e..42774c88690 100644 --- a/librz/arch/hint.c +++ b/librz/arch/hint.c @@ -198,8 +198,8 @@ static RzAnalysisRangedHintRecordBase *ensure_ranged_hint_record(RBTree *tree, u RZ_API void rz_analysis_hint_set_offset(RzAnalysis *a, ut64 addr, const char *typeoff) { SET_HINT(RZ_ANALYSIS_ADDR_HINT_TYPE_TYPE_OFFSET, - free(r->type_offset); - r->type_offset = rz_str_dup(typeoff);); + free(r->type_offset); + r->type_offset = rz_str_dup(typeoff);); } RZ_API void rz_analysis_hint_set_nword(RzAnalysis *a, ut64 addr, int nword) { @@ -240,20 +240,20 @@ RZ_API void rz_analysis_hint_set_ret(RzAnalysis *a, ut64 addr, ut64 val) { RZ_API void rz_analysis_hint_set_syntax(RzAnalysis *a, ut64 addr, const char *syn) { SET_HINT(RZ_ANALYSIS_ADDR_HINT_TYPE_SYNTAX, - free(r->syntax); - r->syntax = rz_str_dup(syn);); + free(r->syntax); + r->syntax = rz_str_dup(syn);); } RZ_API void rz_analysis_hint_set_opcode(RzAnalysis *a, ut64 addr, const char *opcode) { SET_HINT(RZ_ANALYSIS_ADDR_HINT_TYPE_OPCODE, - free(r->opcode); - r->opcode = rz_str_dup(opcode);); + free(r->opcode); + r->opcode = rz_str_dup(opcode);); } RZ_API void rz_analysis_hint_set_esil(RzAnalysis *a, ut64 addr, const char *esil) { SET_HINT(RZ_ANALYSIS_ADDR_HINT_TYPE_ESIL, - free(r->esil); - r->esil = rz_str_dup(esil);); + free(r->esil); + r->esil = rz_str_dup(esil);); } RZ_API void rz_analysis_hint_set_type(RzAnalysis *a, ut64 addr, int type) { diff --git a/librz/arch/isa/avr/avr_esil.c b/librz/arch/isa/avr/avr_esil.c index 04979a381c4..47197c8b10e 100644 --- a/librz/arch/isa/avr/avr_esil.c +++ b/librz/arch/isa/avr/avr_esil.c @@ -52,8 +52,8 @@ static OPCODE_DESC *avr_op_analyze(RzAnalysis *analysis, RzAnalysisOp *op, ut64 #define CPU_MODEL_DECL(model, pc, consts) \ { \ model, \ - pc, \ - consts \ + pc, \ + consts \ } #define MASK(bits) ((bits) == 32 ? 0xffffffff : (~((~((ut32)0)) << (bits)))) #define CPU_PC_MASK(cpu) MASK((cpu)->pc) diff --git a/librz/arch/isa/avr/avr_il.c b/librz/arch/isa/avr/avr_il.c index 09b41cd7cb8..856668e5921 100644 --- a/librz/arch/isa/avr/avr_il.c +++ b/librz/arch/isa/avr/avr_il.c @@ -2219,7 +2219,7 @@ static RzILOpEffect *avr_il_neg(AVROp *aop, AVROp *next_op, ut64 pc, RzAnalysis static RzILOpEffect *avr_il_or(AVROp *aop, AVROp *next_op, ut64 pc, RzAnalysis *analysis) { RzILOpPure *x, *y; - RzILOpEffect *or, *S, *V, *N, *Z; + RzILOpEffect * or, *S, *V, *N, *Z; // Rd = Rd | Rr // changes S|V|N|Z ut16 Rd = aop->param[0]; @@ -2252,7 +2252,7 @@ static RzILOpEffect *avr_il_or(AVROp *aop, AVROp *next_op, ut64 pc, RzAnalysis * static RzILOpEffect *avr_il_ori(AVROp *aop, AVROp *next_op, ut64 pc, RzAnalysis *analysis) { RzILOpPure *x, *y; - RzILOpEffect *or, *S, *V, *N, *Z; + RzILOpEffect * or, *S, *V, *N, *Z; // Rd = Rd | K // changes S|V|N|Z ut16 Rd = aop->param[0]; diff --git a/librz/arch/isa/mips/il/common.c b/librz/arch/isa/mips/il/common.c index 0cbe14c7308..ad548eac122 100644 --- a/librz/arch/isa/mips/il/common.c +++ b/librz/arch/isa/mips/il/common.c @@ -139,7 +139,7 @@ static RzILOpEffect *mips_il_align(const csh *handle, const cs_insn *insn, const RzILOpPure *bp_8 = UN(32, IMM(3) << 3); // bp * 8 RzILOpPure *gprlen_bp_8 = UN(32, IMM(3) << 3); // gprlen - (bp * 8) - RzILOpPure *or = LOGOR(SHIFTL0(rt, bp_8), SHIFTR0(rs, gprlen_bp_8)); + RzILOpPure * or = LOGOR(SHIFTL0(rt, bp_8), SHIFTR0(rs, gprlen_bp_8)); if (gprlen > 32) { or = SIGNED(gprlen, or); } @@ -157,7 +157,7 @@ static RzILOpEffect *mips_il_dalign(const csh *handle, const cs_insn *insn, cons RzILOpPure *bp_8 = UN(gprlen, IMM(3) << 3); // bp * 8 RzILOpPure *gprlen_bp_8 = UN(gprlen, IMM(3) << 3); // gprlen - (bp * 8) - RzILOpPure *or = LOGOR(SHIFTL0(rt, bp_8), SHIFTR0(rs, gprlen_bp_8)); + RzILOpPure * or = LOGOR(SHIFTL0(rt, bp_8), SHIFTR0(rs, gprlen_bp_8)); return SETG(rd, or); } diff --git a/librz/arch/isa/rx/rx_opcode_detail.c b/librz/arch/isa/rx/rx_opcode_detail.c index 9b981dbe48d..c48e76e8e06 100644 --- a/librz/arch/isa/rx/rx_opcode_detail.c +++ b/librz/arch/isa/rx/rx_opcode_detail.c @@ -33,10 +33,10 @@ { .type = RX_TOKEN_CB, .tk.cb.tk_len = (x) } #define RxDspSplit(x, v, it, xx) \ { .type = RX_TOKEN_DSP_SPLIT, \ - .tk.dsp_sp.tk_len = (x), \ - .tk.dsp_sp.vid = (v), \ - .tk.dsp_sp.tk_len_more = (xx), \ - .tk.dsp_sp.interval = (it) } + .tk.dsp_sp.tk_len = (x), \ + .tk.dsp_sp.vid = (v), \ + .tk.dsp_sp.tk_len_more = (xx), \ + .tk.dsp_sp.interval = (it) } #define RxIgnore(x) \ { .type = RX_TOKEN_IGNORE, .tk.reserved.tk_len = (x) } diff --git a/librz/arch/isa/sh/sh_il.c b/librz/arch/isa/sh/sh_il.c index dbf8b3866b2..f11a1da9962 100644 --- a/librz/arch/isa/sh/sh_il.c +++ b/librz/arch/isa/sh/sh_il.c @@ -515,10 +515,10 @@ static RzILOpBool *sh_il_is_add_carry(RZ_OWN RzILOpPure *res, RZ_OWN RzILOpPure RzILOpBool *xr = AND(DUP(xmsb), DUP(nres)); // bit = xy | ry | xr - RzILOpBool *or = OR(xy, ry); + RzILOpBool * or = OR(xy, ry); or = OR(or, xr); - return or; + return or ; } /** @@ -550,10 +550,10 @@ static RzILOpBool *sh_il_is_sub_borrow(RZ_OWN RzILOpPure *res, RZ_OWN RzILOpPure RzILOpBool *rnx = AND(DUP(resmsb), DUP(nx)); // bit = nxy | rny | rnx - RzILOpBool *or = OR(nxy, rny); + RzILOpBool * or = OR(nxy, rny); or = OR(or, rnx); - return or; + return or ; } /** @@ -579,9 +579,9 @@ static RzILOpBool *sh_il_is_add_overflow(RZ_OWN RzILOpPure *res, RZ_OWN RzILOpPu // res & !x & !y RzILOpBool *rnxny = AND(AND(DUP(resmsb), INV(DUP(xmsb))), INV(DUP(ymsb))); // or = nrxy | rnxny - RzILOpBool *or = OR(nrxy, rnxny); + RzILOpBool * or = OR(nrxy, rnxny); - return or; + return or ; } /** @@ -607,9 +607,9 @@ static RzILOpBool *sh_il_is_sub_underflow(RZ_OWN RzILOpPure *res, RZ_OWN RzILOpP // res & !x & y RzILOpBool *rnxy = AND(AND(DUP(resmsb), INV(DUP(xmsb))), DUP(ymsb)); // or = nrxny | rnxy - RzILOpBool *or = OR(nrxny, rnxy); + RzILOpBool * or = OR(nrxny, rnxy); - return or; + return or ; } /* Instruction implementations */ diff --git a/librz/arch/isa/x86/common.c b/librz/arch/isa/x86/common.c index a0456d84a8c..572a9a85cd5 100644 --- a/librz/arch/isa/x86/common.c +++ b/librz/arch/isa/x86/common.c @@ -793,10 +793,10 @@ RZ_IPI RzILOpBool *x86_il_is_add_carry(RZ_OWN RZ_NONNULL RzILOpPure *res, RZ_OWN RzILOpBool *xr = AND(DUP(xmsb), DUP(nres)); // bit = xy | ry | xr - RzILOpBool *or = OR(xy, ry); + RzILOpBool * or = OR(xy, ry); or = OR(or, xr); - return or; + return or ; } /** @@ -824,10 +824,10 @@ RZ_IPI RzILOpBool *x86_il_is_sub_borrow(RZ_OWN RZ_NONNULL RzILOpPure *res, RZ_OW RzILOpBool *rnx = AND(DUP(resmsb), DUP(nx)); // bit = nxy | rny | rnx - RzILOpBool *or = OR(nxy, rny); + RzILOpBool * or = OR(nxy, rny); or = OR(or, rnx); - return or; + return or ; } /** @@ -850,9 +850,9 @@ RZ_IPI RzILOpBool *x86_il_is_add_overflow(RZ_OWN RZ_NONNULL RzILOpPure *res, RZ_ // res & !x & !y RzILOpBool *rnxny = AND(AND(DUP(resmsb), INV(DUP(xmsb))), INV(DUP(ymsb))); // or = nrxy | rnxny - RzILOpBool *or = OR(nrxy, rnxny); + RzILOpBool * or = OR(nrxy, rnxny); - return or; + return or ; } /** @@ -875,9 +875,9 @@ RZ_IPI RzILOpBool *x86_il_is_sub_underflow(RZ_OWN RZ_NONNULL RzILOpPure *res, RZ // res & !x & y RzILOpBool *rnxy = AND(AND(DUP(resmsb), INV(DUP(xmsb))), DUP(ymsb)); // or = nrxny | rnxy - RzILOpBool *or = OR(nrxny, rnxy); + RzILOpBool * or = OR(nrxny, rnxy); - return or; + return or ; } /** diff --git a/librz/arch/isa/x86/il_ops.inc b/librz/arch/isa/x86/il_ops.inc index aa99981a64c..884cd2c5942 100644 --- a/librz/arch/isa/x86/il_ops.inc +++ b/librz/arch/isa/x86/il_ops.inc @@ -1485,7 +1485,7 @@ IL_LIFTER(nop) { * One's complement negation * Encoding: M */ -IL_LIFTER(not) { +IL_LIFTER(not ) { return x86_il_set_op(0, LOGNOT(x86_il_get_op(0))); } diff --git a/librz/arch/isa/xtensa/xtensa_il.c b/librz/arch/isa/xtensa/xtensa_il.c index 1025e8f96e6..022cf025192 100644 --- a/librz/arch/isa/xtensa/xtensa_il.c +++ b/librz/arch/isa/xtensa/xtensa_il.c @@ -78,7 +78,7 @@ static RzILOpEffect *x_setg(const char *name, RzILOpPure *x) { #define B2U32(X) BOOL_TO_BV(X, 32) typedef RzAnalysisLiftedILOp (*fn_analyze_op_il)(XtensaContext *ctx); -typedef RzILOpPure *(fn_op2)(RzILOpBool * x, RzILOpBool *y); +typedef RzILOpPure *(fn_op2)(RzILOpBool *x, RzILOpBool *y); enum { PS_INTLEVEL, /// Interrupt level mask diff --git a/librz/bin/format/elf/elf.h b/librz/bin/format/elf/elf.h index c41f49b0d83..9a8c9ae27a2 100644 --- a/librz/bin/format/elf/elf.h +++ b/librz/bin/format/elf/elf.h @@ -134,7 +134,8 @@ typedef struct rz_bin_elf_section_t { typedef struct Elf_(rz_bin_elf_segment_t) { Elf_(Phdr) data; bool is_valid; -} RzBinElfSegment; +} +RzBinElfSegment; typedef struct rz_bin_elf_symbol_t { ut64 paddr; @@ -172,7 +173,8 @@ typedef struct Elf_(rz_bin_elf_note_file_t) { Elf_(Addr) end_vaddr; Elf_(Addr) file_off; char *file; -} RzBinElfNoteFile; +} +RzBinElfNoteFile; /** * \brief Parsed PT_NOTE of type NT_PRSTATUS. @@ -191,7 +193,8 @@ typedef struct Elf_(rz_bin_elf_note_t) { RzBinElfNoteFile file; //< for type == NT_FILE RzBinElfNotePrStatus prstatus; //< for type = NT_PRSTATUS }; -} RzBinElfNote; +} +RzBinElfNote; typedef struct rz_bin_elf_strtab RzBinElfStrtab; diff --git a/librz/bin/format/mdmp/mdmp_pe.c b/librz/bin/format/mdmp/mdmp_pe.c index 7156cccd2bf..bc1ff7d869f 100644 --- a/librz/bin/format/mdmp/mdmp_pe.c +++ b/librz/bin/format/mdmp/mdmp_pe.c @@ -70,7 +70,8 @@ RzPVector /**/ *PE_(rz_bin_mdmp_pe_get_entrypoint)(struct PE_(rz_bi rz_pvector_push(ret, ptr); } - PE_(add_tls_callbacks)(pe_bin->bin, ret); + PE_(add_tls_callbacks) + (pe_bin->bin, ret); free(entry); @@ -134,7 +135,8 @@ RzPVector /**/ *PE_(rz_bin_mdmp_pe_get_sections)(struct PE_(rz_b rz_pvector_free(ret); return NULL; } - PE_(rz_bin_pe_check_sections)(pe_bin->bin, §ions); + PE_(rz_bin_pe_check_sections) + (pe_bin->bin, §ions); for (i = 0; !sections[i].last; i++) { if (!(ptr = RZ_NEW0(RzBinSection))) { break; diff --git a/librz/bin/format/pe/pe.c b/librz/bin/format/pe/pe.c index 36b52707362..9488ac4f8ff 100644 --- a/librz/bin/format/pe/pe.c +++ b/librz/bin/format/pe/pe.c @@ -60,19 +60,29 @@ static int bin_pe_init(RzBinPEObj *bin) { return false; } bin->sections = PE_(rz_bin_pe_get_sections)(bin); - PE_(bin_pe_init_imports)(bin); - PE_(bin_pe_init_exports)(bin); - PE_(bin_pe_init_resource)(bin); - PE_(bin_pe_init_security)(bin); - PE_(bin_pe_init_relocs)(bin); + PE_(bin_pe_init_imports) + (bin); + PE_(bin_pe_init_exports) + (bin); + PE_(bin_pe_init_resource) + (bin); + PE_(bin_pe_init_security) + (bin); + PE_(bin_pe_init_relocs) + (bin); bin->big_endian = PE_(rz_bin_pe_is_big_endian)(bin); - PE_(bin_pe_init_rich_info)(bin); - PE_(bin_pe_init_tls)(bin); - PE_(bin_pe_init_clr)(bin); - PE_(bin_pe_init_overlay)(bin); - PE_(bin_pe_parse_resource)(bin); + PE_(bin_pe_init_rich_info) + (bin); + PE_(bin_pe_init_tls) + (bin); + PE_(bin_pe_init_clr) + (bin); + PE_(bin_pe_init_overlay) + (bin); + PE_(bin_pe_parse_resource) + (bin); return true; } @@ -86,7 +96,8 @@ void *PE_(rz_bin_pe_free)(RzBinPEObj *bin) { free(bin->export_directory); free(bin->import_directory); free(bin->resource_directory); - PE_(free_security_directory)(bin->security_directory); + PE_(free_security_directory) + (bin->security_directory); free(bin->delay_import_directory); bin_pe_dotnet_destroy_clr(bin->clr); free(bin->tls_directory); diff --git a/librz/bin/format/pe/pemixed.c b/librz/bin/format/pe/pemixed.c index 3efee9bcc52..64b0e7f40db 100644 --- a/librz/bin/format/pe/pemixed.c +++ b/librz/bin/format/pe/pemixed.c @@ -45,7 +45,8 @@ RzBinPEObj *rz_bin_pemixed_init_dos(RzBinPEObj *pe_bin) { RzBinPEObj *sub_bin_dos = RZ_NEW0(RzBinPEObj); if (!(sub_bin_dos->b = rz_buf_new_with_bytes(tmp_buf, pe_hdr_off))) { - PE_(rz_bin_pe_free)(sub_bin_dos); + PE_(rz_bin_pe_free) + (sub_bin_dos); return NULL; } @@ -140,7 +141,8 @@ void *rz_bin_pemixed_free(struct rz_bin_pemixed_obj_t *bin) { // only one free is nessescary since they all point // to the same original pe struct // possible memleak here - PE_(rz_bin_pe_free)(bin->sub_bin_net); + PE_(rz_bin_pe_free) + (bin->sub_bin_net); if (bin->sub_bin_dos) { rz_buf_free(bin->sub_bin_dos->b); // dos is the only one with its own buf } @@ -167,22 +169,26 @@ struct rz_bin_pemixed_obj_t *rz_bin_pemixed_from_bytes_new(const ut8 *buf, ut64 bin->size = size; pe_bin = PE_(rz_bin_pe_new_buf)(bin->b, true); if (!pe_bin) { - PE_(rz_bin_pe_free)(pe_bin); + PE_(rz_bin_pe_free) + (pe_bin); return rz_bin_pemixed_free(bin); } if (!pe_bin->clr || !pe_bin->clr->header) { - PE_(rz_bin_pe_free)(pe_bin); + PE_(rz_bin_pe_free) + (pe_bin); return rz_bin_pemixed_free(bin); } // check if binary only contains managed code // check implemented here cuz we need to intialize // the pe header to access the clr hdr if (check_il_only(pe_bin->clr->header->Flags)) { - PE_(rz_bin_pe_free)(pe_bin); + PE_(rz_bin_pe_free) + (pe_bin); return rz_bin_pemixed_free(bin); } if (!rz_bin_pemixed_init(bin, pe_bin)) { - PE_(rz_bin_pe_free)(pe_bin); + PE_(rz_bin_pe_free) + (pe_bin); return rz_bin_pemixed_free(bin); } return bin; diff --git a/librz/bin/p/bin_elf.inc b/librz/bin/p/bin_elf.inc index 3619d0c7231..6c50ab0f172 100644 --- a/librz/bin/p/bin_elf.inc +++ b/librz/bin/p/bin_elf.inc @@ -1181,7 +1181,7 @@ static RzBinInfo *info(RzBinFile *bf) { return ret; } -static bool add_fields_aux(ELFOBJ *bin, RzPVector /**/ *result, ut64 offset, size_t size, const char *name, char *(get_value)(ELFOBJ * bin), const char *fmt) { +static bool add_fields_aux(ELFOBJ *bin, RzPVector /**/ *result, ut64 offset, size_t size, const char *name, char *(get_value)(ELFOBJ *bin), const char *fmt) { char *value = get_value(bin); if (!value) { return false; diff --git a/librz/bin/p/bin_pe.inc b/librz/bin/p/bin_pe.inc index febf5cfabae..e870100b041 100644 --- a/librz/bin/p/bin_pe.inc +++ b/librz/bin/p/bin_pe.inc @@ -32,7 +32,8 @@ static bool pe_load_buffer(RzBinFile *bf, RzBinObject *obj, RzBuffer *buf, Sdb * } static void pe_destroy(RzBinFile *bf) { - PE_(rz_bin_pe_free)((struct PE_(rz_bin_pe_obj_t) *)bf->o->bin_obj); + PE_(rz_bin_pe_free) + ((struct PE_(rz_bin_pe_obj_t) *)bf->o->bin_obj); } static ut64 pe_baddr(RzBinFile *bf) { @@ -165,7 +166,8 @@ static RzPVector /**/ *pe_maps(RzBinFile *bf) { map->vsize = RZ_ROUND(map->psize, 4096); map->perm = RZ_PERM_R; rz_pvector_push(ret, map); - PE_(rz_bin_pe_check_sections)(bin, §ions); + PE_(rz_bin_pe_check_sections) + (bin, §ions); for (size_t i = 0; !sections[i].last; i++) { RzBinMap *map = RZ_NEW0(RzBinMap); if (!map) { @@ -208,7 +210,8 @@ static RzPVector /**/ *pe_sections(RzBinFile *bf) { rz_pvector_free(ret); return NULL; } - PE_(rz_bin_pe_check_sections)(bin, §ions); + PE_(rz_bin_pe_check_sections) + (bin, §ions); for (i = 0; !sections[i].last; i++) { if (!(ptr = RZ_NEW0(RzBinSection))) { break; diff --git a/librz/core/linux_heap_glibc.c b/librz/core/linux_heap_glibc.c index 57de6d2d2dc..42bda2d7d70 100644 --- a/librz/core/linux_heap_glibc.c +++ b/librz/core/linux_heap_glibc.c @@ -280,7 +280,8 @@ static RZ_BORROW RzList /**/ *GH(fill_tcache_entries)(RzCore *core, GH bin->bin_num = i; bin->chunks = rz_list_newf((RzListFree)GH(rz_heap_chunk_free)); if (!bin->chunks) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); goto error; } rz_list_append(tcache_bins_list, bin); @@ -291,7 +292,8 @@ static RZ_BORROW RzList /**/ *GH(fill_tcache_entries)(RzCore *core, GH // get first chunk RzHeapChunkListItem *chunk = RZ_NEW0(RzHeapChunkListItem); if (!chunk) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); goto error; } chunk->addr = (ut64)(entry - GH(HDR_SZ)); @@ -365,7 +367,8 @@ static void GH(print_tcache)(RzCore *core, RzList /**/ *bins, PJ *pj, if (!pj) { rz_cons_printf(" -> "); } - GH(print_heap_chunk_simple)(core, pos->addr, NULL, pj); + GH(print_heap_chunk_simple) + (core, pos->addr, NULL, pj); if (!pj) { rz_cons_newline(); } @@ -524,7 +527,8 @@ RZ_API bool GH(rz_heap_update_main_arena)(RzCore *core, GHT m_arena, MallocState if (!cmain_arena->next) { return false; } - GH(update_arena_with_tc)(cmain_arena, main_arena); + GH(update_arena_with_tc) + (cmain_arena, main_arena); free(cmain_arena); } else { GH(RzHeap_MallocState) *cmain_arena = RZ_NEW0(GH(RzHeap_MallocState)); @@ -532,7 +536,8 @@ RZ_API bool GH(rz_heap_update_main_arena)(RzCore *core, GHT m_arena, MallocState return false; } (void)rz_io_read_at(core->io, m_arena, (ut8 *)cmain_arena, sizeof(GH(RzHeap_MallocState))); - GH(update_arena_without_tc)(cmain_arena, main_arena); + GH(update_arena_without_tc) + (cmain_arena, main_arena); free(cmain_arena); } return true; @@ -750,7 +755,8 @@ RZ_API bool GH(rz_heap_resolve_main_arena)(RzCore *core, GHT *m_arena) { return false; } - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); if (brk_start == GHT_MAX || brk_end == GHT_MAX) { RZ_LOG_ERROR("core: no heap section\n"); return false; @@ -764,14 +770,16 @@ RZ_API bool GH(rz_heap_resolve_main_arena)(RzCore *core, GHT *m_arena) { } if (main_arena_sym != GHT_MAX) { - GH(rz_heap_update_main_arena)(core, main_arena_sym, ta); + GH(rz_heap_update_main_arena) + (core, main_arena_sym, ta); *m_arena = main_arena_sym; core->dbg->main_arena_resolved = true; free(ta); return true; } while (addr_srch < libc_addr_end) { - GH(rz_heap_update_main_arena)(core, addr_srch, ta); + GH(rz_heap_update_main_arena) + (core, addr_srch, ta); if (ta->top > brk_start && ta->top < brk_end && ta->system_mem == heap_sz) { @@ -830,15 +838,18 @@ static bool GH(parse_tcache_from_addr)(RzCore *core, const GHT tls_addr, const G #endif tcache_heap = GH(tcache_new)(core); if (!GH(tcache_read)(core, tcache_guess, tcache_heap)) { - GH(tcache_free)(tcache_heap); + GH(tcache_free) + (tcache_heap); tcache_heap = NULL; } break; } if (tcache_heap != NULL) { RzList *bins = GH(fill_tcache_entries)(core, tcache_heap); - GH(print_tcache)(core, bins, NULL, tid); - GH(tcache_free)(tcache_heap); + GH(print_tcache) + (core, bins, NULL, tid); + GH(tcache_free) + (tcache_heap); tcache_heap = NULL; return true; } @@ -915,7 +926,8 @@ static void GH(resolve_tcache_perthread)(RZ_NONNULL RzCore *core) { RzList *thread_list = rz_debug_native_threads(dbg, dbg->pid); RzDebugPid *thread_dbg = rz_debug_get_thread(thread_list, th->pid); if (thread_dbg) { - GH(parse_tls_data)(core, thread_dbg, tid); + GH(parse_tls_data) + (core, thread_dbg, tid); } } } @@ -925,13 +937,15 @@ RZ_API RZ_OWN bool GH(resolve_heap_tcache)(RZ_NONNULL RzCore *core, GHT arena_ba RzDebug *dbg = core->dbg; if (dbg->threads) { - GH(resolve_tcache_perthread)(core); + GH(resolve_tcache_perthread) + (core); return true; } // Only main thread is present RzList *bins = GH(rz_heap_tcache_content)(core, arena_base); - GH(print_tcache)(core, bins, NULL, 0); + GH(print_tcache) + (core, bins, NULL, 0); return true; } @@ -1221,7 +1235,8 @@ static int GH(print_double_linked_list_bin)(RzCore *core, MallocState *main_aren return -1; } - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); if (brk_start == GHT_MAX || brk_end == GHT_MAX) { RZ_LOG_ERROR("core: no heap section\n"); return -1; @@ -1270,7 +1285,8 @@ static void GH(print_heap_bin)(RzCore *core, GHT m_arena, MallocState *main_aren PRINT_YA("Bins {\n"); for (size_t i = 0; i < NBINS - 1; i++) { PRINTF_YA(" Bin %03" PFMTSZu ":\n", i); - GH(print_double_linked_list_bin)(core, main_arena, m_arena, offset, i, print_graph); + GH(print_double_linked_list_bin) + (core, main_arena, m_arena, offset, i, print_graph); } PRINT_YA("\n}\n"); } else { @@ -1280,7 +1296,8 @@ static void GH(print_heap_bin)(RzCore *core, GHT m_arena, MallocState *main_aren return; } PRINTF_YA(" Bin %03" PFMT64u ":\n", (ut64)num_bin); - GH(print_double_linked_list_bin)(core, main_arena, m_arena, offset, num_bin, print_graph); + GH(print_double_linked_list_bin) + (core, main_arena, m_arena, offset, num_bin, print_graph); } return; } @@ -1314,7 +1331,8 @@ RZ_API RzHeapBin *GH(rz_heap_fastbin_content)(RzCore *core, MallocState *main_ar free(cnk); return heap_bin; } - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); heap_bin->fd = next; if (brk_start == GHT_MAX || brk_end == GHT_MAX) { free(cnk); @@ -1422,7 +1440,8 @@ void GH(print_heap_fastbin)(RzCore *core, GHT m_arena, MallocState *main_arena, if (!pj) { rz_cons_printf(" -> "); } - GH(print_heap_chunk_simple)(core, pos->addr, NULL, pj); + GH(print_heap_chunk_simple) + (core, pos->addr, NULL, pj); if (!pj) { rz_cons_newline(); } @@ -1435,7 +1454,8 @@ void GH(print_heap_fastbin)(RzCore *core, GHT m_arena, MallocState *main_arena, pj_end(pj); pj_end(pj); } - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); } } @@ -1505,7 +1525,8 @@ RZ_API RzList /**/ *GH(rz_heap_tcache_content)(RzCore *core, GHT ar } GHT brk_start = GHT_MAX, brk_end = GHT_MAX, initial_brk = GHT_MAX; - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); GHT fc_offset = GH(tcache_chunk_size)(core, brk_start); initial_brk = brk_start + fc_offset; if (brk_start == GHT_MAX || brk_end == GHT_MAX || initial_brk == GHT_MAX) { @@ -1538,7 +1559,8 @@ RZ_API RzList /**/ *GH(rz_heap_tcache_content)(RzCore *core, GHT ar // Get rz_tcache struct GH(RTcache) *tcache = GH(tcache_new)(core); if (!GH(tcache_read)(core, tcache_start, tcache)) { - GH(tcache_free)(tcache); + GH(tcache_free) + (tcache); return NULL; } @@ -1558,7 +1580,8 @@ RZ_API RzList /**/ *GH(rz_heap_tcache_content)(RzCore *core, GHT ar bin->bin_num = i; bin->chunks = rz_list_newf((RzListFree)GH(rz_heap_chunk_free)); if (!bin->chunks) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); goto error; } @@ -1622,7 +1645,8 @@ static void GH(print_tcache_content)(RzCore *core, GHT arena_base, GHT main_aren } PRINTF_YA("0x%" PFMT64x "\n", (ut64)arena_base); } - GH(print_tcache)(core, bins, pj, 0); + GH(print_tcache) + (core, bins, pj, 0); } void GH(print_malloc_states)(RzCore *core, GHT m_arena, MallocState *main_arena, bool json) { @@ -1740,7 +1764,8 @@ void GH(print_malloc_info)(RzCore *core, GHT m_state, GHT malloc_state) { return; } rz_io_read_at(core->io, h_info, (ut8 *)heap_info, sizeof(GH(RzHeapInfo))); - GH(print_inst_minfo)(core, heap_info, h_info); + GH(print_inst_minfo) + (core, heap_info, h_info); MallocState *ms = RZ_NEW0(MallocState); if (!ms) { free(heap_info); @@ -1756,7 +1781,8 @@ void GH(print_malloc_info)(RzCore *core, GHT m_state, GHT malloc_state) { if ((ms->top >> 16) << 16 != h_info) { h_info = (ms->top >> 16) << 16; rz_io_read_at(core->io, h_info, (ut8 *)heap_info, sizeof(GH(RzHeapInfo))); - GH(print_inst_minfo)(core, heap_info, h_info); + GH(print_inst_minfo) + (core, heap_info, h_info); } } free(heap_info); @@ -1814,7 +1840,8 @@ RZ_API RzHeapBin *GH(rz_heap_bin_content)(RzCore *core, MallocState *main_arena, bin->chunks = rz_list_newf(free); GH(RzHeapChunk) *head = RZ_NEW0(GH(RzHeapChunk)); if (!head) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); return NULL; } @@ -1825,11 +1852,13 @@ RZ_API RzHeapBin *GH(rz_heap_bin_content)(RzCore *core, MallocState *main_arena, } GH(RzHeapChunk) *cnk = RZ_NEW0(GH(RzHeapChunk)); if (!cnk) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); return NULL; } GHT brk_start = GHT_MAX, brk_end = GHT_MAX, initial_brk = GHT_MAX; - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); if (brk_start == GHT_MAX || brk_end == GHT_MAX) { free(cnk); return bin; @@ -1879,7 +1908,8 @@ static int GH(print_bin_content)(RzCore *core, MallocState *main_arena, int bin_ RzHeapBin *bin = GH(rz_heap_bin_content)(core, main_arena, bin_num, m_arena); RzList *chunks = bin->chunks; if (rz_list_length(chunks) == 0) { - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); return 0; } int chunks_cnt = 0; @@ -1909,7 +1939,8 @@ static int GH(print_bin_content)(RzCore *core, MallocState *main_arena, int bin_ if (!pj) { rz_cons_printf(" -> "); } - GH(print_heap_chunk_simple)(core, pos->addr, NULL, pj); + GH(print_heap_chunk_simple) + (core, pos->addr, NULL, pj); if (!pj) { rz_cons_newline(); } @@ -1918,7 +1949,8 @@ static int GH(print_bin_content)(RzCore *core, MallocState *main_arena, int bin_ if (bin->message) { PRINTF_RA("%s\n", bin->message); } - GH(rz_heap_bin_free)(bin); + GH(rz_heap_bin_free) + (bin); if (pj) { pj_end(pj); } @@ -2038,26 +2070,31 @@ static void GH(print_main_arena_bins)(RzCore *core, GHT m_arena, MallocState *ma pj_ka(pj, "bins"); } if (format == RZ_HEAP_BIN_ANY || format == RZ_HEAP_BIN_TCACHE) { - GH(print_tcache_content)(core, m_arena, main_arena_base, pj); + GH(print_tcache_content) + (core, m_arena, main_arena_base, pj); rz_cons_newline(); } if (format == RZ_HEAP_BIN_ANY || format == RZ_HEAP_BIN_FAST) { char *input = rz_str_newlen("", 1); bool main_arena_only = true; - GH(print_heap_fastbin)(core, m_arena, main_arena, global_max_fast, input, main_arena_only, pj); + GH(print_heap_fastbin) + (core, m_arena, main_arena, global_max_fast, input, main_arena_only, pj); free(input); rz_cons_newline(); } if (format == RZ_HEAP_BIN_ANY || format == RZ_HEAP_BIN_UNSORTED) { - GH(print_unsortedbin_description)(core, m_arena, main_arena, pj); + GH(print_unsortedbin_description) + (core, m_arena, main_arena, pj); rz_cons_newline(); } if (format == RZ_HEAP_BIN_ANY || format == RZ_HEAP_BIN_SMALL) { - GH(print_smallbin_description)(core, m_arena, main_arena, pj); + GH(print_smallbin_description) + (core, m_arena, main_arena, pj); rz_cons_newline(); } if (format == RZ_HEAP_BIN_ANY || format == RZ_HEAP_BIN_LARGE) { - GH(print_largebin_description)(core, m_arena, main_arena, pj); + GH(print_largebin_description) + (core, m_arena, main_arena, pj); rz_cons_newline(); } if (json) { @@ -2150,7 +2187,8 @@ RZ_API RzList /**/ *GH(rz_heap_chunks_list)(RzCore *core, int glibc_version = core->dbg->glibc_version; if (m_arena == m_state) { - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); if (tcache) { initial_brk = ((brk_start >> 12) << 12) + GH(HDR_SZ); if (rz_config_get_b(core->config, "cfg.debug")) { @@ -2258,7 +2296,8 @@ RZ_API RzList /**/ *GH(rz_heap_chunks_list)(RzCore *core, free(cnk_next); return chunks; } - GH(tcache_read)(core, tcache_initial_brk, tcache_heap); + GH(tcache_read) + (core, tcache_initial_brk, tcache_heap); size_t i; for (i = 0; i < TCACHE_MAX_BINS; i++) { int count = GH(tcache_get_count)(tcache_heap, i); @@ -2288,7 +2327,8 @@ RZ_API RzList /**/ *GH(rz_heap_chunks_list)(RzCore *core, } } } - GH(tcache_free)(tcache_heap); + GH(tcache_free) + (tcache_heap); } next_chunk += size_tmp; @@ -2409,7 +2449,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_chunks_print_handler)(RzCore *core, int argc, } GHT brk_start, brk_end; if (m_arena == m_state) { - GH(get_brks)(core, &brk_start, &brk_end); + GH(get_brks) + (core, &brk_start, &brk_end); } else { brk_start = ((m_state >> 16) << 16); @@ -2465,7 +2506,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_chunks_print_handler)(RzCore *core, int argc, } rz_list_foreach (chunks, iter, pos) { if (mode == RZ_OUTPUT_MODE_STANDARD || mode == RZ_OUTPUT_MODE_LONG) { - GH(print_heap_chunk_simple)(core, pos->addr, pos->status, NULL); + GH(print_heap_chunk_simple) + (core, pos->addr, pos->status, NULL); rz_cons_newline(); if (mode == RZ_OUTPUT_MODE_LONG) { int size = 0x10; @@ -2502,7 +2544,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_chunks_print_handler)(RzCore *core, int argc, } } if (mode == RZ_OUTPUT_MODE_STANDARD || mode == RZ_OUTPUT_MODE_LONG) { - GH(print_heap_chunk_simple)(core, main_arena->top, "free", NULL); + GH(print_heap_chunk_simple) + (core, main_arena->top, "free", NULL); PRINT_RA("[top]"); rz_cons_printf("[brk_start: "); PRINTF_YA("0x%" PFMT64x, (ut64)brk_start); @@ -2563,7 +2606,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_main_arena_print_handler)(RzCore *core, int argc, c free(main_arena); return RZ_CMD_STATUS_ERROR; } - GH(print_arena_stats)(core, m_state, main_arena, global_max_fast, mode); + GH(print_arena_stats) + (core, m_state, main_arena, global_max_fast, mode); free(main_arena); return RZ_CMD_STATUS_OK; } @@ -2579,7 +2623,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_chunk_print_handler)(RzCore *core, int argc, c return RZ_CMD_STATUS_ERROR; } ut64 addr = core->offset; - GH(print_heap_chunk)(core, addr); + GH(print_heap_chunk) + (core, addr); free(main_arena); return RZ_CMD_STATUS_OK; } @@ -2609,7 +2654,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_info_print_handler)(RzCore *core, int argc, co free(main_arena); return RZ_CMD_STATUS_ERROR; } - GH(print_malloc_info)(core, m_arena, m_state); + GH(print_malloc_info) + (core, m_arena, m_state); free(main_arena); return RZ_CMD_STATUS_OK; } @@ -2663,7 +2709,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_bins_list_print_handler)(RzCore *core, const c free(dup); return RZ_CMD_STATUS_ERROR; } - GH(print_heap_bin)(core, m_state, main_arena, dup, mode == RZ_OUTPUT_MODE_GRAPH); + GH(print_heap_bin) + (core, m_state, main_arena, dup, mode == RZ_OUTPUT_MODE_GRAPH); } else { PRINT_RA("This address is not part of the arenas\n"); free(main_arena); @@ -2707,7 +2754,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_fastbins_print_handler)(void *data, const char free(main_arena); return RZ_CMD_STATUS_ERROR; } - GH(print_heap_fastbin)(core, m_state, main_arena, global_max_fast, dup, main_arena_only, NULL); + GH(print_heap_fastbin) + (core, m_state, main_arena, global_max_fast, dup, main_arena_only, NULL); } else { PRINT_RA("This address is not part of the arenas\n"); free(dup); @@ -2765,7 +2813,8 @@ RZ_IPI RzCmdStatus GH(rz_cmd_heap_arena_bins_print_handler)(RzCore *core, int ar bin_format = RZ_HEAP_BIN_LARGE; } } - GH(print_main_arena_bins)(core, m_state, main_arena, m_arena, global_max_fast, bin_format, json); + GH(print_main_arena_bins) + (core, m_state, main_arena, m_arena, global_max_fast, bin_format, json); free(main_arena); return RZ_CMD_STATUS_OK; } diff --git a/librz/core/linux_heap_jemalloc.c b/librz/core/linux_heap_jemalloc.c index f5cf931732d..24a363bdb11 100644 --- a/librz/core/linux_heap_jemalloc.c +++ b/librz/core/linux_heap_jemalloc.c @@ -363,7 +363,8 @@ static void GH(jemalloc_get_bins)(RzCore *core, const char *input) { break; } PRINTF_YA(" arenas[%d]: @ 0x%" PFMTx " {\n", i++, (GHT)arena); - GH(jemalloc_print_arena_bins)(core, arena, bin_info, pal); + GH(jemalloc_print_arena_bins) + (core, arena, bin_info, pal); PRINT_YA(" }\n"); } } @@ -386,7 +387,8 @@ static void GH(jemalloc_get_bins)(RzCore *core, const char *input) { bin_info = rz_num_math(core->num, bin_info_str); PRINTF_GA("arena_t @ 0x%" PFMT64x " bins[%d] {\n", (ut64)arena, JM_NBINS); - GH(jemalloc_print_arena_bins)(core, arena, bin_info, pal); + GH(jemalloc_print_arena_bins) + (core, arena, bin_info, pal); PRINT_GA("}\n"); free(args); @@ -485,13 +487,16 @@ static void GH(jemalloc_get_runs)(RzCore *core, const char *input) { static void GH(cmd_dbg_map_jemalloc)(RzCore *core, char dmx_variant, const char *arg) { switch (dmx_variant) { case 'a': // dmxa - GH(jemalloc_print_narenas)(core, arg); + GH(jemalloc_print_narenas) + (core, arg); break; case 'b': // dmxb - GH(jemalloc_get_bins)(core, arg); + GH(jemalloc_get_bins) + (core, arg); break; case 'c': // dmxc - GH(jemalloc_get_chunks)(core, arg); + GH(jemalloc_get_chunks) + (core, arg); break; } } diff --git a/librz/debug/p/native/windows/windows_debug.h b/librz/debug/p/native/windows/windows_debug.h index 9fa40cc166f..5e542c3c65b 100644 --- a/librz/debug/p/native/windows/windows_debug.h +++ b/librz/debug/p/native/windows/windows_debug.h @@ -114,8 +114,10 @@ typedef struct { } LIB_ITEM, *PLIB_ITEM; // Vista -BOOL(WINAPI *w32_ProcessIdToSessionId)(DWORD, DWORD *); -BOOL(WINAPI *w32_QueryFullProcessImageNameW)(HANDLE, DWORD, LPWSTR, PDWORD); +BOOL(WINAPI *w32_ProcessIdToSessionId) +(DWORD, DWORD *); +BOOL(WINAPI *w32_QueryFullProcessImageNameW) +(HANDLE, DWORD, LPWSTR, PDWORD); // Internal NT functions (winternl.h) NTSTATUS(WINAPI *w32_NtQuerySystemInformation) (ULONG, PVOID, ULONG, PULONG); @@ -127,11 +129,14 @@ NTSTATUS(WINAPI *w32_NtQueryObject) (HANDLE, ULONG, PVOID, ULONG, PULONG); // fpu access API (Windows 7) ut64(WINAPI *w32_GetEnabledXStateFeatures)(); -BOOL(WINAPI *w32_InitializeContext)(PVOID, DWORD, PCONTEXT *, PDWORD); -BOOL(WINAPI *w32_GetXStateFeaturesMask)(PCONTEXT Context, PDWORD64); +BOOL(WINAPI *w32_InitializeContext) +(PVOID, DWORD, PCONTEXT *, PDWORD); +BOOL(WINAPI *w32_GetXStateFeaturesMask) +(PCONTEXT Context, PDWORD64); PVOID(WINAPI *w32_LocateXStateFeature) (PCONTEXT Context, DWORD, PDWORD); -BOOL(WINAPI *w32_SetXStateFeaturesMask)(PCONTEXT Context, DWORD64); +BOOL(WINAPI *w32_SetXStateFeaturesMask) +(PCONTEXT Context, DWORD64); // APIs int w32_init(RzDebug *dbg); diff --git a/librz/hash/algorithms/ssdeep/fnv_hash.h b/librz/hash/algorithms/ssdeep/fnv_hash.h index ce5eaa85545..786befaf499 100644 --- a/librz/hash/algorithms/ssdeep/fnv_hash.h +++ b/librz/hash/algorithms/ssdeep/fnv_hash.h @@ -41,4290 +41,4290 @@ #define FNV_B64_00 \ { \ 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ } #define FNV_B64_01 \ { \ 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ } #define FNV_B64_02 \ { \ 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - } -#define FNV_B64_03 \ - { \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - } -#define FNV_B64_04 \ - { \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - } -#define FNV_B64_05 \ - { \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - } -#define FNV_B64_06 \ - { \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - } -#define FNV_B64_07 \ - { \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - } -#define FNV_B64_08 \ - { \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - } -#define FNV_B64_09 \ - { \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - } -#define FNV_B64_0A \ - { \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - } -#define FNV_B64_0B \ - { \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - } -#define FNV_B64_0C \ - { \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - } -#define FNV_B64_0D \ - { \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - } -#define FNV_B64_0E \ - { \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - } -#define FNV_B64_0F \ - { \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - } -#define FNV_B64_10 \ - { \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - } -#define FNV_B64_11 \ - { \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - } -#define FNV_B64_12 \ - { \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - } -#define FNV_B64_13 \ - { \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - } -#define FNV_B64_14 \ - { \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - } -#define FNV_B64_15 \ - { \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - } -#define FNV_B64_16 \ - { \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - } -#define FNV_B64_17 \ - { \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - } -#define FNV_B64_18 \ - { \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - } -#define FNV_B64_19 \ - { \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - } -#define FNV_B64_1A \ - { \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - } -#define FNV_B64_1B \ - { \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - } -#define FNV_B64_1C \ - { \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - } -#define FNV_B64_1D \ - { \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - } -#define FNV_B64_1E \ - { \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - } -#define FNV_B64_1F \ - { \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - } -#define FNV_B64_20 \ - { \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - } -#define FNV_B64_21 \ - { \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - } -#define FNV_B64_22 \ - { \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - } -#define FNV_B64_23 \ - { \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - } -#define FNV_B64_24 \ - { \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - } -#define FNV_B64_25 \ - { \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - } -#define FNV_B64_26 \ - { \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - } -#define FNV_B64_27 \ - { \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - } -#define FNV_B64_28 \ - { \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - } -#define FNV_B64_29 \ - { \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - } -#define FNV_B64_2A \ - { \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - } -#define FNV_B64_2B \ - { \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - } -#define FNV_B64_2C \ - { \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - } -#define FNV_B64_2D \ - { \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - } -#define FNV_B64_2E \ - { \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - } -#define FNV_B64_2F \ - { \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - } -#define FNV_B64_30 \ - { \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - } -#define FNV_B64_31 \ - { \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - } -#define FNV_B64_32 \ - { \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - } -#define FNV_B64_33 \ - { \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - } -#define FNV_B64_34 \ - { \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ - 0x0b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - } -#define FNV_B64_35 \ - { \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - } -#define FNV_B64_36 \ - { \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x3a, \ - 0x3b, \ - 0x38, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + } +#define FNV_B64_03 \ + { \ 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ } -#define FNV_B64_37 \ +#define FNV_B64_04 \ { \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x05, \ - 0x04, \ - 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x0d, \ 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + } +#define FNV_B64_05 \ + { \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + } +#define FNV_B64_06 \ + { \ 0x32, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ } -#define FNV_B64_38 \ +#define FNV_B64_07 \ + { \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + } +#define FNV_B64_08 \ + { \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + } +#define FNV_B64_09 \ { \ - 0x28, \ - 0x29, \ - 0x2a, \ 0x2b, \ - 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x3c, \ - 0x3d, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + } +#define FNV_B64_0A \ + { \ 0x3e, \ - 0x3f, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x34, \ - 0x35, \ - 0x36, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + } +#define FNV_B64_0B \ + { \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + } +#define FNV_B64_0C \ + { \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + } +#define FNV_B64_0D \ + { \ 0x37, \ - 0x08, \ - 0x09, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + } +#define FNV_B64_0E \ + { \ 0x0a, \ - 0x0b, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x1c, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + } +#define FNV_B64_0F \ + { \ 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x10, \ - 0x11, \ - 0x12, \ - 0x13, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ } -#define FNV_B64_39 \ +#define FNV_B64_10 \ { \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ - 0x3f, \ - 0x3e, \ - 0x3d, \ - 0x3c, \ - 0x33, \ - 0x32, \ - 0x31, \ 0x30, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x2b, \ - 0x2a, \ - 0x29, \ - 0x28, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + } +#define FNV_B64_11 \ + { \ 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x07, \ - 0x06, \ - 0x05, \ - 0x04, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ } -#define FNV_B64_3A \ +#define FNV_B64_12 \ + { \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + } +#define FNV_B64_13 \ + { \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + } +#define FNV_B64_14 \ + { \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + } +#define FNV_B64_15 \ { \ - 0x0e, \ 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x0a, \ - 0x0b, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + } +#define FNV_B64_16 \ + { \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + } +#define FNV_B64_17 \ + { \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + } +#define FNV_B64_18 \ + { \ 0x08, \ - 0x09, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x1a, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + } +#define FNV_B64_19 \ + { \ 0x1b, \ - 0x18, \ - 0x19, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x12, \ - 0x13, \ - 0x10, \ - 0x11, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + } +#define FNV_B64_1A \ + { \ 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x26, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + } +#define FNV_B64_1B \ + { \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + } +#define FNV_B64_1C \ + { \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + } +#define FNV_B64_1D \ + { \ 0x27, \ - 0x24, \ - 0x25, \ - 0x22, \ - 0x23, \ - 0x20, \ - 0x21, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + } +#define FNV_B64_1E \ + { \ 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ } -#define FNV_B64_3B \ +#define FNV_B64_1F \ + { \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + } +#define FNV_B64_20 \ { \ - 0x21, \ 0x20, \ - 0x23, \ - 0x22, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x29, \ - 0x28, \ - 0x2b, \ - 0x2a, \ - 0x2d, \ - 0x2c, \ - 0x2f, \ - 0x2e, \ - 0x31, \ - 0x30, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + } +#define FNV_B64_21 \ + { \ 0x33, \ - 0x32, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x39, \ - 0x38, \ - 0x3b, \ - 0x3a, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x05, \ - 0x04, \ - 0x07, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + } +#define FNV_B64_22 \ + { \ 0x06, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ - 0x0e, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + } +#define FNV_B64_23 \ + { \ 0x19, \ - 0x18, \ - 0x1b, \ - 0x1a, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ } -#define FNV_B64_3C \ +#define FNV_B64_24 \ { \ - 0x34, \ - 0x35, \ - 0x36, \ - 0x37, \ - 0x30, \ - 0x31, \ - 0x32, \ - 0x33, \ - 0x3c, \ - 0x3d, \ - 0x3e, \ - 0x3f, \ - 0x38, \ - 0x39, \ - 0x3a, \ - 0x3b, \ - 0x24, \ - 0x25, \ - 0x26, \ - 0x27, \ - 0x20, \ - 0x21, \ - 0x22, \ - 0x23, \ 0x2c, \ - 0x2d, \ - 0x2e, \ - 0x2f, \ - 0x28, \ - 0x29, \ - 0x2a, \ - 0x2b, \ - 0x14, \ - 0x15, \ - 0x16, \ - 0x17, \ - 0x10, \ - 0x11, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + } +#define FNV_B64_25 \ + { \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + } +#define FNV_B64_26 \ + { \ 0x12, \ - 0x13, \ - 0x1c, \ - 0x1d, \ - 0x1e, \ - 0x1f, \ - 0x18, \ - 0x19, \ - 0x1a, \ - 0x1b, \ - 0x04, \ - 0x05, \ - 0x06, \ - 0x07, \ - 0x00, \ - 0x01, \ - 0x02, \ - 0x03, \ - 0x0c, \ - 0x0d, \ - 0x0e, \ - 0x0f, \ - 0x08, \ - 0x09, \ - 0x0a, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + } +#define FNV_B64_27 \ + { \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + } +#define FNV_B64_28 \ + { \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + } +#define FNV_B64_29 \ + { \ 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ } -#define FNV_B64_3D \ +#define FNV_B64_2A \ + { \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + } +#define FNV_B64_2B \ + { \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + } +#define FNV_B64_2C \ { \ - 0x07, \ - 0x06, \ - 0x05, \ 0x04, \ - 0x03, \ - 0x02, \ - 0x01, \ - 0x00, \ - 0x0f, \ - 0x0e, \ - 0x0d, \ - 0x0c, \ - 0x0b, \ - 0x0a, \ - 0x09, \ - 0x08, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + } +#define FNV_B64_2D \ + { \ 0x17, \ - 0x16, \ - 0x15, \ - 0x14, \ - 0x13, \ - 0x12, \ - 0x11, \ - 0x10, \ - 0x1f, \ - 0x1e, \ - 0x1d, \ - 0x1c, \ - 0x1b, \ - 0x1a, \ - 0x19, \ - 0x18, \ - 0x27, \ - 0x26, \ - 0x25, \ - 0x24, \ - 0x23, \ - 0x22, \ - 0x21, \ - 0x20, \ - 0x2f, \ - 0x2e, \ - 0x2d, \ - 0x2c, \ - 0x2b, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + } +#define FNV_B64_2E \ + { \ 0x2a, \ - 0x29, \ - 0x28, \ - 0x37, \ - 0x36, \ - 0x35, \ - 0x34, \ - 0x33, \ - 0x32, \ - 0x31, \ - 0x30, \ - 0x3f, \ - 0x3e, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + } +#define FNV_B64_2F \ + { \ 0x3d, \ - 0x3c, \ - 0x3b, \ - 0x3a, \ - 0x39, \ - 0x38, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ } -#define FNV_B64_3E \ +#define FNV_B64_30 \ { \ - 0x1a, \ - 0x1b, \ - 0x18, \ - 0x19, \ - 0x1e, \ - 0x1f, \ - 0x1c, \ - 0x1d, \ - 0x12, \ - 0x13, \ 0x10, \ - 0x11, \ - 0x16, \ - 0x17, \ - 0x14, \ - 0x15, \ - 0x0a, \ - 0x0b, \ - 0x08, \ - 0x09, \ - 0x0e, \ - 0x0f, \ - 0x0c, \ - 0x0d, \ - 0x02, \ - 0x03, \ - 0x00, \ - 0x01, \ - 0x06, \ - 0x07, \ - 0x04, \ - 0x05, \ - 0x3a, \ - 0x3b, \ - 0x38, \ - 0x39, \ - 0x3e, \ - 0x3f, \ - 0x3c, \ - 0x3d, \ - 0x32, \ - 0x33, \ - 0x30, \ - 0x31, \ - 0x36, \ - 0x37, \ - 0x34, \ - 0x35, \ - 0x2a, \ - 0x2b, \ - 0x28, \ - 0x29, \ - 0x2e, \ - 0x2f, \ - 0x2c, \ - 0x2d, \ - 0x22, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + } +#define FNV_B64_31 \ + { \ 0x23, \ - 0x20, \ - 0x21, \ - 0x26, \ - 0x27, \ - 0x24, \ - 0x25, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ } -#define FNV_B64_3F \ +#define FNV_B64_32 \ + { \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + } +#define FNV_B64_33 \ + { \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + } +#define FNV_B64_34 \ + { \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + } +#define FNV_B64_35 \ { \ - 0x2d, \ - 0x2c, \ 0x2f, \ - 0x2e, \ - 0x29, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + } +#define FNV_B64_36 \ + { \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + } +#define FNV_B64_37 \ + { \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + } +#define FNV_B64_38 \ + { \ 0x28, \ - 0x2b, \ - 0x2a, \ - 0x25, \ - 0x24, \ - 0x27, \ - 0x26, \ - 0x21, \ - 0x20, \ - 0x23, \ - 0x22, \ - 0x3d, \ - 0x3c, \ - 0x3f, \ - 0x3e, \ - 0x39, \ - 0x38, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + } +#define FNV_B64_39 \ + { \ 0x3b, \ - 0x3a, \ - 0x35, \ - 0x34, \ - 0x37, \ - 0x36, \ - 0x31, \ - 0x30, \ - 0x33, \ - 0x32, \ - 0x0d, \ - 0x0c, \ - 0x0f, \ + 0x3a, \ + 0x39, \ + 0x38, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x07, \ + 0x06, \ + 0x05, \ + 0x04, \ + } +#define FNV_B64_3A \ + { \ 0x0e, \ - 0x09, \ - 0x08, \ - 0x0b, \ - 0x0a, \ - 0x05, \ - 0x04, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x1a, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + } +#define FNV_B64_3B \ + { \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + } +#define FNV_B64_3C \ + { \ + 0x34, \ + 0x35, \ + 0x36, \ + 0x37, \ + 0x30, \ + 0x31, \ + 0x32, \ + 0x33, \ + 0x3c, \ + 0x3d, \ + 0x3e, \ + 0x3f, \ + 0x38, \ + 0x39, \ + 0x3a, \ + 0x3b, \ + 0x24, \ + 0x25, \ + 0x26, \ + 0x27, \ + 0x20, \ + 0x21, \ + 0x22, \ + 0x23, \ + 0x2c, \ + 0x2d, \ + 0x2e, \ + 0x2f, \ + 0x28, \ + 0x29, \ + 0x2a, \ + 0x2b, \ + 0x14, \ + 0x15, \ + 0x16, \ + 0x17, \ + 0x10, \ + 0x11, \ + 0x12, \ + 0x13, \ + 0x1c, \ + 0x1d, \ + 0x1e, \ + 0x1f, \ + 0x18, \ + 0x19, \ + 0x1a, \ + 0x1b, \ + 0x04, \ + 0x05, \ + 0x06, \ + 0x07, \ + 0x00, \ + 0x01, \ + 0x02, \ + 0x03, \ + 0x0c, \ + 0x0d, \ + 0x0e, \ + 0x0f, \ + 0x08, \ + 0x09, \ + 0x0a, \ + 0x0b, \ + } +#define FNV_B64_3D \ + { \ 0x07, \ - 0x06, \ - 0x01, \ - 0x00, \ - 0x03, \ - 0x02, \ - 0x1d, \ - 0x1c, \ - 0x1f, \ - 0x1e, \ - 0x19, \ - 0x18, \ - 0x1b, \ + 0x06, \ + 0x05, \ + 0x04, \ + 0x03, \ + 0x02, \ + 0x01, \ + 0x00, \ + 0x0f, \ + 0x0e, \ + 0x0d, \ + 0x0c, \ + 0x0b, \ + 0x0a, \ + 0x09, \ + 0x08, \ + 0x17, \ + 0x16, \ + 0x15, \ + 0x14, \ + 0x13, \ + 0x12, \ + 0x11, \ + 0x10, \ + 0x1f, \ + 0x1e, \ + 0x1d, \ + 0x1c, \ + 0x1b, \ + 0x1a, \ + 0x19, \ + 0x18, \ + 0x27, \ + 0x26, \ + 0x25, \ + 0x24, \ + 0x23, \ + 0x22, \ + 0x21, \ + 0x20, \ + 0x2f, \ + 0x2e, \ + 0x2d, \ + 0x2c, \ + 0x2b, \ + 0x2a, \ + 0x29, \ + 0x28, \ + 0x37, \ + 0x36, \ + 0x35, \ + 0x34, \ + 0x33, \ + 0x32, \ + 0x31, \ + 0x30, \ + 0x3f, \ + 0x3e, \ + 0x3d, \ + 0x3c, \ + 0x3b, \ + 0x3a, \ + 0x39, \ + 0x38, \ + } +#define FNV_B64_3E \ + { \ 0x1a, \ - 0x15, \ - 0x14, \ - 0x17, \ - 0x16, \ - 0x11, \ - 0x10, \ - 0x13, \ - 0x12, \ + 0x1b, \ + 0x18, \ + 0x19, \ + 0x1e, \ + 0x1f, \ + 0x1c, \ + 0x1d, \ + 0x12, \ + 0x13, \ + 0x10, \ + 0x11, \ + 0x16, \ + 0x17, \ + 0x14, \ + 0x15, \ + 0x0a, \ + 0x0b, \ + 0x08, \ + 0x09, \ + 0x0e, \ + 0x0f, \ + 0x0c, \ + 0x0d, \ + 0x02, \ + 0x03, \ + 0x00, \ + 0x01, \ + 0x06, \ + 0x07, \ + 0x04, \ + 0x05, \ + 0x3a, \ + 0x3b, \ + 0x38, \ + 0x39, \ + 0x3e, \ + 0x3f, \ + 0x3c, \ + 0x3d, \ + 0x32, \ + 0x33, \ + 0x30, \ + 0x31, \ + 0x36, \ + 0x37, \ + 0x34, \ + 0x35, \ + 0x2a, \ + 0x2b, \ + 0x28, \ + 0x29, \ + 0x2e, \ + 0x2f, \ + 0x2c, \ + 0x2d, \ + 0x22, \ + 0x23, \ + 0x20, \ + 0x21, \ + 0x26, \ + 0x27, \ + 0x24, \ + 0x25, \ + } +#define FNV_B64_3F \ + { \ + 0x2d, \ + 0x2c, \ + 0x2f, \ + 0x2e, \ + 0x29, \ + 0x28, \ + 0x2b, \ + 0x2a, \ + 0x25, \ + 0x24, \ + 0x27, \ + 0x26, \ + 0x21, \ + 0x20, \ + 0x23, \ + 0x22, \ + 0x3d, \ + 0x3c, \ + 0x3f, \ + 0x3e, \ + 0x39, \ + 0x38, \ + 0x3b, \ + 0x3a, \ + 0x35, \ + 0x34, \ + 0x37, \ + 0x36, \ + 0x31, \ + 0x30, \ + 0x33, \ + 0x32, \ + 0x0d, \ + 0x0c, \ + 0x0f, \ + 0x0e, \ + 0x09, \ + 0x08, \ + 0x0b, \ + 0x0a, \ + 0x05, \ + 0x04, \ + 0x07, \ + 0x06, \ + 0x01, \ + 0x00, \ + 0x03, \ + 0x02, \ + 0x1d, \ + 0x1c, \ + 0x1f, \ + 0x1e, \ + 0x19, \ + 0x18, \ + 0x1b, \ + 0x1a, \ + 0x15, \ + 0x14, \ + 0x17, \ + 0x16, \ + 0x11, \ + 0x10, \ + 0x13, \ + 0x12, \ } #endif /* FNV_HASH_H */ diff --git a/librz/hash/p/algo_crca.c b/librz/hash/p/algo_crca.c index e2973753643..14079ea249a 100644 --- a/librz/hash/p/algo_crca.c +++ b/librz/hash/p/algo_crca.c @@ -25,7 +25,7 @@ #define plugin_crca_preset_small_block(crcalgo, preset) \ static bool plugin_crca_##crcalgo##_small_block(const ut8 *data, ut64 size, ut8 **digest, RzHashSize *digest_size) { \ - rz_return_val_if_fail(data && digest, false); \ + rz_return_val_if_fail(data &&digest, false); \ RzCrc ctx; \ crc_init_preset(&ctx, preset); \ ut8 *dgst = malloc(plugin_crca_digest_size(&ctx)); \ diff --git a/librz/hash/p/algo_fletcher.c b/librz/hash/p/algo_fletcher.c index b7ee998a181..6224d916b2e 100644 --- a/librz/hash/p/algo_fletcher.c +++ b/librz/hash/p/algo_fletcher.c @@ -30,21 +30,21 @@ #define rz_fletcher_common_plugin_update(bits) \ static bool plugin_fletcher##bits##_update(void *context, const ut8 *data, ut64 size) { \ - rz_return_val_if_fail(context && data, false); \ + rz_return_val_if_fail(context &&data, false); \ rz_fletcher##bits##_update((RzFletcher##bits *)context, data, size); \ return true; \ } #define rz_fletcher_common_plugin_final(bits) \ static bool plugin_fletcher##bits##_final(void *context, ut8 *digest) { \ - rz_return_val_if_fail(context && digest, false); \ + rz_return_val_if_fail(context &&digest, false); \ rz_fletcher##bits##_final(digest, (RzFletcher##bits *)context); \ return true; \ } #define rz_fletcher_common_plugin_small_block(bits) \ static bool plugin_fletcher##bits##_small_block(const ut8 *data, ut64 size, ut8 **digest, RzHashSize *digest_size) { \ - rz_return_val_if_fail(data && digest, false); \ + rz_return_val_if_fail(data &&digest, false); \ ut8 *dgst = malloc(RZ_HASH_FLETCHER##bits##_DIGEST_SIZE); \ if (!dgst) { \ return false; \ diff --git a/librz/include/rz_cons.h b/librz/include/rz_cons.h index d215db3cd21..f413a43396d 100644 --- a/librz/include/rz_cons.h +++ b/librz/include/rz_cons.h @@ -768,8 +768,8 @@ typedef struct rz_cons_t { #define Colors_PLAIN \ { \ Color_BLACK, Color_RED, Color_WHITE, \ - Color_GREEN, Color_MAGENTA, Color_YELLOW, \ - Color_CYAN, Color_BLUE, Color_GRAY \ + Color_GREEN, Color_MAGENTA, Color_YELLOW, \ + Color_CYAN, Color_BLUE, Color_GRAY \ } enum { diff --git a/librz/include/rz_types.h b/librz/include/rz_types.h index 9e4e740cd86..4f2bc2e689d 100644 --- a/librz/include/rz_types.h +++ b/librz/include/rz_types.h @@ -218,7 +218,7 @@ extern "C" { typedef int (*PrintfCallback)(const char *str, ...) RZ_PRINTF_CHECK(1, 2); /* compile-time introspection helpers */ -#define CTO(y, z) ((size_t)&((y *)0)->z) +#define CTO(y, z) ((size_t) & ((y *)0)->z) #define CTA(x, y, z) (x + CTO(y, z)) #define CTI(x, y, z) (*((size_t *)(CTA(x, y, z)))) #define CTS(x, y, z, t, v) \ diff --git a/librz/include/rz_util/ht_inc.h b/librz/include/rz_util/ht_inc.h index 4cdff7bbb2d..e5172112c80 100644 --- a/librz/include/rz_util/ht_inc.h +++ b/librz/include/rz_util/ht_inc.h @@ -113,7 +113,8 @@ typedef struct Ht_(kv) { VALUE_TYPE value; ut32 key_len; ut32 value_len; -} HT_(Kv); +} +HT_(Kv); typedef void (*HT_(FiniKv))(HT_(Kv) *kv, void *user); typedef KEY_TYPE (*HT_(DupKey))(const KEY_TYPE); @@ -128,7 +129,8 @@ typedef bool (*HT_(ForeachCallback))(void *user, const KEY_TYPE, const VALUE_TYP typedef struct Ht_(bucket_t) { HT_(Kv) *arr; ut32 count; -} HT_(Bucket); +} +HT_(Bucket); /** * Options contain all the settings of the hashtable. @@ -153,7 +155,8 @@ typedef struct Ht_(options_t) { void *finiKV_user; ///< RZ_NULLABLE. User data which is passed into finiKV. size_t elem_size; ///< Size of each HtKv element (useful for subclassing like SdbKv). ///< Zero value means to use default size of HtKv. -} HT_(Options); +} +HT_(Options); /* Ht is the hashtable structure */ typedef struct Ht_(t) { @@ -162,21 +165,24 @@ typedef struct Ht_(t) { HT_(Bucket) *table; ///< Actual table. ut32 prime_idx; HT_(Options) opt; -} HtName_(Ht); +} +HtName_(Ht); typedef struct Ht_(iter_mut_t) { HtName_(Ht) *ht; ///< The hash table to iterate over. ut32 ti; ///< Table index ut32 bi; ///< Bucket index HT_(Kv) *kv; ///< Current Key-Value-pair. -} HT_(IterMutState); +} +HT_(IterMutState); typedef struct Ht_(iter_t) { const HtName_(Ht) *ht; ///< The hash table to iterate over. ut32 ti; ///< Table index ut32 bi; ///< Bucket index const HT_(Kv) *kv; ///< Current Key-Value-pair. -} HT_(IterState); +} +HT_(IterState); // Create a new Ht with the provided Options RZ_API RZ_OWN HtName_(Ht) *Ht_(new_opt)(RZ_NONNULL HT_(Options) *opt); diff --git a/librz/include/rz_util/rz_buf.h b/librz/include/rz_util/rz_buf.h index e232e570634..60fca808ebb 100644 --- a/librz/include/rz_util/rz_buf.h +++ b/librz/include/rz_util/rz_buf.h @@ -188,7 +188,7 @@ static inline st64 rz_buf_sleb128_at(RzBuffer *b, ut64 addr, st64 *v) { #define DEFINE_RZ_BUF_READ_BLE(size) \ static inline bool rz_buf_read_ble##size(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut##size *result, bool big_endian) { \ - rz_return_val_if_fail(b && result, false); \ + rz_return_val_if_fail(b &&result, false); \ \ ut8 tmp[sizeof(ut##size)]; \ if (rz_buf_read(b, tmp, sizeof(tmp)) != sizeof(tmp)) { \ @@ -200,7 +200,7 @@ static inline st64 rz_buf_sleb128_at(RzBuffer *b, ut64 addr, st64 *v) { } \ \ static inline bool rz_buf_read_ble##size##_at(RZ_NONNULL RzBuffer *b, ut64 addr, RZ_NONNULL RZ_OUT ut##size *result, bool big_endian) { \ - rz_return_val_if_fail(b && result, false); \ + rz_return_val_if_fail(b &&result, false); \ \ ut8 tmp[sizeof(ut##size)]; \ if (rz_buf_read_at(b, addr, tmp, sizeof(tmp)) != sizeof(tmp)) { \ @@ -254,7 +254,7 @@ DEFINE_RZ_BUF_WRITE_BLE(128) #define DEFINE_RZ_BUF_READ_OFFSET_BLE(size) \ static inline bool rz_buf_read_ble##size##_offset(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_INOUT ut64 *offset, RZ_NONNULL RZ_OUT ut##size *result, bool big_endian) { \ - rz_return_val_if_fail(b && offset && result, false); \ + rz_return_val_if_fail(b &&offset &&result, false); \ if (!rz_buf_read_ble##size##_at(b, *offset, result, big_endian)) { \ return false; \ } \ @@ -273,7 +273,7 @@ static inline bool rz_buf_read_offset(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_INOU #define DEFINE_RZ_BUF_WRITE_OFFSET_BLE(size) \ static inline bool rz_buf_write_ble##size##_offset(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_INOUT ut64 *offset, ut##size value, bool big_endian) { \ - rz_return_val_if_fail(b && offset, false); \ + rz_return_val_if_fail(b &&offset, false); \ if (!rz_buf_write_ble##size##_at(b, *offset, value, big_endian)) { \ return false; \ } \ diff --git a/librz/io/p/io_self.c b/librz/io/p/io_self.c index 8ff05e6838d..d9d09cfd1da 100644 --- a/librz/io/p/io_self.c +++ b/librz/io/p/io_self.c @@ -389,14 +389,14 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { rz_sys_dlclose(lib); } if (argc == 1) { - size_t (*cb)() = (size_t (*)())cbptr; + size_t (*cb)() = (size_t(*)())cbptr; if (cb) { result = cb(); } else { eprintf("No callback defined\n"); } } else if (argc == 2) { - size_t (*cb)(size_t a0) = (size_t (*)(size_t))cbptr; + size_t (*cb)(size_t a0) = (size_t(*)(size_t))cbptr; if (cb) { ut64 a0 = rz_num_math(NULL, rz_str_word_get0(argv, 1)); result = cb(a0); @@ -404,7 +404,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { eprintf("No callback defined\n"); } } else if (argc == 3) { - size_t (*cb)(size_t a0, size_t a1) = (size_t (*)(size_t, size_t))cbptr; + size_t (*cb)(size_t a0, size_t a1) = (size_t(*)(size_t, size_t))cbptr; ut64 a0 = rz_num_math(NULL, rz_str_word_get0(argv, 1)); ut64 a1 = rz_num_math(NULL, rz_str_word_get0(argv, 2)); if (cb) { @@ -414,7 +414,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { } } else if (argc == 4) { size_t (*cb)(size_t a0, size_t a1, size_t a2) = - (size_t (*)(size_t, size_t, size_t))cbptr; + (size_t(*)(size_t, size_t, size_t))cbptr; ut64 a0 = rz_num_math(NULL, rz_str_word_get0(argv, 1)); ut64 a1 = rz_num_math(NULL, rz_str_word_get0(argv, 2)); ut64 a2 = rz_num_math(NULL, rz_str_word_get0(argv, 3)); @@ -425,7 +425,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { } } else if (argc == 5) { size_t (*cb)(size_t a0, size_t a1, size_t a2, size_t a3) = - (size_t (*)(size_t, size_t, size_t, size_t))cbptr; + (size_t(*)(size_t, size_t, size_t, size_t))cbptr; ut64 a0 = rz_num_math(NULL, rz_str_word_get0(argv, 1)); ut64 a1 = rz_num_math(NULL, rz_str_word_get0(argv, 2)); ut64 a2 = rz_num_math(NULL, rz_str_word_get0(argv, 3)); @@ -437,7 +437,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { } } else if (argc == 6) { size_t (*cb)(size_t a0, size_t a1, size_t a2, size_t a3, size_t a4) = - (size_t (*)(size_t, size_t, size_t, size_t, size_t))cbptr; + (size_t(*)(size_t, size_t, size_t, size_t, size_t))cbptr; ut64 a0 = rz_num_math(NULL, rz_str_word_get0(argv, 1)); ut64 a1 = rz_num_math(NULL, rz_str_word_get0(argv, 2)); ut64 a2 = rz_num_math(NULL, rz_str_word_get0(argv, 3)); diff --git a/librz/type/format.c b/librz/type/format.c index 86d70a108e7..a5269690931 100644 --- a/librz/type/format.c +++ b/librz/type/format.c @@ -1913,7 +1913,7 @@ static char *get_format_type(const char fmt, const char arg) { return type; } -#define MINUSONE ((void *)(size_t)-1) +#define MINUSONE ((void *)(size_t) - 1) #define ISSTRUCT (tmp == '?' || (tmp == '*' && *(arg + 1) == '?')) RZ_API const char *rz_type_db_format_get(const RzTypeDB *typedb, const char *name) { diff --git a/librz/util/asn1_oids.h b/librz/util/asn1_oids.h index 14773865d42..09fe294c89c 100644 --- a/librz/util/asn1_oids.h +++ b/librz/util/asn1_oids.h @@ -11,7 +11,8 @@ typedef struct asn1_oid_list_entry_t { } ASN1OidListEntry; ASN1OidListEntry known_oid_list[] = { -#define DEFINE_OID(oid, name) { oid, (sizeof(oid) - 1), name } +#define DEFINE_OID(oid, name) \ + { oid, (sizeof(oid) - 1), name } DEFINE_OID("0.2.262.1.10", "Telesec"), DEFINE_OID("0.2.262.1.10.0", "extension"), diff --git a/librz/util/mem.c b/librz/util/mem.c index df3aa90ef27..58d2f491080 100644 --- a/librz/util/mem.c +++ b/librz/util/mem.c @@ -327,7 +327,7 @@ RZ_API void rz_mem_memzero(void *dst, size_t l) { #else memset(dst, 0, l); __asm__ volatile("" ::"r"(dst) - : "memory"); + : "memory"); #endif #endif } diff --git a/librz/util/sdb/src/text.c b/librz/util/sdb/src/text.c index 9f73dcde3d7..72734bd82e1 100644 --- a/librz/util/sdb/src/text.c +++ b/librz/util/sdb/src/text.c @@ -107,10 +107,10 @@ static void write_path(int fd, RzList /**/ *path) { write_(fd, "/", 1); } ESCAPE_LOOP(fd, path_token, - ESCAPE('\\', "\\", 1); - ESCAPE('/', "/", 1); - ESCAPE('\n', "n", 1); - ESCAPE('\r', "r", 1);); + ESCAPE('\\', "\\", 1); + ESCAPE('/', "/", 1); + ESCAPE('\n', "n", 1); + ESCAPE('\r', "r", 1);); } } @@ -120,17 +120,17 @@ static void write_key(int fd, const char *k) { write_(fd, "\\", 1); } ESCAPE_LOOP(fd, k, - ESCAPE('\\', "\\", 1); - ESCAPE('=', "=", 1); - ESCAPE('\n', "n", 1); - ESCAPE('\r', "r", 1);); + ESCAPE('\\', "\\", 1); + ESCAPE('=', "=", 1); + ESCAPE('\n', "n", 1); + ESCAPE('\r', "r", 1);); } static void write_value(int fd, const char *v) { ESCAPE_LOOP(fd, v, - ESCAPE('\\', "\\", 1); - ESCAPE('\n', "n", 1); - ESCAPE('\r', "r", 1);); + ESCAPE('\\', "\\", 1); + ESCAPE('\n', "n", 1); + ESCAPE('\r', "r", 1);); } #undef FLUSH #undef ESCAPE_LOOP diff --git a/librz/util/sys.c b/librz/util/sys.c index 9769176a5d5..c5ee77a82b7 100644 --- a/librz/util/sys.c +++ b/librz/util/sys.c @@ -129,8 +129,8 @@ RZ_LIB_VERSION(rz_util); #else #define RZ_SYS_ASM_START_ROP() \ __asm__ __volatile__("leaq %0, %%rsp; ret" \ - : \ - : "m"(*bufptr)); + : \ + : "m"(*bufptr)); #endif #elif __i386__ #ifdef _MSC_VER @@ -142,8 +142,8 @@ RZ_LIB_VERSION(rz_util); #else #define RZ_SYS_ASM_START_ROP() \ __asm__ __volatile__("leal %0, %%esp; ret" \ - : \ - : "m"(*bufptr)); + : \ + : "m"(*bufptr)); #endif #else #define RZ_SYS_ASM_START_ROP() \ diff --git a/subprojects/rzqnx/include/core.h b/subprojects/rzqnx/include/core.h index 9841f97937a..fcaf19d748b 100644 --- a/subprojects/rzqnx/include/core.h +++ b/subprojects/rzqnx/include/core.h @@ -20,7 +20,7 @@ #include "arch.h" #ifndef offsetof -#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) +#define offsetof(TYPE, MEMBER) ((size_t) & ((TYPE *)0)->MEMBER) #endif enum Breakpoint { diff --git a/test/unit/test_bitvector.c b/test/unit/test_bitvector.c index 4b221ad07e4..fc2c3bb2f1f 100644 --- a/test/unit/test_bitvector.c +++ b/test/unit/test_bitvector.c @@ -192,8 +192,8 @@ bool test_rz_bv_logic_large(void) { // Expected const char *not = "0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0"; // ~x const char *and = "0x00010001000100010001000100010001"; // x & y - const char *or = "0x101112131415161718191a1b1c1d1e1f"; // x | z - const char *xor = "0x010003020504070609080b0a0d0c0f0e"; // x ^ y + const char * or = "0x101112131415161718191a1b1c1d1e1f"; // x | z + const char * xor = "0x010003020504070609080b0a0d0c0f0e"; // x ^ y const char *neg = "0xfffefdfcfbfaf9f8f7f6f5f4f3f2f1f1"; // -x x = rz_bv_new_from_bytes_be(array_128, 0, 128); @@ -229,7 +229,7 @@ bool test_rz_bv_logic_large(void) { bool test_rz_bv_logic(void) { RzBitVector *x, *y; RzBitVector *result; - RzBitVector *and, *or, *xor, *neg, *not, *ls, *rs, *ls_fill, *rs_fill; + RzBitVector *and, * or, *xor, *neg, *not, *ls, *rs, *ls_fill, *rs_fill; // x : 0101 0101 x = rz_bv_new(8); @@ -317,9 +317,9 @@ bool test_rz_bv_logic(void) { rz_bv_free(xor); result = rz_bv_not(x); - mu_assert("not x", is_equal_bv(result, not)); + mu_assert("not x", is_equal_bv(result, not )); rz_bv_free(result); - rz_bv_free(not); + rz_bv_free(not ); result = rz_bv_neg(x); mu_assert("neg x", is_equal_bv(result, neg)); diff --git a/test/unit/test_debug.c b/test/unit/test_debug.c index 92c4fd87782..ba84bd8bc82 100644 --- a/test/unit/test_debug.c +++ b/test/unit/test_debug.c @@ -7,7 +7,7 @@ #include #ifndef offsetof -#define offsetof(type, field) ((size_t)&((type *)0)->field) +#define offsetof(type, field) ((size_t) & ((type *)0)->field) #endif #endif //__linux__