Mercurial > libavutil.hg
changeset 762:839b4855bb03 libavutil
Define INFINITIY and NAN in mathematics.h if missing
author | mru |
---|---|
date | Mon, 10 Aug 2009 01:27:27 +0000 |
parents | 58d118a78f6d |
children | cd95821e8278 |
files | mathematics.h |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mathematics.h Thu Jul 30 21:58:43 2009 +0000 +++ b/mathematics.h Mon Aug 10 01:27:27 2009 +0000 @@ -41,6 +41,12 @@ #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif enum AVRounding { AV_ROUND_ZERO = 0, ///< Round toward zero.