Thread (5 messages) 5 messages, 2 authors, 2014-12-17

Re: [RFC PATCH] fixp-arith: replace sin/cos table by a better precision one

From: Prashant Laddha (prladdha) <hidden>
Date: 2014-12-17 08:17:40
Also in: linux-media

Thanks for the patch, Mauro.  Just a correction below.
+/* cos(x) = sin(x + pi radians) */
+
This should pi / 2. Correcting for the same below.
+#define fixp_cos32_rad(rad, twopi)	\
+	fixp_sin32_rad(rad + twopi/2, twopi)
          fixp_sin32_rad(rad + twopi/4, twopi)

+
I think this patch will serve the need. I will test it for vivid sir tone
generation. I will rework my patches to use sin/cos functions from
fixp-arith.h.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help