[openfirmware] [commit] r2492 - cpu/x86

repository service svn at openfirmware.info
Wed Aug 31 10:22:38 CEST 2011


Author: wmb
Date: Wed Aug 31 10:22:38 2011
New Revision: 2492
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2492

Log:
X86 - Added "upsample6" word to firfilter.fth

Modified:
   cpu/x86/firfilter.fth

Modified: cpu/x86/firfilter.fth
==============================================================================
--- cpu/x86/firfilter.fth	Wed Aug 31 10:21:10 2011	(r2491)
+++ cpu/x86/firfilter.fth	Wed Aug 31 10:22:38 2011	(r2492)
@@ -60,7 +60,7 @@
 \ Convert a decimal fraction to a scaled integer multiplier
 : mul:  ( "coef" -- )
    safe-parse-word  push-decimal $number drop pop-base  ( n )
-   1 mulscale lshift  d# 1,000,000,000 */                         ( n' )
+   1 mulscale lshift  d# 1,000,000,000 */               ( n' )
    ,
 ;
 
@@ -146,6 +146,8 @@
    r> 3drop                               ( )
 ;
 
+: upsample6  ( inbuf /inbuf outbuf -- )  2 8khz>khz  ;
+
 0 [if]
 \ Here is some Matlab/Octave code to compute the weights
 weights = remez(95, [0 .12 .215 1], [1 1 0 0]);



More information about the openfirmware mailing list