mirror of
https://github.com/xiph/opus.git
synced 2025-05-15 16:08:30 +00:00
Fix --enable-fixed-point-debug.
Use the celt_mips defined in fixed_debug.h from the unit tests by defining CELT_C earlier. We must export celt_mips so it can be used by clients calling the library, like opus_custom_demo.
This commit is contained in:
parent
037918a8fe
commit
cb3cc53014
4 changed files with 5 additions and 12 deletions
|
@ -35,7 +35,8 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#ifdef CELT_C
|
||||
long long celt_mips=0;
|
||||
#include "opus_defines.h"
|
||||
OPUS_EXPORT long long celt_mips=0;
|
||||
#else
|
||||
extern long long celt_mips;
|
||||
#endif
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include "kiss_fft.h"
|
||||
|
||||
#define CELT_C
|
||||
#include "stack_alloc.h"
|
||||
#include "kiss_fft.h"
|
||||
#include "kiss_fft.c"
|
||||
#include "mathops.c"
|
||||
#include "entcode.c"
|
||||
|
@ -22,9 +22,6 @@
|
|||
#define M_PI 3.141592653
|
||||
#endif
|
||||
|
||||
#ifdef FIXED_DEBUG
|
||||
long long celt_mips=0;
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
||||
void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse)
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#define WORD "%f"
|
||||
#endif
|
||||
|
||||
#ifdef FIXED_DEBUG
|
||||
long long celt_mips=0;
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
||||
void testdiv(void)
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include "mdct.h"
|
||||
|
||||
#define CELT_C
|
||||
#include "mdct.h"
|
||||
#include "stack_alloc.h"
|
||||
|
||||
#include "kiss_fft.c"
|
||||
|
@ -22,9 +23,6 @@
|
|||
#define M_PI 3.141592653
|
||||
#endif
|
||||
|
||||
#ifdef FIXED_DEBUG
|
||||
long long celt_mips=0;
|
||||
#endif
|
||||
int ret = 0;
|
||||
void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue