Mercurial > libavutil.hg
diff mathematics.h @ 762:839b4855bb03 libavutil
Define INFINITIY and NAN in mathematics.h if missing
author | mru |
---|---|
date | Mon, 10 Aug 2009 01:27:27 +0000 |
parents | 68cd367b853a |
children | 485faa6e1728 |
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.