From e76229ac4f95ac8c6e4e38e60689a09a091e4048 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Jul 2017 23:58:01 +0200 Subject: Add gradients MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/video-math.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video-math.h') diff --git a/src/video-math.h b/src/video-math.h index fe0e604..281c8f6 100644 --- a/src/video-math.h +++ b/src/video-math.h @@ -59,6 +59,7 @@ posmodf(float a, float b) #define pow(...) MATH_GENERIC_N(pow, __VA_ARGS__) #define log2(...) MATH_GENERIC_1(log2, __VA_ARGS__) +#define log(...) MATH_GENERIC_1(log, __VA_ARGS__) #define abs(...) MATH_GENERIC_1(fabs, __VA_ARGS__) #define sqrt(...) MATH_GENERIC_1(sqrt, __VA_ARGS__) #define exp(...) MATH_GENERIC_1(exp, __VA_ARGS__) @@ -68,6 +69,9 @@ posmodf(float a, float b) #define nnpow(...) MATH_GENERIC_N(nnpow, __VA_ARGS__) #define mod(...) MATH_GENERIC_N(fmod, __VA_ARGS__) #define posmod(...) MATH_GENERIC_N(posmod, __VA_ARGS__) +#define cos(...) MATH_GENERIC_1(cos, __VA_ARGS__) +#define sin(...) MATH_GENERIC_1(sin, __VA_ARGS__) +#define atan2(...) MATH_GENERIC_N(atan2, __VA_ARGS__) #define srgb_encode(...) BLIND_GENERIC_1(srgb_encode, __VA_ARGS__) #define srgb_decode(...) BLIND_GENERIC_1(srgb_decode, __VA_ARGS__) -- cgit v1.2.3-70-g09d2