2005-02-15 18:29:42 +00:00
|
|
|
/*
|
|
|
|
* libmad - MPEG audio decoder library
|
|
|
|
* Copyright (C) 2000-2004 Underbit Technologies, Inc.
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2008-11-20 11:27:31 +00:00
|
|
|
#include "codeclib.h"
|
2005-02-28 20:55:31 +00:00
|
|
|
|
2005-02-15 18:29:42 +00:00
|
|
|
# ifndef LIBMAD_GLOBAL_H
|
|
|
|
# define LIBMAD_GLOBAL_H
|
|
|
|
|
2007-07-29 16:40:11 +00:00
|
|
|
#include "mad_iram.h"
|
|
|
|
|
2007-05-10 13:16:08 +00:00
|
|
|
#if defined(CPU_COLDFIRE)
|
2005-06-09 14:13:09 +00:00
|
|
|
#define FPM_COLDFIRE_EMAC
|
2007-05-10 13:16:08 +00:00
|
|
|
#elif defined(CPU_ARM)
|
2005-12-16 10:30:22 +00:00
|
|
|
#define FPM_ARM
|
2009-03-10 02:13:35 +00:00
|
|
|
#elif defined(CPU_MIPS)
|
|
|
|
#define FPM_MIPS
|
2005-06-09 14:13:09 +00:00
|
|
|
#else
|
|
|
|
#define FPM_DEFAULT
|
|
|
|
#endif
|
|
|
|
|
2005-02-15 18:29:42 +00:00
|
|
|
/* conditional debugging */
|
|
|
|
|
|
|
|
# if defined(DEBUG) && defined(NDEBUG)
|
|
|
|
# error "cannot define both DEBUG and NDEBUG"
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined(DEBUG)
|
|
|
|
# include <stdio.h>
|
|
|
|
# endif
|
|
|
|
|
|
|
|
/* conditional features */
|
|
|
|
|
|
|
|
# if defined(OPT_SPEED) && defined(OPT_ACCURACY)
|
|
|
|
# error "cannot optimize for both speed and accuracy"
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined(OPT_SPEED) && !defined(OPT_SSO)
|
|
|
|
# define OPT_SSO
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined(HAVE_UNISTD_H) && defined(HAVE_WAITPID) && \
|
|
|
|
defined(HAVE_FCNTL) && defined(HAVE_PIPE) && defined(HAVE_FORK)
|
|
|
|
# define USE_ASYNC
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if !defined(HAVE_ASSERT_H)
|
|
|
|
# if defined(NDEBUG)
|
2010-02-22 19:44:05 +00:00
|
|
|
# define assert(x) /* nothing */
|
2005-02-15 18:29:42 +00:00
|
|
|
# else
|
2010-02-22 19:44:05 +00:00
|
|
|
# define assert(x) do { if (!(x)) abort(); } while (0)
|
2005-02-15 18:29:42 +00:00
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# endif
|