/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/ |
D | bits_test.cc | 511 static_assert(bit_width(uint8_t{}) == 0, ""); in TEST() 512 static_assert(bit_width(uint8_t{1}) == 1, ""); in TEST() 513 static_assert(bit_width(uint8_t{3}) == 2, ""); in TEST() 514 static_assert(bit_width(static_cast<uint8_t>(-1)) == 8, ""); in TEST() 515 static_assert(bit_width(uint16_t{}) == 0, ""); in TEST() 516 static_assert(bit_width(uint16_t{1}) == 1, ""); in TEST() 517 static_assert(bit_width(uint16_t{3}) == 2, ""); in TEST() 518 static_assert(bit_width(static_cast<uint16_t>(-1)) == 16, ""); in TEST() 519 static_assert(bit_width(uint32_t{}) == 0, ""); in TEST() 520 static_assert(bit_width(uint32_t{1}) == 1, ""); in TEST() [all …]
|
D | bits.h | 135 bit_width(T x) noexcept { in bit_width() function 145 return x == 0 ? 0 : T{1} << (bit_width(x) - 1); in bit_floor() 162 return has_single_bit(x) ? T{1} << (bit_width(x) - 1) in bit_ceil() 169 using std::bit_width;
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | parse_number.cpp | 70 const uint32_t bit_width = AssumedBitWidth(type); in ParseAndEncodeIntegerNumber() local 72 if (bit_width > 64) { in ParseAndEncodeIntegerNumber() 74 << "Unsupported " << bit_width << "-bit integer literals"; in ParseAndEncodeIntegerNumber() 103 << decoded_signed << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 118 << decoded_bits << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 123 if (bit_width > 32) { in ParseAndEncodeIntegerNumber() 147 const auto bit_width = AssumedBitWidth(type); in ParseAndEncodeFloatingPointNumber() local 148 switch (bit_width) { in ParseAndEncodeFloatingPointNumber() 188 << "Unsupported " << bit_width << "-bit float literals"; in ParseAndEncodeFloatingPointNumber()
|
D | parse_number.h | 122 const uint32_t bit_width = AssumedBitWidth(type); in CheckRangeAndIfHexThenSignExtend() local 124 (bit_width == 64) ? -1 : ((uint64_t(1) << bit_width) - 1); in CheckRangeAndIfHexThenSignExtend()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
D | parse_number.cpp | 68 const uint32_t bit_width = AssumedBitWidth(type); in ParseAndEncodeIntegerNumber() local 70 if (bit_width > 64) { in ParseAndEncodeIntegerNumber() 71 ErrorMsgStream(error_msg) << "Unsupported " << bit_width in ParseAndEncodeIntegerNumber() 101 << decoded_signed << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 116 << decoded_bits << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 121 if (bit_width > 32) { in ParseAndEncodeIntegerNumber() 145 const auto bit_width = AssumedBitWidth(type); in ParseAndEncodeFloatingPointNumber() local 146 switch (bit_width) { in ParseAndEncodeFloatingPointNumber() 185 ErrorMsgStream(error_msg) << "Unsupported " << bit_width in ParseAndEncodeFloatingPointNumber()
|
D | parse_number.h | 121 const uint32_t bit_width = AssumedBitWidth(type); in CheckRangeAndIfHexThenSignExtend() local 123 (bit_width == 64) ? -1 : ((uint64_t(1) << bit_width) - 1); in CheckRangeAndIfHexThenSignExtend()
|
/third_party/skia/third_party/externals/spirv-tools/source/util/ |
D | parse_number.cpp | 70 const uint32_t bit_width = AssumedBitWidth(type); in ParseAndEncodeIntegerNumber() local 72 if (bit_width > 64) { in ParseAndEncodeIntegerNumber() 74 << "Unsupported " << bit_width << "-bit integer literals"; in ParseAndEncodeIntegerNumber() 103 << decoded_signed << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 118 << decoded_bits << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 123 if (bit_width > 32) { in ParseAndEncodeIntegerNumber() 147 const auto bit_width = AssumedBitWidth(type); in ParseAndEncodeFloatingPointNumber() local 148 switch (bit_width) { in ParseAndEncodeFloatingPointNumber() 188 << "Unsupported " << bit_width << "-bit float literals"; in ParseAndEncodeFloatingPointNumber()
|
D | parse_number.h | 122 const uint32_t bit_width = AssumedBitWidth(type); in CheckRangeAndIfHexThenSignExtend() local 124 (bit_width == 64) ? -1 : ((uint64_t(1) << bit_width) - 1); in CheckRangeAndIfHexThenSignExtend()
|
/third_party/spirv-tools/source/util/ |
D | parse_number.cpp | 70 const uint32_t bit_width = AssumedBitWidth(type); in ParseAndEncodeIntegerNumber() local 72 if (bit_width > 64) { in ParseAndEncodeIntegerNumber() 74 << "Unsupported " << bit_width << "-bit integer literals"; in ParseAndEncodeIntegerNumber() 103 << decoded_signed << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 118 << decoded_bits << " does not fit in a " << std::dec << bit_width in ParseAndEncodeIntegerNumber() 123 if (bit_width > 32) { in ParseAndEncodeIntegerNumber() 147 const auto bit_width = AssumedBitWidth(type); in ParseAndEncodeFloatingPointNumber() local 148 switch (bit_width) { in ParseAndEncodeFloatingPointNumber() 188 << "Unsupported " << bit_width << "-bit float literals"; in ParseAndEncodeFloatingPointNumber()
|
D | parse_number.h | 122 const uint32_t bit_width = AssumedBitWidth(type); in CheckRangeAndIfHexThenSignExtend() local 124 (bit_width == 64) ? -1 : ((uint64_t(1) << bit_width) - 1); in CheckRangeAndIfHexThenSignExtend()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/ |
D | spirv_stats.cpp | 122 const uint32_t bit_width = type_decl_inst.GetOperandAs<uint32_t>(1); in ProcessConstant() local 125 if (bit_width == 16) { in ProcessConstant() 130 } else if (bit_width == 32) { in ProcessConstant() 135 } else if (bit_width == 64) { in ProcessConstant() 144 const uint32_t bit_width = type_decl_inst.GetOperandAs<uint32_t>(1); in ProcessConstant() local 145 if (bit_width == 32) { in ProcessConstant() 147 } else if (bit_width == 64) { in ProcessConstant() 150 assert(bit_width == 16); in ProcessConstant()
|
D | name_mapper.cpp | 197 const auto bit_width = inst.words[2]; in ParseInstruction() local 198 switch (bit_width) { in ParseInstruction() 212 root = to_string(bit_width); in ParseInstruction() 220 const auto bit_width = inst.words[2]; in ParseInstruction() local 221 switch (bit_width) { in ParseInstruction() 232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
|
/third_party/libsnd/tests/ |
D | dwvw_test.c | 42 static void dwvw_test (const char *filename, int format, int bit_width) ; 55 dwvw_test (const char *filename, int format, int bit_width) in dwvw_test() argument 67 bit_mask = arith_shift_left (-1, 32 - bit_width) ; in dwvw_test() 97 write_buf [k] >> (32 - bit_width), read_buf [k] >> (32 - bit_width), in dwvw_test()
|
/third_party/flatbuffers/python/flatbuffers/ |
D | flexbuffers.py | 204 def Pack(type_, bit_width): argument 205 return (int(type_) << 2) | bit_width 859 def Int(value, bit_width): argument 860 return Value(value, Type.INT, bit_width) 863 def UInt(value, bit_width): argument 864 return Value(value, Type.UINT, bit_width) 867 def Float(value, bit_width): argument 868 return Value(value, Type.FLOAT, bit_width) 907 bit_width = BitWidth.U(offset_loc - self._value) 908 if byte_width == (1 << bit_width): [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 185 uint32_t bit_width = in Apply() local 196 FindSuitableStepAndInitialValueConstants(component_val, bit_width, in Apply() 234 uint32_t bit_width, bool is_signed, in FindSuitableStepAndInitialValueConstants() argument 245 fuzzerutil::IntToWords(initial_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants() 249 fuzzerutil::IntToWords(step_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
|
/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 184 uint32_t bit_width = in Apply() local 195 FindSuitableStepAndInitialValueConstants(component_val, bit_width, in Apply() 233 uint32_t bit_width, bool is_signed, in FindSuitableStepAndInitialValueConstants() argument 244 fuzzerutil::IntToWords(initial_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants() 248 fuzzerutil::IntToWords(step_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 185 uint32_t bit_width = in Apply() local 196 FindSuitableStepAndInitialValueConstants(component_val, bit_width, in Apply() 234 uint32_t bit_width, bool is_signed, in FindSuitableStepAndInitialValueConstants() argument 245 fuzzerutil::IntToWords(initial_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants() 249 fuzzerutil::IntToWords(step_value, bit_width, is_signed), bit_width, in FindSuitableStepAndInitialValueConstants()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | fold_spec_constant_op_and_composite_pass.cpp | 329 uint32_t bit_width = 0; in EncodeIntegerAsWords() local 333 bit_width = int_ty->width(); in EncodeIntegerAsWords() 339 bit_width = 1; in EncodeIntegerAsWords() 344 assert(bit_width > 0); in EncodeIntegerAsWords() 349 if (bit_width < bits_per_word) { in EncodeIntegerAsWords() 350 const uint32_t num_high_bits_to_mask = bits_per_word - bit_width; in EncodeIntegerAsWords() 353 utils::IsBitAtPositionSet(first_word, bit_width - 1); in EncodeIntegerAsWords() 365 for (uint32_t current_bit = bits_per_word; current_bit < bit_width; in EncodeIntegerAsWords()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | fold_spec_constant_op_and_composite_pass.cpp | 329 uint32_t bit_width = 0; in EncodeIntegerAsWords() local 333 bit_width = int_ty->width(); in EncodeIntegerAsWords() 339 bit_width = 1; in EncodeIntegerAsWords() 344 assert(bit_width > 0); in EncodeIntegerAsWords() 349 if (bit_width < bits_per_word) { in EncodeIntegerAsWords() 350 const uint32_t num_high_bits_to_mask = bits_per_word - bit_width; in EncodeIntegerAsWords() 353 utils::IsBitAtPositionSet(first_word, bit_width - 1); in EncodeIntegerAsWords() 365 for (uint32_t current_bit = bits_per_word; current_bit < bit_width; in EncodeIntegerAsWords()
|
/third_party/spirv-tools/source/opt/ |
D | fold_spec_constant_op_and_composite_pass.cpp | 329 uint32_t bit_width = 0; in EncodeIntegerAsWords() local 333 bit_width = int_ty->width(); in EncodeIntegerAsWords() 339 bit_width = 1; in EncodeIntegerAsWords() 344 assert(bit_width > 0); in EncodeIntegerAsWords() 349 if (bit_width < bits_per_word) { in EncodeIntegerAsWords() 350 const uint32_t num_high_bits_to_mask = bits_per_word - bit_width; in EncodeIntegerAsWords() 353 utils::IsBitAtPositionSet(first_word, bit_width - 1); in EncodeIntegerAsWords() 365 for (uint32_t current_bit = bits_per_word; current_bit < bit_width; in EncodeIntegerAsWords()
|
/third_party/libsnd/src/ |
D | dwvw.c | 41 { int bit_width, dwm_maxsize, max_delta, span ; member 97 pdwvw->bit_width = bitwidth ; in dwvw_init() 325 delta_width = (delta_width + delta_width_modifier + pdwvw->bit_width) % pdwvw->bit_width ; in dwvw_decode_data() 347 ptr [count] = arith_shift_left (sample, 32 - pdwvw->bit_width) ; in dwvw_decode_data() 417 { int bitwidth = pdwvw->bit_width ; in dwvw_read_reset() 421 pdwvw->bit_width = bitwidth ; in dwvw_read_reset() 488 { delta = (ptr [count] >> (32 - pdwvw->bit_width)) - pdwvw->last_sample ; in dwvw_encode_data() 521 delta_width_modifier = (delta_width - pdwvw->last_delta_width) % pdwvw->bit_width ; in dwvw_encode_data() 523 delta_width_modifier -= pdwvw->bit_width ; in dwvw_encode_data() 525 delta_width_modifier += pdwvw->bit_width ; in dwvw_encode_data() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/ |
D | name_mapper.cpp | 197 const auto bit_width = inst.words[2]; in ParseInstruction() local 198 switch (bit_width) { in ParseInstruction() 212 root = to_string(bit_width); in ParseInstruction() 220 const auto bit_width = inst.words[2]; in ParseInstruction() local 221 switch (bit_width) { in ParseInstruction() 232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/ |
D | name_mapper.cpp | 197 const auto bit_width = inst.words[2]; in ParseInstruction() local 198 switch (bit_width) { in ParseInstruction() 212 root = to_string(bit_width); in ParseInstruction() 220 const auto bit_width = inst.words[2]; in ParseInstruction() local 221 switch (bit_width) { in ParseInstruction() 232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
|
/third_party/spirv-tools/source/ |
D | name_mapper.cpp | 197 const auto bit_width = inst.words[2]; in ParseInstruction() local 198 switch (bit_width) { in ParseInstruction() 212 root = to_string(bit_width); in ParseInstruction() 220 const auto bit_width = inst.words[2]; in ParseInstruction() local 221 switch (bit_width) { in ParseInstruction() 232 SaveName(result_id, std::string("fp") + to_string(bit_width)); in ParseInstruction()
|
/third_party/flatbuffers/include/flatbuffers/ |
D | flexbuffers.h | 802 inline uint8_t PackedType(BitWidth bit_width, Type type) { in PackedType() argument 803 return static_cast<uint8_t>(bit_width | (type << 2)); in PackedType() 1381 template<typename T> void PushIndirect(T val, Type type, BitWidth bit_width) { in PushIndirect() argument 1382 auto byte_width = Align(bit_width); in PushIndirect() 1385 stack_.push_back(Value(static_cast<uint64_t>(iloc), type, bit_width)); in PushIndirect() 1463 auto bit_width = WidthU(offset); in ElemWidth() local 1464 if (static_cast<size_t>(static_cast<size_t>(1U) << bit_width) == in ElemWidth() 1466 return bit_width; in ElemWidth() 1495 auto bit_width = WidthU(len); in CreateBlob() local 1496 auto byte_width = Align(bit_width); in CreateBlob() [all …]
|