From 06d1877811fa6aa97dddc0e03bcde4e766928c87 Mon Sep 17 00:00:00 2001 From: vovanec Date: Thu, 7 Feb 2008 13:36:34 +0000 Subject: new directory structure git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@232 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/equ/iir.h | 84 ----------------------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 lib/equ/iir.h (limited to 'lib/equ/iir.h') diff --git a/lib/equ/iir.h b/lib/equ/iir.h deleted file mode 100644 index e7ea5ef1a..000000000 --- a/lib/equ/iir.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * PCM time-domain equalizer - * - * Copyright (C) 2002-2005 Felipe Rivera - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: iir.h,v 1.12 2005/10/17 01:57:59 liebremx Exp $ - */ -#ifndef IIR_H -#define IIR_H - -//#include -//#include "main.h" -#include "iir_cfs.h" - -/* - * Flush-to-zero to avoid flooding the CPU with underflow exceptions - */ -#ifdef SSE_MATH -#define FTZ 0x8000 -#define FTZ_ON { \ - unsigned int mxcsr; \ - __asm__ __volatile__ ("stmxcsr %0" : "=m" (*&mxcsr)); \ - mxcsr |= FTZ; \ - __asm__ __volatile__ ("ldmxcsr %0" : : "m" (*&mxcsr)); \ -} -#define FTZ_OFF { \ - unsigned int mxcsr; \ - __asm__ __volatile__ ("stmxcsr %0" : "=m" (*&mxcsr)); \ - mxcsr &= ~FTZ; \ - __asm__ __volatile__ ("ldmxcsr %0" : : "m" (*&mxcsr)); \ -} -#else -#define FTZ_ON -#define FTZ_OFF -#endif - -/* - * Function prototypes - */ -void init_iir(); -void clean_history(); -void set_gain(int index, int chn, float val); -void set_preamp(int chn, float val); - - - int iir(void * d, int length, int nch); - -#ifdef ARCH_X86 -__inline__ int round_trick(float floatvalue_to_round); -#endif -#ifdef ARCH_PPC -__inline__ int round_ppc(float x); -#endif - -#define EQ_CHANNELS 2 -#define EQ_MAX_BANDS 10 - -extern float preamp[EQ_CHANNELS]; -extern sIIRCoefficients *iir_cf; -extern int rate; -extern int band_count; - -#ifdef BENCHMARK -extern double timex; -extern int count; -extern unsigned int blength; -#endif - -#endif /* #define IIR_H */ - -- cgit v1.2.3-13-gbd6f