27 #ifndef XDP_TEA_F_FK_H
28 #define XDP_TEA_F_FK_H
31 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
32 uint32_t lsh_const, uint32_t rsh_const);
35 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
36 uint32_t lsh_const, uint32_t rsh_const);
39 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
40 uint32_t lsh_const, uint32_t rsh_const);
42 bool xdp_f_is_sat(
const uint32_t mask_i,
const uint32_t lsh_const,
const uint32_t rsh_const,
43 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
44 const uint32_t dx,
const uint32_t dy, int32_t x);
47 bool xdp_f_check_x(
const uint32_t lsh_const,
const uint32_t rsh_const,
48 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
49 const uint32_t dx,
const uint32_t dy,
const uint32_t x);
51 uint32_t
xdp_f_assign_bit_x(
const uint32_t n,
const uint32_t i,
const uint32_t mask_i,
const uint32_t x,
52 const uint32_t lsh_const,
const uint32_t rsh_const,
53 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
54 const uint32_t dx,
const uint32_t dy, uint32_t* x_cnt,
double* prob);
56 double xdp_f_fk(
const uint32_t n,
const uint32_t dx,
const uint32_t dy,
57 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
58 const uint32_t lsh_const,
const uint32_t rsh_const);
60 uint32_t
xdp_f_assign_bit_x_dx(
const uint32_t n,
const uint32_t i,
const uint32_t mask_i,
const uint32_t x,
61 const uint32_t lsh_const,
const uint32_t rsh_const,
62 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
63 const uint32_t dx,
const uint32_t dy, uint64_t* x_cnt,
64 double* ret_prob, uint32_t* ret_dx);
66 double max_dx_xdp_f_fk(
const uint32_t n, uint32_t* ret_dx,
const uint32_t dy,
67 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
68 const uint32_t lsh_const,
const uint32_t rsh_const);
70 uint32_t
xdp_f_assign_bit_x_dy(
const uint32_t n,
const uint32_t i,
const uint32_t mask_i,
const uint32_t x,
71 const uint32_t lsh_const,
const uint32_t rsh_const,
72 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
73 const uint32_t dx,
const uint32_t dy, uint64_t* x_cnt,
74 double* ret_prob, uint32_t* ret_dy);
76 double max_dy_xdp_f_fk(
const uint32_t n,
const uint32_t dx, uint32_t* ret_dy,
77 const uint32_t k0,
const uint32_t k1,
const uint32_t delta,
78 const uint32_t lsh_const,
const uint32_t rsh_const);
80 #endif // #ifndef XDP_TEA_F_FK_H
double max_xdp_f_fk_dy_exper(const uint32_t dx, uint32_t *max_dy, const uint32_t k0, const uint32_t k1, const uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:131
bool xdp_f_check_x(const uint32_t lsh_const, const uint32_t rsh_const, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t dx, const uint32_t dy, const uint32_t x)
Definition: xdp-tea-f-fk.cc:205
double max_dx_xdp_f_fk(const uint32_t n, uint32_t *ret_dx, const uint32_t dy, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t lsh_const, const uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:457
uint32_t xdp_f_assign_bit_x_dx(const uint32_t n, const uint32_t i, const uint32_t mask_i, const uint32_t x, const uint32_t lsh_const, const uint32_t rsh_const, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t dx, const uint32_t dy, uint64_t *x_cnt, double *ret_prob, uint32_t *ret_dx)
Definition: xdp-tea-f-fk.cc:372
double max_xdp_f_fk_dx_exper(uint32_t *max_dx, const uint32_t dy, const uint32_t k0, const uint32_t k1, const uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:96
uint32_t xdp_f_assign_bit_x(const uint32_t n, const uint32_t i, const uint32_t mask_i, const uint32_t x, const uint32_t lsh_const, const uint32_t rsh_const, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t dx, const uint32_t dy, uint32_t *x_cnt, double *prob)
Definition: xdp-tea-f-fk.cc:243
double max_dy_xdp_f_fk(const uint32_t n, const uint32_t dx, uint32_t *ret_dy, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t lsh_const, const uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:637
bool xdp_f_is_sat(const uint32_t mask_i, const uint32_t lsh_const, const uint32_t rsh_const, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t dx, const uint32_t dy, int32_t x)
Definition: xdp-tea-f-fk.cc:172
double xdp_f_fk_exper(const uint32_t da, const uint32_t db, const uint32_t k0, const uint32_t k1, const uint32_t delta, uint32_t lsh_const, uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:53
double xdp_f_fk(const uint32_t n, const uint32_t dx, const uint32_t dy, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t lsh_const, const uint32_t rsh_const)
Definition: xdp-tea-f-fk.cc:307
uint32_t xdp_f_assign_bit_x_dy(const uint32_t n, const uint32_t i, const uint32_t mask_i, const uint32_t x, const uint32_t lsh_const, const uint32_t rsh_const, const uint32_t k0, const uint32_t k1, const uint32_t delta, const uint32_t dx, const uint32_t dy, uint64_t *x_cnt, double *ret_prob, uint32_t *ret_dy)
Definition: xdp-tea-f-fk.cc:552