15 #ifndef __SYS_ObsoleteFunctions__
16 #define __SYS_ObsoleteFunctions__
20 #if defined(SYS_RESTRICTIVE_MATH)
22 #define SYS_RESTRICT_UNARY(name) \
23 static inline fpreal64 name(const fpreal64 x, const int use_sys=0) { return x; } \
24 static inline fpreal32 name##f(const fpreal32 x, const int use_sys=0) { return x; }
26 #define SYS_RESTRICT_BINARY(name) \
27 static inline fpreal64 name(const fpreal64 x, const fpreal64 y, const int use_sys=0) \
29 static inline fpreal32 name##f(const fpreal32 x, const fpreal32 y, const int use_sys=0) \
32 SYS_RESTRICT_UNARY(sin)
33 SYS_RESTRICT_UNARY(cos)
34 SYS_RESTRICT_UNARY(tan)
35 SYS_RESTRICT_UNARY(asin)
36 SYS_RESTRICT_UNARY(acos)
37 SYS_RESTRICT_UNARY(atan)
38 SYS_RESTRICT_UNARY(sinh)
39 SYS_RESTRICT_UNARY(cosh)
40 SYS_RESTRICT_UNARY(tanh)
41 SYS_RESTRICT_UNARY(asinh)
42 SYS_RESTRICT_UNARY(acosh)
43 SYS_RESTRICT_UNARY(atanh)
45 SYS_RESTRICT_UNARY(
sqrt)
46 SYS_RESTRICT_UNARY(
cbrt)
47 SYS_RESTRICT_UNARY(
log)
48 SYS_RESTRICT_UNARY(log1p)
49 SYS_RESTRICT_UNARY(log10)
50 SYS_RESTRICT_UNARY(exp)
51 SYS_RESTRICT_UNARY(expm1)
53 SYS_RESTRICT_UNARY(fabs)
54 SYS_RESTRICT_UNARY(
trunc)
55 SYS_RESTRICT_UNARY(
floor)
56 SYS_RESTRICT_UNARY(
ceil)
58 SYS_RESTRICT_BINARY(fmod)
59 SYS_RESTRICT_BINARY(
pow)
60 SYS_RESTRICT_BINARY(atan2)
61 SYS_RESTRICT_BINARY(hypot)
IMATH_HOSTDEVICE constexpr int floor(T x) IMATH_NOEXCEPT
vfloat4 sqrt(const vfloat4 &a)
ImageBuf OIIO_API pow(const ImageBuf &A, cspan< float > B, ROI roi={}, int nthreads=0)
IMATH_HOSTDEVICE constexpr int trunc(T x) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int ceil(T x) IMATH_NOEXCEPT
OIIO_FORCEINLINE T log(const T &v)