Home
last modified time | relevance | path

Searched refs:UInt (Results 1 – 25 of 121) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderArithmetic.cpp159 dst.move(i, ~src.UInt(i)); in EmitUnaryOp()
163 auto insert = Operand(this, state, insn.word(4)).UInt(i); in EmitUnaryOp()
164 auto offset = Operand(this, state, insn.word(5)).UInt(0); in EmitUnaryOp()
165 auto count = Operand(this, state, insn.word(6)).UInt(0); in EmitUnaryOp()
166 auto one = SIMD::UInt(1); in EmitUnaryOp()
167 auto v = src.UInt(i); in EmitUnaryOp()
175 auto offset = Operand(this, state, insn.word(4)).UInt(0); in EmitUnaryOp()
176 auto count = Operand(this, state, insn.word(5)).UInt(0); in EmitUnaryOp()
177 auto one = SIMD::UInt(1); in EmitUnaryOp()
178 auto v = src.UInt(i); in EmitUnaryOp()
[all …]
DSpirvShaderGroup.cpp41 …auto mask = As<SIMD::UInt>(state->activeLaneMask()); // Considers helper invocations active. See … in BinaryOperation()
43 SIMD::UInt v_uint = (value.UInt(i) & mask) | (As<SIMD::UInt>(identity) & ~mask); in BinaryOperation()
108 …dst.move(0, AndAll(predicate.UInt(0) | ~As<SIMD::UInt>(state->activeLaneMask()))); // Considers h… in EmitGroupNonUniform()
115 …dst.move(0, OrAll(predicate.UInt(0) & As<SIMD::UInt>(state->activeLaneMask()))); // Considers hel… in EmitGroupNonUniform()
122 auto res = SIMD::UInt(0xffffffff); in EmitGroupNonUniform()
123 …SIMD::UInt active = As<SIMD::UInt>(state->activeLaneMask()); // Considers helper invocations acti… in EmitGroupNonUniform()
124 SIMD::UInt inactive = ~active; in EmitGroupNonUniform()
127 SIMD::UInt v = value.UInt(i) & active; in EmitGroupNonUniform()
128 SIMD::UInt filled = v; in EmitGroupNonUniform()
160 …SIMD::UInt active = As<SIMD::UInt>(state->activeLaneMask()); // Considers helper invocations acti… in EmitGroupNonUniform()
[all …]
DSpirvShaderImage.cpp671 SIMD::UInt width = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, width)); in GetTexelAddress()
672 SIMD::Int oobMask = As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(u), width)); in GetTexelAddress()
676 SIMD::UInt height = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, height)); in GetTexelAddress()
677 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(v), height)); in GetTexelAddress()
682 UInt depth = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, depth)); in GetTexelAddress()
684 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(w), SIMD::UInt(depth))); in GetTexelAddress()
689 …SIMD::UInt sampleCount = *Pointer<UInt>(descriptor + OFFSET(vk::StorageImageDescriptor, sampleCoun… in GetTexelAddress()
690 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(sample), sampleCount)); in GetTexelAddress()
861 dst.move(0, halfToFloatBits(As<SIMD::UInt>(packed[0]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead()
862 dst.move(1, halfToFloatBits((As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFFFF0000)) >> 16)); in EmitImageRead()
[all …]
DVertexRoutine.hpp43 Pointer<UInt> batch;
71 virtual void program(Pointer<UInt> &batch, UInt &vertexCount) = 0;
75 …Vector4f readStream(Pointer<Byte> &buffer, UInt &stride, const Stream &stream, Pointer<UInt> &batc…
76 bool robustBufferAccess, UInt &robustnessSize, Int baseVertex);
77 void readInput(Pointer<UInt> &batch);
80 void writeCache(Pointer<Byte> &vertexCache, Pointer<UInt> &tagCache, Pointer<UInt> &batch);
DShaderCore.cpp561 SIMD::UInt halfToFloatBits(SIMD::UInt halfBits) in halfToFloatBits()
563 auto magic = SIMD::UInt(126 << 23); in halfToFloatBits()
565 auto sign16 = halfBits & SIMD::UInt(0x8000); in halfToFloatBits()
566 auto man16 = halfBits & SIMD::UInt(0x03FF); in halfToFloatBits()
567 auto exp16 = halfBits & SIMD::UInt(0x7C00); in halfToFloatBits()
569 auto isDnormOrZero = CmpEQ(exp16, SIMD::UInt(0)); in halfToFloatBits()
570 auto isInfOrNaN = CmpEQ(exp16, SIMD::UInt(0x7C00)); in halfToFloatBits()
574 auto exp32 = (exp16 + SIMD::UInt(0x1C000)) << 13; in halfToFloatBits()
575 auto norm32 = (man32 | exp32) | (isInfOrNaN & SIMD::UInt(0x7F800000)); in halfToFloatBits()
577 auto denorm32 = As<SIMD::UInt>(As<SIMD::Float>(magic + man16) - As<SIMD::Float>(magic)); in halfToFloatBits()
[all …]
DSpirvShaderGLSLstd450.cpp188 dst.move(i, Min(lhs.UInt(i), rhs.UInt(i))); in EmitExtGLSLstd450()
198 dst.move(i, Max(lhs.UInt(i), rhs.UInt(i))); in EmitExtGLSLstd450()
267 dst.move(i, Min(Max(x.UInt(i), minVal.UInt(i)), maxVal.UInt(i))); in EmitExtGLSLstd450()
423 …dst.move(0, (SIMD::UInt(Round(Min(Max(val.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD:… in EmitExtGLSLstd450()
424 …((SIMD::UInt(Round(Min(Max(val.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(255.… in EmitExtGLSLstd450()
425 …((SIMD::UInt(Round(Min(Max(val.Float(2), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(255.… in EmitExtGLSLstd450()
426 …((SIMD::UInt(Round(Min(Max(val.Float(3), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(255.… in EmitExtGLSLstd450()
442 …dst.move(0, (SIMD::UInt(Round(Min(Max(val.Float(0), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD:… in EmitExtGLSLstd450()
443 SIMD::UInt(0xFFFF)) | in EmitExtGLSLstd450()
444 …((SIMD::UInt(Round(Min(Max(val.Float(1), SIMD::Float(0.0f)), SIMD::Float(1.0f)) * SIMD::Float(6553… in EmitExtGLSLstd450()
[all …]
DSpirvShaderDebug.hpp82 case sw::Intermediate::TypeHint::UInt: in fmt()
83 return PrintValue::Ty<sw::SIMD::UInt>::fmt(v.UInt(i)); in fmt()
96 case sw::Intermediate::TypeHint::UInt: in val()
97 return PrintValue::Ty<sw::SIMD::UInt>::val(v.UInt(i)); in val()
136 …Value::Ty<sw::Intermediate>::fmt(*v.intermediate) : PrintValue::Ty<sw::SIMD::UInt>::fmt(v.UInt(0)); in fmt()
141 …Value::Ty<sw::Intermediate>::val(*v.intermediate) : PrintValue::Ty<sw::SIMD::UInt>::val(v.UInt(0)); in val()
DVertexRoutine.cpp46 Pointer<UInt> tagCache = Pointer<UInt>(cache + OFFSET(VertexCache, tag)); in generate()
48 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask, vertexCount)); in generate()
58 UInt index = *batch; in generate()
59 UInt cacheIndex = index & VertexCache::TAG_MASK; in generate()
71 Pointer<Byte> cacheEntry = vertexCache + cacheIndex * UInt((int)sizeof(Vertex)); in generate()
80 batch = Pointer<UInt>(Pointer<Byte>(batch) + sizeof(uint32_t)); in generate()
88 void VertexRoutine::readInput(Pointer<UInt> &batch) in readInput()
98 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData, stride) + sizeof(uint32_t) * (i / 4)); in readInput()
100 UInt robustnessSize(0); in readInput()
103 …robustnessSize = *Pointer<UInt>(data + OFFSET(DrawData, robustnessSize) + sizeof(uint32_t) * (i / … in readInput()
[all …]
DShaderCore.hpp97 using UInt = rr::UInt4; typedef
179 struct Element<UInt>
181 using type = rr::UInt;
223 sw::SIMD::UInt halfToFloatBits(sw::SIMD::UInt halfBits);
224 sw::SIMD::UInt floatToHalfBits(sw::SIMD::UInt floatBits, bool storeInUpperBits);
225 Float4 r11g11b10Unpack(UInt r11g11b10bits);
226 UInt r11g11b10Pack(const Float4 &value);
246 sw::SIMD::UInt CountBits(rr::RValue<sw::SIMD::UInt> const &bits);
250 rr::RValue<sw::SIMD::UInt> NthBit32(rr::RValue<sw::SIMD::UInt> const &bits);
253 rr::RValue<sw::SIMD::UInt> Bitmask32(rr::RValue<sw::SIMD::UInt> const &bitCount);
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DReactor.cpp346 Byte::Byte(RValue<UInt> cast) in Byte()
1049 UShort::UShort(RValue<UInt> cast) in UShort()
2340 Int::Int(RValue<UInt> rhs) in Int()
2355 Int::Int(const UInt &rhs) in Int()
2360 Int::Int(const Reference<UInt> &rhs) in Int()
2375 RValue<Int> Int::operator=(RValue<UInt> rhs) in operator =()
2392 RValue<Int> Int::operator=(const UInt &rhs) in operator =()
2397 RValue<Int> Int::operator=(const Reference<UInt> &rhs) in operator =()
2569 Long::Long(RValue<UInt> cast) in Long()
2636 RValue<UInt> AddAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder) in AddAtomic()
[all …]
DReactor.hpp106 class UInt;
261 struct IntLiteral<UInt>
353 explicit Byte(RValue<UInt> cast);
521 explicit UShort(RValue<UInt> cast);
1148 Int(RValue<UInt> rhs);
1150 Int(const UInt &rhs);
1152 Int(const Reference<UInt> &rhs);
1156 RValue<Int> operator=(RValue<UInt> rhs);
1158 RValue<Int> operator=(const UInt &rhs);
1160 RValue<Int> operator=(const Reference<UInt> &rhs);
[all …]
DEmulatedIntrinsics.hpp52 RValue<UInt> MinAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
54 RValue<UInt> MaxAtomic(RValue<Pointer<UInt>> x, RValue<UInt> y, std::memory_order memoryOrder);
DTraits.hpp33 class UInt;
117 using type = UInt;
118 static UInt cast(uint32_t);
289 struct CanBeUsedAsReturn<UInt>
316 struct CanBeUsedAsParameter<UInt>
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBlitter.cpp356 c.x = Float(*Pointer<UInt>(element)); in readFloat4()
422 c.x = Float(*Pointer<UInt>(element + 0)); in readFloat4()
423 c.y = Float(*Pointer<UInt>(element + 4)); in readFloat4()
446 c = r11g11b10Unpack(*Pointer<UInt>(element)); in readFloat4()
450 c.x = Float(*Pointer<UInt>(element) & UInt(0x000001FF)); // R's mantissa (bits 0-8) in readFloat4()
451 c.y = Float((*Pointer<UInt>(element) & UInt(0x0003FE00)) >> 9); // G's mantissa (bits 9-17) in readFloat4()
452 c.z = Float((*Pointer<UInt>(element) & UInt(0x07FC0000)) >> 18); // B's mantissa (bits 18-26) in readFloat4()
455 Float(UInt(1) << ((*Pointer<UInt>(element) & UInt(0xF8000000)) >> 27)) * in readFloat4()
513 c.x = Float(Int((*Pointer<UInt>(element) & UInt(0x000003FF)))); in readFloat4()
514 c.y = Float(Int((*Pointer<UInt>(element) & UInt(0x000FFC00)) >> 10)); in readFloat4()
[all …]
/third_party/zlib/contrib/ada/
Dzlib-thin.ads36 type UInt is new Interfaces.C.unsigned; -- 16 bits or more
117 Items : UInt;
118 Size : UInt)
136 dictLength : UInt)
153 dictLength : UInt)
195 len : UInt)
201 len : in UInt)
239 len : UInt)
245 len : UInt)
316 Size : in UInt);
[all …]
Dzlib-thin.adb21 function Avail_In (Strm : in Z_Stream) return UInt is
30 function Avail_Out (Strm : in Z_Stream) return UInt is
89 Size : in UInt) is
117 Size : in UInt) is
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DBlitter.cpp260 c.x = Float(*Pointer<UInt>(element)); in read()
360 c.x = Float(*Pointer<UInt>(element + 0)); in read()
361 c.y = Float(*Pointer<UInt>(element + 4)); in read()
385 c.x = Float(Int((*Pointer<UInt>(element) & UInt(0x000003FF)))); in read()
386 c.y = Float(Int((*Pointer<UInt>(element) & UInt(0x000FFC00)) >> 10)); in read()
387 c.z = Float(Int((*Pointer<UInt>(element) & UInt(0x3FF00000)) >> 20)); in read()
388 c.w = Float(Int((*Pointer<UInt>(element) & UInt(0xC0000000)) >> 30)); in read()
395 c.x = Float(Int((*Pointer<UInt>(element) & UInt(0xFFFFFF00)) >> 8)); in read()
398 c.x = Float(Int((*Pointer<UInt>(element)))); in read()
693 if(writeR) { *Pointer<UInt>(element) = As<UInt>(RoundInt(Float(c.x))); } in write()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DVertexRoutine.hpp57 virtual void pipeline(UInt &index) = 0;
61 Vector4f readStream(Pointer<Byte> &buffer, UInt &stride, const Stream &stream, const UInt &index);
62 void readInput(UInt &index);
67 …void transformFeedback(const Pointer<Byte> &vertex, const UInt &primitiveNumber, const UInt &index…
DVertexRoutine.cpp48 UInt vertexCount = *Pointer<UInt>(task + OFFSET(VertexTask,vertexCount)); in generate()
49 UInt primitiveNumber = *Pointer<UInt>(task + OFFSET(VertexTask, primitiveStart)); in generate()
50 UInt indexInPrimitive = 0; in generate()
56 UInt index = *Pointer<UInt>(batch); in generate()
57 UInt tagIndex = index & 0x0000003C; in generate()
58UInt indexQ = !textureSampling ? UInt(index & 0xFFFFFFFC) : index; // FIXME: TEXLDL hack to have… in generate()
60 If(*Pointer<UInt>(tagCache + tagIndex) != indexQ) in generate()
62 *Pointer<UInt>(tagCache + tagIndex) = indexQ; in generate()
69 Pointer<Byte> cacheLine0 = vertexCache + tagIndex * UInt((int)sizeof(Vertex)); in generate()
73 UInt cacheIndex = index & 0x0000003F; in generate()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DMsgPackDocument.h56 uint64_t UInt; member
84 assert(getKind() == Type::UInt); in getUInt()
85 return UInt; in getUInt()
104 assert(getKind() == Type::UInt); in getUInt()
105 return UInt; in getUInt()
159 case Type::UInt:
160 return Lhs.UInt < Rhs.UInt;
290 auto N = DocNode(&KindAndDocs[size_t(Type::UInt)]); in getNode()
291 N.UInt = V; in getNode()
297 auto N = DocNode(&KindAndDocs[size_t(Type::UInt)]); in getNode()
[all …]
/third_party/protobuf/objectivec/Tests/
DGPBSwiftTests.swift82 XCTAssertEqual(msg.repeatedInt32Array.count, UInt(2)) in testProto2Basics()
88 XCTAssertEqual(msg.repeatedEnumArray.count, UInt(2)) in testProto2Basics()
91 XCTAssertEqual(msg.repeatedInt64Array.count, UInt(0)) in testProto2Basics()
92 XCTAssertEqual(msg.mapInt32Int32.count, UInt(2)) in testProto2Basics()
101 XCTAssertEqual(msg.mapInt32Enum.count, UInt(2)) in testProto2Basics()
129 XCTAssertEqual(msg.repeatedInt32Array.count, UInt(0)) in testProto2Basics()
131 XCTAssertEqual(msg.repeatedEnumArray.count, UInt(0)) in testProto2Basics()
132 XCTAssertEqual(msg.mapInt32Int32.count, UInt(0)) in testProto2Basics()
134 XCTAssertEqual(msg.mapInt32Enum.count, UInt(0)) in testProto2Basics()
172 XCTAssertEqual(msg.repeatedInt32Array.count, UInt(2)) in testProto3Basics()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DMsgPackDocumentYAML.cpp51 case msgpack::Type::UInt: in toString()
53 OS << format("%#llx", (unsigned long long)UInt); in toString()
55 OS << UInt; in toString()
122 if (N.getKind() == msgpack::Type::UInt && getKind() == msgpack::Type::Int) in getYAMLTag()
124 if (N.getKind() == msgpack::Type::Int && getKind() == msgpack::Type::UInt) in getYAMLTag()
132 case msgpack::Type::UInt: in getYAMLTag()
190 case Type::UInt: in mustQuote()
DMsgPackReader.cpp59 Obj.Kind = Type::UInt; in read()
62 Obj.Kind = Type::UInt; in read()
65 Obj.Kind = Type::UInt; in read()
68 Obj.Kind = Type::UInt; in read()
154 Obj.Kind = Type::UInt; in read()
155 Obj.UInt = FB; in read()
206 Obj.UInt = static_cast<uint64_t>(endian::read<T, Endianness>(Current)); in readUInt()
/third_party/skia/src/utils/
DSkFloatUtils.h19 typedef void UInt; typedef
25 typedef uint32_t UInt; typedef
31 typedef uint64_t UInt; typedef
58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits;
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/
DReactorUnitTests.cpp1382 *Pointer<UInt>(out + 0) = UInt(Float(0xF0000000u)); in TEST()
1383 *Pointer<UInt>(out + 4) = UInt(Float(0xC0000000u)); in TEST()
1384 *Pointer<UInt>(out + 8) = UInt(Float(0x00000001u)); in TEST()
1385 *Pointer<UInt>(out + 12) = UInt(Float(0xF000F000u)); in TEST()
2321 std::pair<unsigned int, UInt>,
2378 std::pair<int, UInt>,
2889 Function<UInt(UInt x)> function; in TEST()
2891 UInt x = function.Arg<0>(); in TEST()
2911 Function<Void(Pointer<UInt4>, UInt x)> function; in TEST()
2914 UInt x = function.Arg<1>(); in TEST()
[all …]

12345