kernel_optimize_test/net/dccp/ccids/lib
Gerrit Renker 90fb0e60dd [DCCP] tfrc: Fix small error in reverse lookup of p for given f(p)
This fixes the following small error in tfrc_calc_x_reverse_lookup.

 1) The table is generated by the following equations:
	lookup[index][0] = g((index+1) * 1000000/TFRC_CALC_X_ARRSIZE);
	lookup[index][1] = g((index+1) * TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE);
    where g(q) is 1E6 * f(q/1E6)

 2) The reverse lookup assigns an entry in lookup[index][small]

 3) This index needs to match the above, i.e.
    * if small=0 then

      		p  = (index + 1) * 1000000/TFRC_CALC_X_ARRSIZE

    * if small=1 then

		p = (index+1) * TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE

These are exactly the changes that the patch makes; previously the code did
not conform to the way the lookup table was generated (this difference resulted
in a mean error of about 1.12%).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2006-12-03 14:52:01 -02:00
..
loss_interval.c [DCCP]: Simplified conditions due to use of enum:8 states 2006-12-02 21:24:38 -08:00
loss_interval.h [DCCP]: Fix CCID3 2006-08-26 23:40:50 -07:00
Makefile [DCCP]: Move the calc_X routines to dccp_tfrc_lib 2005-08-29 16:12:47 -07:00
packet_history.c [DCCP]: Fix CCID3 2006-08-26 23:40:50 -07:00
packet_history.h [DCCP]: Fix CCID3 2006-08-26 23:40:50 -07:00
tfrc_equation.c [DCCP] tfrc: Fix small error in reverse lookup of p for given f(p) 2006-12-03 14:52:01 -02:00
tfrc.h [DCCP]: Update contact details and copyright 2006-08-26 19:01:30 -07:00