diff mathematics.h @ 1000:f9e8cd74a5f4 libavutil

Add the M_PHI constant, contains an approximation of the golden ratio irrational number.
author stefano
date Thu, 22 Jul 2010 22:05:21 +0000
parents e34e8d654ded
children
line wrap: on
line diff
--- a/mathematics.h	Wed Jul 21 12:37:37 2010 +0000
+++ b/mathematics.h	Thu Jul 22 22:05:21 2010 +0000
@@ -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