Home
last modified time | relevance | path

Searched refs:fUInt (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/src/core/
DSkHalf.cpp24 uint32_t fUInt; // this must come first for the initializations below to work member
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
42 floatUnion.fUInt ^= sign; in SkFloatToHalf()
50 if (floatUnion.fUInt >= f32infty) in SkFloatToHalf()
52 o = (floatUnion.fUInt > f32infty) ? 0x7e00 : 0x7c00; in SkFloatToHalf()
55 floatUnion.fUInt &= round_mask; in SkFloatToHalf()
57 floatUnion.fUInt -= round_mask; in SkFloatToHalf()
59 if (floatUnion.fUInt > f16infty) { in SkFloatToHalf()
60 floatUnion.fUInt = f16infty; in SkFloatToHalf()
63 o = floatUnion.fUInt >> 13; // Take the bits! in SkFloatToHalf()
[all …]
/third_party/flutter/skia/src/core/
DSkHalf.cpp24 uint32_t fUInt; // this must come first for the initializations below to work member
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
42 floatUnion.fUInt ^= sign; in SkFloatToHalf()
50 if (floatUnion.fUInt >= f32infty) in SkFloatToHalf()
52 o = (floatUnion.fUInt > f32infty) ? 0x7e00 : 0x7c00; in SkFloatToHalf()
55 floatUnion.fUInt &= round_mask; in SkFloatToHalf()
57 floatUnion.fUInt -= round_mask; in SkFloatToHalf()
59 if (floatUnion.fUInt > f16infty) { in SkFloatToHalf()
60 floatUnion.fUInt = f16infty; in SkFloatToHalf()
63 o = floatUnion.fUInt >> 13; // Take the bits! in SkFloatToHalf()
[all …]
/third_party/flutter/skia/docs/examples/
DColor_Type_RGBA_F16.cpp7 uint32_t fUInt; member
15 uint32_t sign = floatUnion.fUInt & 0x80000000u; in FloatToHalf()
16 floatUnion.fUInt ^= sign; in FloatToHalf()
17 floatUnion.fUInt &= round_mask; in FloatToHalf()
19 floatUnion.fUInt -= round_mask; in FloatToHalf()
20 return (floatUnion.fUInt >> 13) | (sign >> 16); in FloatToHalf()
/third_party/skia/docs/examples/
DColor_Type_RGBA_F16.cpp7 uint32_t fUInt; member
15 uint32_t sign = floatUnion.fUInt & 0x80000000u; in FloatToHalf()
16 floatUnion.fUInt ^= sign; in FloatToHalf()
17 floatUnion.fUInt &= round_mask; in FloatToHalf()
19 floatUnion.fUInt -= round_mask; in FloatToHalf()
20 return (floatUnion.fUInt >> 13) | (sign >> 16); in FloatToHalf()
/third_party/skia/src/sksl/
DSkSLBuiltinTypes.cpp36 , fUInt(Type::MakeScalarType( in BuiltinTypes()
38 , fUInt2(Type::MakeVectorType("uint2", "I2", *fUInt, /*columns=*/2)) in BuiltinTypes()
39 , fUInt3(Type::MakeVectorType("uint3", "I3", *fUInt, /*columns=*/3)) in BuiltinTypes()
40 , fUInt4(Type::MakeVectorType("uint4", "I4", *fUInt, /*columns=*/4)) in BuiltinTypes()
144 , fGenUType(Type::MakeGenericType("$genUType", {fUInt.get(), fUInt2.get(), fUInt3.get(),
DSkSLUtil.cpp70 if (type == *context.fTypes.fUInt ) { *outType = kUInt_GrSLType; return true; } in type_to_grsltype()
DSkSLBuiltinTypes.h39 const std::unique_ptr<Type> fUInt; variable
DSkSLThreadContext.cpp109 symbols.addAlias("uint", context.fTypes.fUInt.get()); in setupSymbolTable()
/third_party/skia/tests/
DSkSLTypeTest.cpp31 REPORTER_ASSERT(r, context.fTypes.fUInt->minimumValue() == uint_limits::min()); in DEF_TEST()
32 REPORTER_ASSERT(r, context.fTypes.fUInt->maximumValue() == uint_limits::max()); in DEF_TEST()
/third_party/skia/src/sksl/ir/
DSkSLType.cpp678 } else if (*this == *context.fTypes.fUInt) { in toCompound()
682 case 1: return *context.fTypes.fUInt; in toCompound()
/third_party/skia/src/sksl/dsl/
DDSLType.cpp145 return context.fTypes.fUInt.get(); in get_type_from_type_constant()
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp995 if (type == *fContext.fTypes.fUInt) { in writeLiteral()
1168 type == *fContext.fTypes.fUInt) { in getTypePrecision()
DSkSLSPIRVCodeGenerator.cpp532 return *fContext.fTypes.fUInt; in getActualType()
542 return fContext.fTypes.fUInt->toCompound(fContext, type.columns(), type.rows()); in getActualType()
1426 const SpvId oneID = this->writeLiteral(1.0, *fContext.fTypes.fUInt); in castScalarToUnsignedInt()
1427 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fUInt); in castScalarToUnsignedInt()
1466 const SpvId zeroID = this->writeLiteral(0.0, *fContext.fTypes.fUInt); in castScalarToBoolean()
DSkSLMetalCodeGenerator.cpp1714 if (type == *fContext.fTypes.fUInt) { in writeLiteral()