Classes | Macros | Functions | Variables
gen_hpack_tables.cc File Reference
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <grpc/support/log.h>
#include "src/core/ext/transport/chttp2/transport/huffsyms.h"
Include dependency graph for gen_hpack_tables.cc:

Go to the source code of this file.

Classes

struct  nibblelut
 
struct  symset
 

Macros

#define MAXHUFFSTATES   1024
 
#define NOT_SET   (~(unsigned)0)
 

Functions

static void build_dec_tbl (unsigned state, unsigned nibble, int nibbits, unsigned bitofs, unsigned emit, symset syms)
 
static int ctbl_idx (nibblelut x)
 
static void dump_ctbl (const char *name)
 
static void generate_base64_huff_encoder_table (void)
 
static void generate_huff_tables (void)
 
int main (void)
 
static nibblelut nibblelut_empty (void)
 
static int nsyms (symset s)
 
static unsigned state_index (unsigned bitofs, symset syms, unsigned *isnew)
 
static symset symset_all (void)
 
static symset symset_none (void)
 

Variables

static nibblelut ctbl [MAXHUFFSTATES]
 
struct {
   unsigned   bitofs
 
   nibblelut   emit
 
   nibblelut   next
 
   symset   syms
 
huffstates [MAXHUFFSTATES]
 
static int nctbl
 
static unsigned nhuffstates = 0
 

Macro Definition Documentation

◆ MAXHUFFSTATES

#define MAXHUFFSTATES   1024

Definition at line 33 of file gen_hpack_tables.cc.

◆ NOT_SET

#define NOT_SET   (~(unsigned)0)

Definition at line 40 of file gen_hpack_tables.cc.

Function Documentation

◆ build_dec_tbl()

static void build_dec_tbl ( unsigned  state,
unsigned  nibble,
int  nibbits,
unsigned  bitofs,
unsigned  emit,
symset  syms 
)
static

Definition at line 127 of file gen_hpack_tables.cc.

◆ ctbl_idx()

static int ctbl_idx ( nibblelut  x)
static

Definition at line 183 of file gen_hpack_tables.cc.

◆ dump_ctbl()

static void dump_ctbl ( const char *  name)
static

Definition at line 193 of file gen_hpack_tables.cc.

◆ generate_base64_huff_encoder_table()

static void generate_base64_huff_encoder_table ( void  )
static

Definition at line 227 of file gen_hpack_tables.cc.

◆ generate_huff_tables()

static void generate_huff_tables ( void  )
static

Definition at line 205 of file gen_hpack_tables.cc.

◆ main()

int main ( void  )

Definition at line 242 of file gen_hpack_tables.cc.

◆ nibblelut_empty()

static nibblelut nibblelut_empty ( void  )
static

Definition at line 57 of file gen_hpack_tables.cc.

◆ nsyms()

static int nsyms ( symset  s)
static

Definition at line 68 of file gen_hpack_tables.cc.

◆ state_index()

static unsigned state_index ( unsigned  bitofs,
symset  syms,
unsigned *  isnew 
)
static

Definition at line 95 of file gen_hpack_tables.cc.

◆ symset_all()

static symset symset_all ( void  )
static

Definition at line 43 of file gen_hpack_tables.cc.

◆ symset_none()

static symset symset_none ( void  )
static

Definition at line 50 of file gen_hpack_tables.cc.

Variable Documentation

◆ bitofs

unsigned bitofs

Definition at line 81 of file gen_hpack_tables.cc.

◆ ctbl

nibblelut ctbl[MAXHUFFSTATES]
static

Definition at line 180 of file gen_hpack_tables.cc.

◆ emit

nibblelut emit

Definition at line 88 of file gen_hpack_tables.cc.

◆ huffstates

struct { ... } huffstates[MAXHUFFSTATES]

◆ nctbl

int nctbl
static

Definition at line 181 of file gen_hpack_tables.cc.

◆ next

nibblelut next

Definition at line 86 of file gen_hpack_tables.cc.

◆ nhuffstates

unsigned nhuffstates = 0
static

Definition at line 90 of file gen_hpack_tables.cc.

◆ syms

symset syms

Definition at line 83 of file gen_hpack_tables.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:13