MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / expr

Class expr

include/half/half.hpp:353–366  ·  view source on GitHub ↗

Temporary half-precision expression. This class represents a half-precision expression which just stores a single-precision value internally.

Source from the content-addressed store, hash-verified

351 /// Temporary half-precision expression.
352 /// This class represents a half-precision expression which just stores a single-precision value internally.
353 struct expr
354 {
355 /// Conversion constructor.
356 /// \param f single-precision value to convert
357 explicit HALF_CONSTEXPR expr(float f) HALF_NOEXCEPT : value_(f) {}
358
359 /// Conversion to single-precision.
360 /// \return single precision value representing expression value
361 HALF_CONSTEXPR operator float() const HALF_NOEXCEPT { return value_; }
362
363 private:
364 /// Internal expression value stored in single-precision.
365 float value_;
366 };
367
368 /// SFINAE helper for generic half-precision functions.
369 /// This class template has to be specialized for each valid combination of argument types to provide a corresponding

Callers 15

plusMethod · 0.85
minusMethod · 0.85
multipliesMethod · 0.85
dividesMethod · 0.85
fmodMethod · 0.85
remainderMethod · 0.85
remquoMethod · 0.85
fdimMethod · 0.85
fmaMethod · 0.85
expMethod · 0.85
expm1Method · 0.85
exp2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected