File: faac_real.h

package info (click to toggle)
faac 1.40-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 664 kB
  • sloc: ansic: 7,401; makefile: 3
file content (53 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * FAAC - Freeware Advanced Audio Coder
 * Copyright (C) 2026 Nils Schimmelmann
 *
 * 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.1 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef FAAC_REAL_H
#define FAAC_REAL_H

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <math.h>

#ifdef FAAC_PRECISION_SINGLE
typedef float faac_real;
#define FAAC_SIN sinf
#define FAAC_COS cosf
#define FAAC_SQRT sqrtf
#define FAAC_FABS fabsf
#define FAAC_LOG10 log10f
#define FAAC_POW powf
#define FAAC_ASIN asinf
#define FAAC_LRINT lrintf
#define FAAC_FLOOR floorf
#else
typedef double faac_real;
#define FAAC_SIN sin
#define FAAC_COS cos
#define FAAC_SQRT sqrt
#define FAAC_FABS fabs
#define FAAC_LOG10 log10
#define FAAC_POW pow
#define FAAC_ASIN asin
#define FAAC_LRINT lrint
#define FAAC_FLOOR floor
#endif

#endif /* FAAC_REAL_H */