Home
last modified time | relevance | path

Searched refs:U32 (Results 1 – 25 of 164) sorted by relevance

1234567

/third_party/skia/third_party/externals/tint/src/sem/
Du32_type.cc19 TINT_INSTANTIATE_TYPEINFO(tint::sem::U32);
24 U32::U32() = default;
26 U32::~U32() = default;
28 U32::U32(U32&&) = default;
30 std::string U32::type_name() const { in type_name()
34 std::string U32::FriendlyName(const SymbolTable&) const { in FriendlyName()
38 bool U32::IsConstructible() const { in IsConstructible()
42 uint32_t U32::Size() const { in Size()
46 uint32_t U32::Align() const { in Align()
Du32_type.h26 class U32 : public Castable<U32, Type> {
29 U32();
31 U32(U32&&);
32 ~U32() override;
Dtype.cc68 return IsAnyOf<F32, U32, I32, Bool>(); in is_scalar()
72 return IsAnyOf<F32, U32, I32>(); in is_numeric_scalar()
96 return IsAnyOf<U32, I32>(); in is_integer_scalar()
104 return Is<U32>(); in is_unsigned_integer_scalar()
112 return Is([](const Vector* v) { return v->type()->Is<U32>(); }); in is_unsigned_integer_vector()
116 return Is<U32>() || is_unsigned_integer_vector(); in is_unsigned_scalar_or_vector()
/third_party/skia/third_party/externals/tint/src/ast/
Du32.cc19 TINT_INSTANTIATE_TYPEINFO(tint::ast::U32);
24 U32::U32(ProgramID pid, const Source& src) : Base(pid, src) {} in U32() function in tint::ast::U32
26 U32::~U32() = default;
28 U32::U32(U32&&) = default;
30 std::string U32::FriendlyName(const SymbolTable&) const { in FriendlyName()
34 const U32* U32::Clone(CloneContext* ctx) const { in Clone()
36 return ctx->dst->create<U32>(src); in Clone()
Du32.h26 class U32 : public Castable<U32, Type> {
31 U32(ProgramID pid, const Source& src);
33 U32(U32&&);
34 ~U32() override;
44 const U32* Clone(CloneContext* ctx) const override;
/third_party/lz4/programs/
Dbench.c245 static U32 g_compressibilityDefault = 50;
253 static U32 g_displayLevel = 2; /* 0 : no display; 1: errors; 2 : + result + interaction + war…
283 static U32 g_nbSeconds = NBSECONDS;
321 const size_t* fileSizes, U32 nbFiles, in BMK_benchMem()
325 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem()
330 U32 nbBlocks; in BMK_benchMem()
347 U32 fileNb; in BMK_benchMem()
350 U32 const nbBlocksforThisFile = (U32)((remaining + (blockSize-1)) / blockSize); in BMK_benchMem()
351 U32 const blockEnd = nbBlocks + nbBlocksforThisFile; in BMK_benchMem()
373U32 nbCompressionLoops = (U32)((5 MB) / (srcSize+1)) + 1; /* conservative initial compression spe… in BMK_benchMem()
[all …]
Ddatagen.c61 static unsigned int RDG_rand(U32* src) in RDG_rand()
63 U32 rand32 = *src; in RDG_rand()
77 U32 u = 0; in RDG_fillLiteralDistrib()
80 U32 const weight = (U32)((double)(LTSIZE - u) * ld) + 1; in RDG_fillLiteralDistrib()
81 U32 const end = MIN(u+weight, LTSIZE); in RDG_fillLiteralDistrib()
92 static BYTE RDG_genChar(U32* seed, const litDistribTable lt) in RDG_genChar()
94 U32 id = RDG_rand(seed) & LTMASK; in RDG_genChar()
105 const U32 matchProba32 = (U32)(32768 * matchProba); in RDG_genBlock()
107 U32* seed = seedPtr; in RDG_genBlock()
137 U32 offset = RDG_RAND15BITS + 1; in RDG_genBlock()
[all …]
/third_party/lz4/lib/
Dxxhash.c149 typedef uint32_t U32; typedef
153 typedef unsigned int U32; typedef
160 static U32 XXH_read32(const void* memPtr) { return *(const U32*) memPtr; } in XXH_read32()
166 typedef union { U32 u32; } __attribute__((packed)) unalign;
167 static U32 XXH_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in XXH_read32()
174 static U32 XXH_read32(const void* memPtr) in XXH_read32()
176 U32 val; in XXH_read32()
203 static U32 XXH_swap32 (U32 x) in XXH_swap32()
222 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in XXH_isLittleEndian()
234 FORCE_INLINE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align()
[all …]
Dlz4.c278 typedef uint32_t U32; typedef
288 typedef unsigned int U32; typedef
327 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in LZ4_isLittleEndian()
336 static U32 LZ4_read32(const void* memPtr) { return *(const U32*) memPtr; } in LZ4_read32()
340 static void LZ4_write32(void* memPtr, U32 value) { *(U32*)memPtr = value; } in LZ4_write32()
346 typedef union { U16 u16; U32 u32; reg_t uArch; } __attribute__((packed)) unalign;
349 static U32 LZ4_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in LZ4_read32()
353 static void LZ4_write32(void* memPtr, U32 value) { ((unalign*)memPtr)->u32 = value; } in LZ4_write32()
362 static U32 LZ4_read32(const void* memPtr) in LZ4_read32()
364 U32 val; LZ4_memcpy(&val, memPtr, sizeof(val)); return val; in LZ4_read32()
[all …]
Dlz4hc.c88 static U32 LZ4HC_hashPtr(const void* ptr) { return HASH_FUNCTION(LZ4_read32(ptr)); } in LZ4HC_hashPtr()
108 hc4->nextToUpdate = (U32) startingOffset; in LZ4HC_init_internal()
112 hc4->dictLimit = (U32) startingOffset; in LZ4HC_init_internal()
113 hc4->lowLimit = (U32) startingOffset; in LZ4HC_init_internal()
121 U32* const hashTable = hc4->hashTable; in LZ4HC_Insert()
123 U32 const target = (U32)(ip - base); in LZ4HC_Insert()
124 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert()
127 U32 const h = LZ4HC_hashPtr(base+idx); in LZ4HC_Insert()
162 static U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern) in LZ4HC_rotatePattern()
172 LZ4HC_countPattern(const BYTE* ip, const BYTE* const iEnd, U32 const pattern32) in LZ4HC_countPattern()
[all …]
Dlz4frame.c134 typedef uint32_t U32; typedef
140 typedef unsigned int U32; typedef
147 static U32 LZ4F_readLE32 (const void* src) in LZ4F_readLE32()
150 U32 value32 = srcPtr[0]; in LZ4F_readLE32()
151 value32 += ((U32)srcPtr[1])<< 8; in LZ4F_readLE32()
152 value32 += ((U32)srcPtr[2])<<16; in LZ4F_readLE32()
153 value32 += ((U32)srcPtr[3])<<24; in LZ4F_readLE32()
157 static void LZ4F_writeLE32 (void* dst, U32 value32) in LZ4F_writeLE32()
226 U32 version;
227 U32 cStage;
[all …]
/third_party/skia/third_party/externals/angle2/src/common/third_party/xxhash/
Dxxhash.c149 typedef uint32_t U32; typedef
153 typedef unsigned int U32; typedef
160 static U32 XXH_read32(const void* memPtr) { return *(const U32*) memPtr; } in XXH_read32()
166 typedef union { U32 u32; } __attribute__((packed)) unalign;
167 static U32 XXH_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in XXH_read32()
174 static U32 XXH_read32(const void* memPtr) in XXH_read32()
176 U32 val; in XXH_read32()
203 static U32 XXH_swap32 (U32 x) in XXH_swap32()
222 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in XXH_isLittleEndian()
234 FORCE_INLINE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/common/third_party/xxhash/
Dxxhash.c149 typedef uint32_t U32; typedef
153 typedef unsigned int U32; typedef
160 static U32 XXH_read32(const void* memPtr) { return *(const U32*) memPtr; } in XXH_read32()
166 typedef union { U32 u32; } __attribute__((packed)) unalign;
167 static U32 XXH_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in XXH_read32()
174 static U32 XXH_read32(const void* memPtr) in XXH_read32()
176 U32 val; in XXH_read32()
203 static U32 XXH_swap32 (U32 x) in XXH_swap32()
222 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in XXH_isLittleEndian()
234 FORCE_INLINE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align()
[all …]
/third_party/lz4/tests/
Dframetest.c55 static void FUZ_writeLE32 (void* dstVoidPtr, U32 value32) in FUZ_writeLE32()
74 static const U32 nbTestsDefault = 256 KB;
76 static const U32 prime1 = 2654435761U;
77 static const U32 prime2 = 2246822519U;
96 static U32 no_prompt = 0;
97 static U32 displayLevel = 2;
98 static U32 use_pause = 0;
116 U32 rand32 = *src; in FUZ_rand()
127 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, size_t bufferSize, double proba, U32* see… in FUZ_fillCompressibleNoiseBuffer()
131 U32 P32 = (U32)(32768 * proba); in FUZ_fillCompressibleNoiseBuffer()
[all …]
Dfuzzer.c120 static U32 FUZ_rotl32(U32 u32, U32 nbBits) in FUZ_rotl32()
125 static U32 FUZ_highbit32(U32 v32) in FUZ_highbit32()
133 static U32 FUZ_rand(U32* src) in FUZ_rand()
135 U32 rand32 = *src; in FUZ_rand()
146 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, size_t bufferSize, double proba, U32* see… in FUZ_fillCompressibleNoiseBuffer()
150 U32 const P32 = (U32)(32768 * proba); in FUZ_fillCompressibleNoiseBuffer()
316 static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double compressibility, U32 in FUZ_test()
332 U32 coreRandState = seed; in FUZ_test()
362 { U32 randState = coreRandState ^ PRIME3; in FUZ_test()
374 U32 testNb = 0; in FUZ_test()
[all …]
/third_party/skia/third_party/skcms/src/
DTransform_inl.h17 using U32 = V<uint32_t>; variable
137 SI U32 to_fixed(F f) { return (U32)cast<I32>(f + 0.5f); } in to_fixed()
169 U32 wide = cast<U32>(half); in F_from_Half()
171 U32 s = wide & 0x8000, in F_from_Half()
198 U32 sem = bit_pun<U32>(f), in Half_from_F()
203 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F()
321 U32 bits = bit_pun<U32>(x), in apply_tf()
330 return bit_pun<F>(sign | bit_pun<U32>(v)); in apply_tf()
340 U32 bits = bit_pun<U32>(x), in apply_pq()
348 return bit_pun<F>(sign | bit_pun<U32>(v)); in apply_pq()
[all …]
/third_party/flutter/skia/third_party/skcms/src/
DTransform_inl.h17 using U32 = V<uint32_t>; variable
133 SI U32 to_fixed(F f) { return (U32)cast<I32>(f + 0.5f); } in to_fixed()
157 U32 wide = cast<U32>(half); in F_from_Half()
159 U32 s = wide & 0x8000, in F_from_Half()
186 U32 sem = bit_pun<U32>(f), in Half_from_F()
191 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F()
297 U32 bits = bit_pun<U32>(x), in apply_tf()
306 return bit_pun<F>(sign | bit_pun<U32>(v)); in apply_tf()
413 SI U32 gather_32(const uint8_t* p, I32 ix) { in gather_32()
419 U32 v = load_32(ix); in gather_32()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_type_test.cc30 EXPECT_EQ(ty.U32(), ty.U32()); in TEST()
60 ty.Pointer(ty.U32(), ast::StorageClass::kNone)); in TEST()
63 EXPECT_NE(ty.Vector(ty.I32(), 3), ty.Vector(ty.U32(), 3)); in TEST()
65 EXPECT_NE(ty.Matrix(ty.I32(), 3, 2), ty.Matrix(ty.U32(), 3, 2)); in TEST()
68 EXPECT_NE(ty.Array(ty.I32(), 3, 2), ty.Array(ty.U32(), 3, 2)); in TEST()
80 ty.MultisampledTexture(ast::TextureDimension::k2d, ty.U32())); in TEST()
84 ty.SampledTexture(ast::TextureDimension::k2d, ty.U32())); in TEST()
/third_party/skia/src/opts/
DSkRasterPipeline_opts.h120 using U32 = uint32_t; variable
134 SI U32 round (F v, F scale) { return (uint32_t)(v*scale + 0.5f); } in round()
135 SI U16 pack(U32 v) { return (U16)v; } in pack()
141 SI T gather(const T* p, U32 ix) { return p[ix]; } in gather()
196 using U32 = V<uint32_t>;
208 SI U16 pack(U32 v) { return __builtin_convertvector(v, U16); }
211 SI F if_then_else(I32 c, F t, F e) { return vbslq_f32((U32)c,t,e); }
217 SI U32 round(F v, F scale) { return vcvtnq_u32_f32(v*scale); }
232 SI U32 round(F v, F scale) {
239 SI V<T> gather(const T* p, U32 ix) {
[all …]
/third_party/flutter/skia/src/opts/
DSkRasterPipeline_opts.h118 using U32 = uint32_t; variable
130 SI U32 round (F v, F scale) { return (uint32_t)(v*scale + 0.5f); } in round()
131 SI U16 pack(U32 v) { return (U16)v; } in pack()
137 SI T gather(const T* p, U32 ix) { return p[ix]; } in gather()
192 using U32 = V<uint32_t>;
202 SI U16 pack(U32 v) { return __builtin_convertvector(v, U16); }
205 SI F if_then_else(I32 c, F t, F e) { return vbslq_f32((U32)c,t,e); }
211 SI U32 round(F v, F scale) { return vcvtnq_u32_f32(v*scale); }
226 SI U32 round(F v, F scale) {
233 SI V<T> gather(const T* p, U32 ix) {
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_shader_atomic_fp16_vector.txt184 ADD U32, S32, U64, compute a sum
186 MIN U32, S32, compute minimum
188 MAX U32, S32, compute maximum
190 EXCH U32, S32, F32 exchange memory with operand
209 ADD U32, S32, compute a sum
211 MIN U32, S32, compute minimum
213 MAX U32, S32, compute maximum
215 EXCH U32, S32, F32 exchange memory with operand
235 ADD U32, S32, U64 compute a sum
237 MIN U32, S32, compute minimum
[all …]
DNV_shader_atomic_int64.txt157 ADD U32, S32, U64, S64 compute a sum
158 MIN U32, S32, U64, S64 compute minimum
159 MAX U32, S32, U64, S64 compute maximum
160 AND U32, S32, U64, S64 compute bit-wise AND
161 OR U32, S32, U64, S64 compute bit-wise OR
162 XOR U32, S32, U64, S64 compute bit-wise XOR
163 EXCH U32, S32, U64, S64 exchange memory with operand
164 CSWAP U32, S32, U64, S64 compare-and-swap
/third_party/openGLES/extensions/NV/
DNV_shader_atomic_fp16_vector.txt184 ADD U32, S32, U64, compute a sum
186 MIN U32, S32, compute minimum
188 MAX U32, S32, compute maximum
190 EXCH U32, S32, F32 exchange memory with operand
209 ADD U32, S32, compute a sum
211 MIN U32, S32, compute minimum
213 MAX U32, S32, compute maximum
215 EXCH U32, S32, F32 exchange memory with operand
235 ADD U32, S32, U64 compute a sum
237 MIN U32, S32, compute minimum
[all …]
DNV_shader_atomic_int64.txt157 ADD U32, S32, U64, S64 compute a sum
158 MIN U32, S32, U64, S64 compute minimum
159 MAX U32, S32, U64, S64 compute maximum
160 AND U32, S32, U64, S64 compute bit-wise AND
161 OR U32, S32, U64, S64 compute bit-wise OR
162 XOR U32, S32, U64, S64 compute bit-wise XOR
163 EXCH U32, S32, U64, S64 exchange memory with operand
164 CSWAP U32, S32, U64, S64 compare-and-swap
/third_party/skia/third_party/externals/tint/src/resolver/
Dis_storeable_test.cc34 EXPECT_TRUE(r()->IsStorable(create<sem::U32>())); in TEST_F()
42 EXPECT_TRUE(r()->IsStorable(create<sem::Vector>(create<sem::U32>(), 2))); in TEST_F()
43 EXPECT_TRUE(r()->IsStorable(create<sem::Vector>(create<sem::U32>(), 3))); in TEST_F()
44 EXPECT_TRUE(r()->IsStorable(create<sem::Vector>(create<sem::U32>(), 4))); in TEST_F()
73 EXPECT_TRUE(r()->IsStorable(create<sem::Atomic>(create<sem::U32>()))); in TEST_F()

1234567