Logo Search packages:      
Sourcecode: aften version File versions  Download package

common.h File Reference

Detailed Description

Aften: A/52 audio encoder Copyright (c) 2006 Justin Ruggles

Based on "The simplest AC3 encoder" from FFmpeg Copyright (c) 2000 Fabrice Bellard.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Common header file

Definition in file common.h.

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include "bswap.h"

Go to the source code of this file.


#define ABS(a)   ((a) >= 0 ? (a) : (-(a)))
#define AFT_COS   cosf
#define AFT_EXP   expf
#define AFT_EXP10(x)   AFT_EXP((x) * AFT_LN10)
#define AFT_FABS   fabsf
#define AFT_LN10   FCONST(2.30258509299404568402)
#define AFT_LOG10   log10f
#define AFT_PI   FCONST(3.14159265358979323846)
#define AFT_SIN   sinf
#define AFT_SQRT   sqrtf
#define AFT_SQRT2   FCONST(1.41421356237309504880)
#define AFT_TAN   tanf
#define ALIGN16(x)   x
#define CDECL
#define CLIP(x, min, max)   MAX(MIN((x), (max)), (min))
#define FCONST(X)   (X##f)
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define MIN(a, b)   ((a) > (b) ? (b) : (a))
#define UNUSED(x)   x


typedef float FLOAT

Generated by  Doxygen 1.6.0   Back to index