11 #ifndef __SYS_DECIMAL128_H_INCLUDED__
12 #define __SYS_DECIMAL128_H_INCLUDED__
16 #error This file must be included from SYS_Types.h
38 operator int32()
const;
45 int32 roundedInt()
const;
71 bool isCanonical()
const;
77 bool isNormal()
const;
78 bool isPositive()
const;
83 uint numDigits()
const;
89 {
return !(*
this ==
v); }
97 static const int NUMBUF = 43;
100 void toString(
char *str)
const;
103 void fromString(
const char *str);
167 #endif // __SYS_DECIMAL128_H_INCLUDED__
Mat3< typename promote< S, T >::type > operator*(S scalar, const Mat3< T > &m)
Multiply each element of the given matrix by scalar and return the result.
OIIO_FORCEINLINE const vint4 & operator/=(vint4 &a, const vint4 &b)
SYS_API size_t format(char *buffer, size_t buffer_size, const SYS_Decimal128 &v)
SYS_API SYS_Decimal128 operator/(const SYS_Decimal128 &x, const SYS_Decimal128 &y)
SYS_API std::ostream & operator<<(std::ostream &os, const SYS_Decimal128 &v)
Mat3< typename promote< T0, T1 >::type > operator+(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Add corresponding elements of m0 and m1 and return the result.
bool isNegative(const Type &x)
Return true if x is less than zero.
OIIO_FORCEINLINE vbool4 operator>=(const vint4 &a, const vint4 &b)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
OIIO_FORCEINLINE vbool4 operator>(const vint4 &a, const vint4 &b)
OIIO_FORCEINLINE vbool4 operator<=(const vint4 &a, const vint4 &b)
Mat3< typename promote< T0, T1 >::type > operator-(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Subtract corresponding elements of m0 and m1 and return the result.
OIIO_FORCEINLINE const vint4 & operator+=(vint4 &a, const vint4 &b)
SYS_Decimal128()=default
Default constructor, leaves value uninitialized.
bool isInfinite(const float x)
Return true if x is an infinity value (either positive infinity or negative infinity).
void fromString(const char *str)
Conversion from string.
bool operator!=(const SYS_Decimal128 &v) const
bool operator<(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
bool isNan(const float x)
Return true if x is a NaN (Not-A-Number) value.
IMATH_HOSTDEVICE const Vec2< S > & operator*=(Vec2< S > &v, const Matrix22< T > &m) IMATH_NOEXCEPT
Vector-matrix multiplication: v *= m.
__hostdev__ bool isInteger(GridType gridType)
Return true if the GridType maps to a POD integer type.
LeafData & operator=(const LeafData &)=delete
Decimal128 floating point class (IEEE 754-2008)
SYS_API std::istream & operator>>(std::istream &is, SYS_Decimal128 &v)
OIIO_FORCEINLINE const vint4 & operator-=(vint4 &a, const vint4 &b)
SYS_API SYS_Decimal128 operator-(const SYS_Decimal128 &x, const SYS_Decimal128 &y)
#define SYS_MAYBE_UNUSED_MEMBER
ImageBuf OIIO_API zero(ROI roi, int nthreads=0)
bool isZero(const Type &x)
Return true if x is exactly equal to zero.
bool isFinite(const float x)
Return true if x is finite.
SYS_Decimal128 & operator=(int32 v)