scalar_funcs.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  arbb
 

The Intel(R) ArBB C++ frontend namespace.


Functions

template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::abs (const scalar< S > &value)
 If value is greater than zero, returns value, otherwise, returns -value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::acos (const scalar< S > &value)
 Returns the arccosine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::asin (const scalar< S > &value)
 Returns the arcsine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::atan (const scalar< S > &value)
 Returns the arctangent of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const scalar< S > &value, const scalar< S > &minimum, const scalar< S > &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const scalar< S > &value, const scalar< S > &minimum, const typename uncaptured< scalar< S > >::type &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &minimum, const scalar< S > &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &minimum, const typename uncaptured< scalar< S > >::type &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &minimum, const scalar< S > &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &minimum, const typename uncaptured< scalar< S > >::type &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::clamp (const typename uncaptured< scalar< S > >::type &value, const typename uncaptured< scalar< S > >::type &minimum, const scalar< S > &maximum)
 Clamps value to the range between minimum and maximum.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::cos (const scalar< S > &value)
 Returns the cosine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::cosh (const scalar< S > &value)
 Returns the hyperbolic cosine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::exp (const scalar< S > &value)
 Returns the base-e exponent of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::exp10 (const scalar< S > &value)
 Returns the base-10 exponent of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::floor (const scalar< S > &value)
 Returns value rounded to the nearest integer towards negative infinity.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::ceil (const scalar< S > &value)
 Returns value rounded to the nearest integer towards positive infinity.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::log (const scalar< S > &value)
 Returns the natural logarithm of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::log10 (const scalar< S > &value)
 Returns the base-10 logarithm of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::rcp (const scalar< S > &value)
 Returns the reciprocal of value (1/x).
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::round (const scalar< S > &value)
 Returns value rounded to the nearest integer.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::rsqrt (const scalar< S > &value)
 Returns the reciprocal square root of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::sin (const scalar< S > &value)
 Returns the sine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::sinh (const scalar< S > &value)
 Returns the hyperbolic sine of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::sqrt (const scalar< S > &value)
 Returns the square root of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::tan (const scalar< S > &value)
 Returns the tangent of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::tanh (const scalar< S > &value)
 Returns the hyperbolic tangent of value.
boolean arbb::operator! (const boolean &value)
 If value is true, returns false.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator~ (const scalar< S > &value)
 Returns the bitwise complement of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_signed
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator- (const scalar< S > &value)
 Returns the negative of value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator+ (const scalar< S > &a, const scalar< S > &b)
 Adds a to b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator+ (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Adds a to b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator+ (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Adds a to b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator+= (scalar< S > &value, const scalar< S > &increment)
 Increments value by increment and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator+= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &increment)
 Increments value by increment and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator+= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &increment)
 Increments value by increment and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator& (const scalar< S > &value, const scalar< S > &mask)
 Returns the bitwise and of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator& (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Returns the bitwise and of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator& (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Returns the bitwise and of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator&= (scalar< S > &value, const scalar< S > &mask)
 Modifies value by computing its bitwise and with mask, and return the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator&= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Modifies value by computing its bitwise and with mask, and return the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator&= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Modifies value by computing its bitwise and with mask, and return the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::atan2 (const scalar< S > &x, const scalar< S > &y)
 Returns the arctangent of y / x in the same manner as std::atan2().
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::atan2 (const scalar< S > &x, const typename uncaptured< scalar< S > >::type &y)
 Returns the arctangent of y / x in the same manner as std::atan2().
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::atan2 (const typename uncaptured< scalar< S > >::type &x, const scalar< S > &y)
 Returns the arctangent of y / x in the same manner as std::atan2().
template<arbb_scalar_type_t S>
isize arbb::compare (const scalar< S > &a, const scalar< S > &b)
 Determines whether a is smaller than, equal to, or greater than b, and returns -1, 0, or 1 respectively.
template<arbb_scalar_type_t S>
isize arbb::compare (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Determines whether a is smaller than, equal to, or greater than b, and returns -1, 0, or 1 respectively.
template<arbb_scalar_type_t S>
isize arbb::compare (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Determines whether a is smaller than, equal to, or greater than b, and returns -1, 0, or 1 respectively.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator/ (const scalar< S > &numerator, const scalar< S > &denominator)
 Returns numerator divided by denominator.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator/ (const scalar< S > &numerator, const typename uncaptured< scalar< S > >::type &denominator)
 Returns numerator divided by denominator.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator/ (const typename uncaptured< scalar< S > >::type &numerator, const scalar< S > &denominator)
 Returns numerator divided by denominator.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator/= (scalar< S > &value, const scalar< S > &denominator)
 Sets value to value divided by denominator and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator/= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &denominator)
 Sets value to value divided by denominator and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator/= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &denominator)
 Sets value to value divided by denominator and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::div_tan (const scalar< S > &x, const scalar< S > &y)
 Returns tan(y / x).
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::div_tan (const scalar< S > &x, const typename uncaptured< scalar< S > >::type &y)
 Returns tan(y / x).
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::div_tan (const typename uncaptured< scalar< S > >::type &x, const scalar< S > &y)
 Returns tan(y / x).
template<arbb_scalar_type_t S>
boolean arbb::operator== (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator== (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator== (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator>= (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is greater than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator>= (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is greater than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator>= (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is greater than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator> (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is strictly greater than b.
template<arbb_scalar_type_t S>
boolean arbb::operator> (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is strictly greater than b.
template<arbb_scalar_type_t S>
boolean arbb::operator> (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is strictly greater than b.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator| (const scalar< S > &value, const scalar< S > &mask)
 Returns the bitwise or of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator| (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Returns the bitwise or of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator| (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Returns the bitwise or of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator|= (scalar< S > &value, const scalar< S > &mask)
 Modifies value by computing its bitwise or with mask and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator|= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Modifies value by computing its bitwise or with mask and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator|= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Modifies value by computing its bitwise or with mask and returns the modified value.
template<arbb_scalar_type_t S>
boolean arbb::operator<= (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is less than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator<= (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is less than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator<= (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is less than or equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator< (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is strictly less than b.
template<arbb_scalar_type_t S>
boolean arbb::operator< (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is strictly less than b.
template<arbb_scalar_type_t S>
boolean arbb::operator< (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is strictly less than b.
boolean arbb::operator&& (const boolean &a, const boolean &b)
 Returns the logical and of a and b.
boolean arbb::operator&& (const boolean &a, const uncaptured< boolean >::type &b)
 Returns the logical and of a and b.
boolean arbb::operator&& (const uncaptured< boolean >::type &a, const boolean &b)
 Returns the logical and of a and b.
boolean arbb::operator|| (const boolean &a, const boolean &b)
 Returns the logical or of a and b.
boolean arbb::operator|| (const boolean &a, const uncaptured< boolean >::type &b)
 Returns the logical or of a and b.
boolean arbb::operator|| (const uncaptured< boolean >::type &a, const boolean &b)
 Returns the logical or of a and b.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator<< (const scalar< S > &value, const scalar< S > &shift_amount)
 Returns value shifted left by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator<< (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &shift_amount)
 Returns value shifted left by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator<< (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &shift_amount)
 Returns value shifted left by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator<<= (scalar< S > &value, const scalar< S > &shift_amount)
 Modifies value by shifting it left by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator<<= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &shift_amount)
 Modifies value by shifting it left by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator<<= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &shift_amount)
 Modifies value by shifting it left by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
scalar< S > arbb::max (const scalar< S > &a, const scalar< S > &b)
 Returns a if a > b.
template<arbb_scalar_type_t S>
scalar< S > arbb::max (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns a if a > b.
template<arbb_scalar_type_t S>
scalar< S > arbb::max (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns a if a > b.
template<arbb_scalar_type_t S>
scalar< S > arbb::min (const scalar< S > &a, const scalar< S > &b)
 Returns a if a < b.
template<arbb_scalar_type_t S>
scalar< S > arbb::min (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns a if a < b.
template<arbb_scalar_type_t S>
scalar< S > arbb::min (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns a if a < b.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator% (const scalar< S > &dividend, const scalar< S > &divisor)
 Returns the remainder of dividend divided by divisor.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator% (const scalar< S > &dividend, const typename uncaptured< scalar< S > >::type &divisor)
 Returns the remainder of dividend divided by divisor.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator% (const typename uncaptured< scalar< S > >::type &dividend, const scalar< S > &divisor)
 Returns the remainder of dividend divided by divisor.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator%= (scalar< S > &value, const scalar< S > &divisor)
 Modifies value by storing in it the remainder of value divided by divisor and returns the modified result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator%= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &divisor)
 Modifies value by storing in it the remainder of value divided by divisor and returns the modified result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator%= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &divisor)
 Modifies value by storing in it the remainder of value divided by divisor and returns the modified result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator* (const scalar< S > &a, const scalar< S > &b)
 Multiplies a with b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator* (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Multiplies a with b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator* (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Multiplies a with b and returns the result.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator*= (scalar< S > &value, const scalar< S > &multiplicand)
 Modifies value by multiplying it by multiplicand and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator*= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &multiplicand)
 Modifies value by multiplying it by multiplicand and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator*= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &multiplicand)
 Modifies value by multiplying it by multiplicand and returns the modified value.
template<arbb_scalar_type_t S>
boolean arbb::operator!= (const scalar< S > &a, const scalar< S > &b)
 Returns true if a is not equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator!= (const scalar< S > &a, const typename uncaptured< scalar< S > >::type &b)
 Returns true if a is not equal to b.
template<arbb_scalar_type_t S>
boolean arbb::operator!= (const typename uncaptured< scalar< S > >::type &a, const scalar< S > &b)
 Returns true if a is not equal to b.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::pow (const scalar< S > &base, const scalar< S > &exponent)
 Returns base raised to the power of exponent.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::pow (const scalar< S > &base, const typename uncaptured< scalar< S > >::type &exponent)
 Returns base raised to the power of exponent.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_fp< scalar
< S > >::value, scalar< S >
>::type 
arbb::pow (const typename uncaptured< scalar< S > >::type &base, const scalar< S > &exponent)
 Returns base raised to the power of exponent.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator>> (const scalar< S > &value, const scalar< S > &shift_amount)
 Returns value shifted right by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator>> (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &shift_amount)
 Returns value shifted right by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator>> (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &shift_amount)
 Returns value shifted right by shift_amount bits.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator>>= (scalar< S > &value, const scalar< S > &shift_amount)
 Modifies value by shifting it right by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator>>= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &shift_amount)
 Modifies value by shifting it right by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator>>= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &shift_amount)
 Modifies value by shifting it right by shift_amount bits and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator- (const scalar< S > &value, const scalar< S > &amount)
 Returns value subtracted by amount.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator- (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &amount)
 Returns value subtracted by amount.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator- (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &amount)
 Returns value subtracted by amount.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator-= (scalar< S > &value, const scalar< S > &amount)
 Modifies value by subtracting it by amount and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator-= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &amount)
 Modifies value by subtracting it by amount and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator-= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &amount)
 Modifies value by subtracting it by amount and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator^ (const scalar< S > &value, const scalar< S > &mask)
 Returns the bitwise xor of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator^ (const scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Returns the bitwise xor of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator^ (const typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Returns the bitwise xor of value and mask.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator^= (scalar< S > &value, const scalar< S > &mask)
 Modifies value by computing its bitwise xor with mask and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator^= (scalar< S > &value, const typename uncaptured< scalar< S > >::type &mask)
 Modifies value by computing its bitwise xor with mask and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_int
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator^= (typename uncaptured< scalar< S > >::type &value, const scalar< S > &mask)
 Modifies value by computing its bitwise xor with mask and returns the modified value.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const boolean &condition, const scalar< S > &true_case, const scalar< S > &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const typename uncaptured< boolean >::type &condition, const scalar< S > &true_case, const scalar< S > &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const boolean &condition, const scalar< S > &true_case, const typename uncaptured< scalar< S > >::type &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const typename uncaptured< boolean >::type &condition, const scalar< S > &true_case, const typename uncaptured< scalar< S > >::type &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const boolean &condition, const typename uncaptured< scalar< S > >::type &true_case, const scalar< S > &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
scalar< S > arbb::select (const typename uncaptured< boolean >::type &condition, const typename uncaptured< scalar< S > >::type &true_case, const scalar< S > &false_case)
 If condition is true, returns true_case.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator++ (scalar< S > &value)
 Modifies value by adding 1 to it and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator++ (scalar< S > &value, int)
 Modifies value by adding 1 to it and returns a copy of the original value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > & >::type 
arbb::operator-- (scalar< S > &value)
 Modifies value by subtracting 1 from it and returns the modified value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
< detail::is_scalar_boolean
< scalar< S > >::value, scalar
< S > >::type 
arbb::operator-- (scalar< S > &value, int)
 Modifies value by subtracting 1 from it and returns a copy of the original value.
template<typename U >
detail::disable_if
<!detail::is_uncaptured_scalar
< U >::value, typename
captured< U >::type >::type 
arbb::select (const boolean &condition, const U &true_case, const U &false_case)
 If condition is true, returns true_case, otherwise returns false_case.
template<typename T , arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar< T >
::value, T >::type 
arbb::bitwise_cast (const scalar< S > &value)
 Returns a value that has the same bit pattern as value.
template<arbb_scalar_type_t S>
arbb::detail::disable_if
<!detail::is_scalar_unsigned_int
< scalar< S > >::value,
typename detail::signed_type
< scalar< S > >::type >::type 
arbb::operator- (scalar< S > &value)
 Returns the negative of value.

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.