precomp.h File Reference

#include <stdio.h>
#include "arith.h"

Include dependency graph for precomp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  leaf_info_t
struct  precomp

Defines

#define precomp_get_distrib(p, m, t)   ((p).distrib[m][(t) - (p).offset[m]])

Typedefs

typedef struct precomp precomp_t

Functions

double binomial_d (int a, int b)
double log_binomial_d (int a, int b)
void clear_precomp (precomp_t p)
void write_precomp (precomp_t p, FILE *output_stream)
precomp_t precomp_build (int m, int t, int reduc)
double dicho_searchmin (precomp_t p, double min_value)
double * dicho_self_info_bounds (precomp_t p)


Define Documentation

#define precomp_get_distrib ( p,
m,
 )     ((p).distrib[m][(t) - (p).offset[m]])


Typedef Documentation

typedef struct precomp precomp_t


Function Documentation

double binomial_d ( int  a,
int  b 
)

Definition at line 125 of file precomp.c.

References bino_d().

Referenced by dicho_si_from_list(), dicho_si_lb_leaf(), dicho_si_leaf(), init_proba(), leaf_info(), and max_si_loss().

Here is the call graph for this function:

void clear_precomp ( precomp_t  p  ) 

Definition at line 727 of file precomp.c.

References precomp::distrib, distrib_clear(), is_leaf(), precomp::m, distrib_t::max, MIN, precomp::offset, and precomp::t.

Referenced by main().

Here is the call graph for this function:

double dicho_searchmin ( precomp_t  p,
double  min_value 
)

Definition at line 459 of file precomp.c.

References clear_tree(), dicho_build_tree(), dicho_si_lb(), precomp::m, min, PREC_INTER, precomp::real_m, precomp::real_t, si_lb, precomp::t, and tree_search().

Referenced by main().

Here is the call graph for this function:

double* dicho_self_info_bounds ( precomp_t  p  ) 

Definition at line 296 of file precomp.c.

References dicho_si(), dicho_si_lb(), EPSILON, precomp::m, precomp::real_m, precomp::real_t, si_lb, and precomp::t.

Referenced by main().

Here is the call graph for this function:

double log_binomial_d ( int  a,
int  b 
)

Definition at line 139 of file precomp.c.

References INFINITY, and log_bino_d().

Referenced by main().

Here is the call graph for this function:

precomp_t precomp_build ( int  m,
int  t,
int  reduc 
)

void write_precomp ( precomp_t  p,
FILE *  output_stream 
)


This work was partially suported by Europian Network of Excellence, ECRYPT; ECRYPT