diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-07-02 23:58:01 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-07-02 23:58:01 +0200 |
| commit | e76229ac4f95ac8c6e4e38e60689a09a091e4048 (patch) | |
| tree | b2b4925d318d6ac72dadb26125d9be15a679c6bd /src/video-math.h | |
| parent | Add mod to blind-arithm (diff) | |
| download | blind-e76229ac4f95ac8c6e4e38e60689a09a091e4048.tar.gz blind-e76229ac4f95ac8c6e4e38e60689a09a091e4048.tar.bz2 blind-e76229ac4f95ac8c6e4e38e60689a09a091e4048.tar.xz | |
Add gradients
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/video-math.h | 4 |
1 files changed, 4 insertions, 0 deletions
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__) |
