Home | History | Annotate | Download | only in dtv
History log of /src/sys/dev/dtv/dtv_math.c
RevisionDateAuthorComments
 1.5  09-Aug-2011  jmcneill modify the dtv device api so hardware drivers can be loaded independently
of the dtv module
 1.4  16-Jul-2011  apb Reinstate #include <dev/dtv/dtvif.h> which was incorrectly
removed in the previous commit.
 1.3  16-Jul-2011  apb Instead of returning an integer between 0 and 31 (scaled by 1<<24), use
(0.5 + x/2 - 1/x) as an approximation to log2(x) for x from 1 to 2, and
scale the input to fit this range. Now the error is always less than
0.2%.

Also add an test program, hidden behind #ifdef TEST_DTV_MATH, to print
a table of expected and actual results, and the errors.
 1.2  16-Jul-2011  jmcneill add sys/types.h
 1.1  15-Jul-2011  jmcneill add dtv_intlog10 implementation, from apb@

RSS XML Feed