Revision: 55267
          http://sourceforge.net/p/brlcad/code/55267
Author:   carlmoore
Date:     2013-04-29 20:43:13 +0000 (Mon, 29 Apr 2013)
Log Message:
-----------
simplify the programming, and push 'N =' and 'L =' downward

Modified Paths:
--------------
    brlcad/trunk/src/sig/dconv.c

Modified: brlcad/trunk/src/sig/dconv.c
===================================================================
--- brlcad/trunk/src/sig/dconv.c        2013-04-29 20:33:27 UTC (rev 55266)
+++ brlcad/trunk/src/sig/dconv.c        2013-04-29 20:43:13 UTC (rev 55267)
@@ -79,18 +79,18 @@
 int main(int argc, char **argv)
 {
     int        i;
-    int        N, M, L;
+    int M = 128;       /* kernel size */
+    int        N, L;
     FILE       *fp;
     size_t ret;
 
-    M = 128;   /* kernel size */
-    N = 2*M;   /* input sub-section length (fft size) */
-    L = N - M + 1;     /* number of "good" points per section */
-
     if ( argc != 2 || isatty(fileno(stdin)) || isatty(fileno(stdout)) ) {
        bu_exit(1, "Usage: dconv filterfile < doubles > doubles\n       
WARNING: kernel size must be 2^i - 1\n" );
     }
 
+    N = 2*M;   /* input sub-section length (fft size) */
+    L = M + 1; /* number of "good" points per section, simplified from L = N - 
M + 1 */
+
 #ifdef never
     /* prepare the kernel(!) */
     /* this is either the direct complex response,

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to