mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Simplify constant definition
This commit is contained in:
parent
b6da733833
commit
1702321009
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ fn Hash(comptime endian: std.builtin.Endian, comptime shift_key: bool) type {
|
|||
|
||||
// P1 = x^63 + x^62 + x^57 - the reduction polynomial helper for R/F algorithm.
|
||||
// This is (x^127 + x^126 + x^121) >> 64, used for efficient reduction.
|
||||
const p1: u64 = (@as(u64, 1) << 63) | (@as(u64, 1) << 62) | (@as(u64, 1) << 57);
|
||||
const p1: u64 = ((1 << 127) | (1 << 126) | (1 << 121)) >> 64;
|
||||
|
||||
hx: [pc_count]Precomp,
|
||||
rf_hx: [pc_count]RFPrecomp,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue