6 #ifndef INCLUDED_IMATHFUN_H
7 #define INCLUDED_IMATHFUN_H
22 IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
28 return (
a >
T (0)) ?
a : -
a;
35 return (
a >
T (0)) ? 1 : ((
a <
T (0)) ? -1 : 0);
38 template <
class T,
class Q>
42 return (
T) (
a * (1 -
t) +
b *
t);
45 template <
class T,
class Q>
49 return (
T) ((
a >
b) ? (
a - (
a -
b) *
t) : (
a + (
b -
a) *
t));
79 return (
a < l) ? l : ((
a >
h) ?
h :
a);
103 template <
class T1,
class T2,
class T3>
142 return (
x >= 0) ? ((
y >= 0) ? (
x /
y) : -(
x / -
y)) : ((
y >= 0) ? -(-
x /
y) : (-
x / -
y));
148 return (
x >= 0) ? ((
y >= 0) ? (
x %
y) : (
x % -
y)) : ((y >= 0) ? -(-
x % y) : -(-
x % -
y));
162 return (
x >= 0) ? ((
y >= 0) ? (
x /
y) : -(
x / -
y))
163 : ((
y >= 0) ? -((
y - 1 -
x) /
y) : ((-
y - 1 -
x) / -
y));
213 return (u.i & 0x7f800000) != 0x7f800000;
226 return (u.i & 0x7ff0000000000000LL) != 0x7ff0000000000000LL;
229 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
231 #endif // INCLUDED_IMATHFUN_H
IMATH_HOSTDEVICE constexpr int modp(int x, int y) IMATH_NOEXCEPT
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
IMATH_HOSTDEVICE constexpr int floor(T x) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int divp(int x, int y) IMATH_NOEXCEPT
GLboolean GLboolean GLboolean GLboolean a
IMATH_HOSTDEVICE constexpr bool equal(T1 a, T2 b, T3 t) IMATH_NOEXCEPT
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T lerpfactor(T m, T a, T b) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int cmp(T a, T b) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr T clamp(T a, T l, T h) IMATH_NOEXCEPT
IMATH_EXPORT float predf(float f) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int trunc(T x) IMATH_NOEXCEPT
IMATH_EXPORT float succf(float f) IMATH_NOEXCEPT
IMATH_HOSTDEVICE bool finited(double d) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int sign(T a) IMATH_NOEXCEPT
IMATH_EXPORT double predd(double d) IMATH_NOEXCEPT
GLboolean GLboolean GLboolean b
IMATH_HOSTDEVICE constexpr int divs(int x, int y) IMATH_NOEXCEPT
GLfloat GLfloat GLfloat GLfloat h
IMATH_HOSTDEVICE constexpr int ceil(T x) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr bool iszero(T a, T t) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr T ulerp(T a, T b, Q t) IMATH_NOEXCEPT
IMATH_EXPORT double succd(double d) IMATH_NOEXCEPT
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
IMATH_HOSTDEVICE constexpr int cmpt(T a, T b, T t) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr T lerp(T a, T b, Q t) IMATH_NOEXCEPT
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE constexpr T abs(T a) IMATH_NOEXCEPT
IMATH_HOSTDEVICE constexpr int mods(int x, int y) IMATH_NOEXCEPT
IMATH_HOSTDEVICE bool finitef(float f) IMATH_NOEXCEPT