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(fpreal64 x, int use_sys=0) { return x; } \
24 static inline fpreal32 name##f(fpreal32 x, int use_sys=0) { return x; }
26 #define SYS_RESTRICT_BINARY(name) \
27 static inline fpreal64 name(fpreal64 x, fpreal64 y, int use_sys=0) \
29 static inline fpreal32 name##f(fpreal32 x, fpreal32 y, 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)
SYS_API double asinh(double x)
SYS_API double cos(double x)
SYS_API double fmod(double x, double y)
SYS_API double atan2(double y, double x)
SYS_API double expm1(double x)
IMATH_HOSTDEVICE constexpr int floor(T x) IMATH_NOEXCEPT
vfloat4 sqrt(const vfloat4 &a)
SYS_API double log10(double x)
ImageBuf OIIO_API pow(const ImageBuf &A, cspan< float > B, ROI roi={}, int nthreads=0)
SYS_API double asin(double x)
SYS_API double acosh(double x)
IMATH_HOSTDEVICE constexpr int trunc(T x) IMATH_NOEXCEPT
SYS_API double sinh(double x)
SYS_API double cosh(double x)
SYS_API double acos(double x)
SYS_API double hypot(double x, double y)
SYS_API double log1p(double x)
SYS_API double tanh(double x)
SYS_API double tan(double x)
IMATH_HOSTDEVICE constexpr int ceil(T x) IMATH_NOEXCEPT
SYS_API double atan(double x)
OIIO_FORCEINLINE T log(const T &v)
SYS_API double atanh(double x)
SYS_API double sin(double x)