From 448524777a738374dc73b4222f9b3b435c303664 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 22 Jul 2010 22:05:21 +0000 Subject: Add the M_PHI constant, contains an approximation of the golden ratio irrational number. Originally committed as revision 24439 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mathematics.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavutil/mathematics.h') diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 3e5631116f..882a516393 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -38,6 +38,9 @@ #ifndef M_LOG2_10 #define M_LOG2_10 3.32192809488736234787 /* log_2 10 */ #endif +#ifndef M_PHI +#define M_PHI 1.61803398874989484820 /* phi / golden ratio */ +#endif #ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif -- cgit v1.2.3