Commit 1a522322 authored by James Zern's avatar James Zern

odintrin.h: define M_PI fallback

+ M_SQRT2 / M_SQRT1_2 to keep the daala diffs down

adapted from:
ebb9b28 Move math.h fills to odintrin.h.

these aren't visible by default with -std=c99.

BUG=aomedia:111

Change-Id: Iaa65986f35d914bf92c8c49a8211e0e6864c64e4
parent b6430364
......@@ -27,6 +27,18 @@
extern "C" {
#endif
# if !defined(M_PI)
# define M_PI (3.1415926535897932384626433832795)
# endif
# if !defined(M_SQRT2)
# define M_SQRT2 (1.41421356237309504880168872420970)
# endif
# if !defined(M_SQRT1_2)
# define M_SQRT1_2 (0.70710678118654752440084436210485)
# endif
# if !defined(M_LOG2E)
# define M_LOG2E (1.4426950408889634073599246810019)
# endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment