[xiph-cvs] cvs commit: speex/libspeex math_approx.c

Jean-Marc Valin jm at xiph.org
Thu Nov 6 01:14:53 PST 2003



jm          03/11/06 04:14:53

  Modified:    libspeex math_approx.c
  Log:
  ...

Revision  Changes    Path
1.6       +3 -0      speex/libspeex/math_approx.c

Index: math_approx.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/math_approx.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- math_approx.c	6 Nov 2003 08:41:56 -0000	1.5
+++ math_approx.c	6 Nov 2003 09:14:53 -0000	1.6
@@ -35,6 +35,7 @@
 
 #ifdef FIXED_POINT
 
+/* sqrt(x) ~= 0.22178 + 1.29227*x - 0.77070*x^2 + 0.25723*x^3 (for .25 < x < 1) */
 #define C0 3634
 #define C1 21173
 #define C2 -12627
@@ -84,4 +85,6 @@
    return rt;
 }
 
+/* log(x) ~= -2.18151 + 4.20592*x - 2.88938*x^2 + 0.86535*x^3 (for .5 < x < 1) */
+
 #endif

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list