# HG changeset patch # User reimar # Date 1277139682 0 # Node ID a1b4029b24651f51708866dd1b244bef3b1e694d # Parent 062aab998a9890c0f3ef81b4167829a0cc9aa488 mathematics.h no longer needs config.h, so update tablegen code and documentation to use it where appropriate. diff -r 062aab998a98 -r a1b4029b2465 mdct_tablegen.h --- a/mdct_tablegen.h Mon Jun 21 04:14:20 2010 +0000 +++ b/mdct_tablegen.h Mon Jun 21 17:01:22 2010 +0000 @@ -21,7 +21,7 @@ */ #include -// do not use libavutil/mathematics.h since this is compiled both +// do not use libavutil/libm.h since this is compiled both // for the host and the target and config.h is only valid for the target #include #include "../libavutil/attributes.h" diff -r 062aab998a98 -r a1b4029b2465 mpegaudio_tablegen.h --- a/mpegaudio_tablegen.h Mon Jun 21 04:14:20 2010 +0000 +++ b/mpegaudio_tablegen.h Mon Jun 21 17:01:22 2010 +0000 @@ -24,8 +24,6 @@ #define MPEGAUDIO_TABLEGEN_H #include -// do not use libavutil/mathematics.h since this is compiled both -// for the host and the target and config.h is only valid for the target #include #define TABLE_4_3_SIZE (8191 + 16)*4 diff -r 062aab998a98 -r a1b4029b2465 ps_tablegen.h --- a/ps_tablegen.h Mon Jun 21 04:14:20 2010 +0000 +++ b/ps_tablegen.h Mon Jun 21 17:01:22 2010 +0000 @@ -24,22 +24,13 @@ #define PS_TABLEGEN_H #include -#include #if CONFIG_HARDCODED_TABLES #define ps_tableinit() #include "libavcodec/ps_tables.h" #else #include "../libavutil/common.h" -#ifndef M_SQRT1_2 -#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ -#endif -#ifndef M_PI -#define M_PI 3.14159265358979323846 /* pi */ -#endif -#ifndef M_SQRT2 -#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ -#endif +#include "../libavutil/mathematics.h" #define NR_ALLPASS_BANDS20 30 #define NR_ALLPASS_BANDS34 50 #define PS_AP_LINKS 3