P4C
The P4 Compiler
Loading...
Searching...
No Matches
hash_calc_rotate_info Struct Reference

#include <dynamic_hash.h>

Public Attributes

uint32_t * gfm_bit_posn
 
uint32_t num_hash_bits
 
uint32_t * p4_hash_output_bit_posn
 
uint64_t rotate
 

Detailed Description

Represents the hash bit ranges and rotation of hash output rotate - bits by which the hash has to be rotated num_hash_bits - number of hash bits in the hash function gfm_bit_posn - pointer to array of bits in the range of the 52 bit GFM. Size is num_hash_bits. Contains the columns corresponding to the p4_hash_output_bit_posn value at the same index. p4_hash_output_bit_posn - pointer to array of the arrangement of the p4 hash output bits. Size is num_hash_bits. Contains the bit position of the p4 hash ouput bits indexed by the num_hash_bits.

Member Data Documentation

◆ gfm_bit_posn

uint32_t* hash_calc_rotate_info::gfm_bit_posn

◆ num_hash_bits

uint32_t hash_calc_rotate_info::num_hash_bits

◆ p4_hash_output_bit_posn

uint32_t* hash_calc_rotate_info::p4_hash_output_bit_posn

◆ rotate

uint64_t hash_calc_rotate_info::rotate