Home
last modified time | relevance | path

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

12345678

/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()
/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);
/third_party/flatbuffers/rust/flexbuffers/src/builder/
Dvalue.rs29 UInt(u64), enumerator
115 Value::UInt(_) => UInt, in fxb_type()
190 Value::UInt(x) => x.into(), in width_or_child_width()
201 Value::UInt(offset as u64) in relative_address()
213 Value::UInt(x) => x.into(), in width_in_vector()
222 if let Some(Value::UInt(offset)) = self.relative_address(written_at) { in width_in_vector()
260 UInt => return Value::new_uint_vector(len), in find_vector_type()
282 Bool(x) => UInt(x.into()), in store_value()
283 Null => UInt(0), // Should this be 0 bytes? in store_value()
288 (UInt(x), W8) => buffer.write_u8(x as u8), in store_value()
[all …]
/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/flatbuffers/tests/MyGame/Example/
DAbility.kt20 val id : UInt get() = bb.getInt(bb_pos + 0).toUInt()
21 fun mutateId(id: UInt) : ByteBuffer = bb.putInt(bb_pos + 0, id.toInt()) in mutateId()
22 val distance : UInt get() = bb.getInt(bb_pos + 4).toUInt() in mutateId()
23 fun mutateDistance(distance: UInt) : ByteBuffer = bb.putInt(bb_pos + 4, distance.toInt()) in mutateId()
25 fun createAbility(builder: FlatBufferBuilder, id: UInt, distance: UInt) : Int { in mutateId()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/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 …]
/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 …]
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/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 …]
/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/mindspore/mindspore/core/ir/dtype/
Dnumber.h109 class MS_CORE_API UInt : public Number {
111 UInt() : Number(kNumberTypeUInt, 0) {} in UInt() function
112 explicit UInt(const int nbits);
115 ~UInt() override {} in ~UInt()
116 MS_DECLARE_PARENT(UInt, Number) in MS_DECLARE_PARENT() argument
120 return std::make_shared<UInt>(); in MS_DECLARE_PARENT()
122 return std::make_shared<UInt>(nbits()); in MS_DECLARE_PARENT()
173 inline const TypePtr kUInt8 = std::make_shared<UInt>(static_cast<int>(BitsNum::eBits8));
174 inline const TypePtr kUInt16 = std::make_shared<UInt>(static_cast<int>(BitsNum::eBits16));
175 inline const TypePtr kUInt32 = std::make_shared<UInt>(static_cast<int>(BitsNum::eBits32));
[all …]
/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/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/boost/boost/beast/core/detail/
Dclamp.hpp21 template<class UInt>
24 clamp(UInt x) in clamp()
31 template<class UInt>
34 clamp(UInt x, std::size_t limit) in clamp()
/third_party/boost/libs/beast/include/boost/beast/core/detail/
Dclamp.hpp21 template<class UInt>
24 clamp(UInt x) in clamp()
31 template<class UInt>
34 clamp(UInt x, std::size_t limit) in clamp()
/third_party/mindspore/tests/ut/cpp/ir/
Ddtype_test.cc37 UInt u16;
38 UInt u32;
39 UInt u64;
140 UInt u = UInt(16); in TEST_F()
151 ASSERT_EQ(UInt(8), *StringToType("UInt8")); in TEST_F()
152 ASSERT_EQ(UInt(16), *StringToType("UInt16")); in TEST_F()
153 ASSERT_EQ(UInt(32), *StringToType("UInt32")); in TEST_F()
154 ASSERT_EQ(UInt(64), *StringToType("UInt64")); in TEST_F()

12345678