[FFmpeg-devel] [PATCH 3/4] Add constant M_PHI, contains an approximation of the golden ratio
Stefano Sabatini
stefano.sabatini-lala
Thu Jul 22 19:52:25 CEST 2010
---
libavutil/mathematics.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index 3e56311..5216e4b 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -29,6 +29,9 @@
#ifndef M_E
#define M_E 2.7182818284590452354 /* e */
#endif
+#ifndef M_PHI
+#define M_PHI 1.61803398874989484820 /* phi / golden ratio */
+#endif
#ifndef M_LN2
#define M_LN2 0.69314718055994530942 /* log_e 2 */
#endif
--
1.6.0.4
More information about the ffmpeg-devel
mailing list