16TEST(math_half, half_to_float_scalar)
43TEST(math_half, float_to_half_scalar)
45#define HFUN(v) blender::math::float_to_half(v)
65 EXPECT_EQ(
HFUN(std::numeric_limits<float>::infinity()), 31744);
67 EXPECT_EQ(
HFUN(std::numeric_limits<float>::quiet_NaN()), 32256);
77 EXPECT_EQ(
HFUN(-std::numeric_limits<float>::infinity()), 64512);
83 const uint16_t src[13] = {
84 0, 1, 6789, 16383, 16384, 31743, 31744, 32768, 32769, 46765, 54501, 64511, 64512};
86 const float exp[14] = {
93 std::numeric_limits<float>::infinity(),
99 -std::numeric_limits<float>::infinity(),
106 EXPECT_EQ_ARRAY(
exp, dst, 14);
111 const float src[13] = {0.0f,
117 std::numeric_limits<float>::infinity(),
123 -std::numeric_limits<float>::infinity()};
125 const uint16_t
exp[14] = {
126 0, 1, 6789, 16383, 16384, 31743, 31744, 32768, 32769, 46765, 54501, 64511, 64512, 12345};
127 uint16_t dst[14] = {};
131 EXPECT_EQ_ARRAY(
exp, dst, 14);
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
static T sum(const btAlignedObjectArray< T > &items)