Home
last modified time | relevance | path

Searched refs:endian (Results 1 – 25 of 811) sorted by relevance

12345678910>>...33

/third_party/boost/libs/endian/test/
Dendian_load_test.cpp19 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::int8_t, 1, boost::endian::order::little>( v )), … in main()
20 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::uint8_t, 1, boost::endian::order::little>( v )),… in main()
22 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::int8_t, 1, boost::endian::order::big>( v )), 0x0… in main()
23 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::uint8_t, 1, boost::endian::order::big>( v )), 0x… in main()
27 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::int16_t, 1, boost::endian::order::little>( v )),… in main()
28 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::uint16_t, 1, boost::endian::order::little>( v ))… in main()
30 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::int16_t, 1, boost::endian::order::big>( v )), 0x… in main()
31 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::uint16_t, 1, boost::endian::order::big>( v )), 0… in main()
35 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::int16_t, 2, boost::endian::order::little>( v )),… in main()
36 …BOOST_TEST_EQ( (boost::endian::endian_load<boost::uint16_t, 2, boost::endian::order::little>( v ))… in main()
[all …]
Dendian_arithmetic_test.cpp12 template<BOOST_SCOPED_ENUM(boost::endian::order) Order, BOOST_SCOPED_ENUM(boost::endian::align) Ali… in test_arithmetic_()
14 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y( x ); in test_arithmetic_()
26 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
33 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
40 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
47 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
54 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
61 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
68 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
75 boost::endian::endian_arithmetic<Order, T, sizeof(T) * 8, Align> y2( y ); in test_arithmetic_()
[all …]
Dendian_store_test.cpp67 boost::endian::endian_store<T, 1, boost::endian::order::little>( v, 0x01 ); in test_1()
77 boost::endian::endian_store<T, 1, boost::endian::order::big>( v, 0x01 ); in test_1()
90 boost::endian::endian_store<T, 2, boost::endian::order::little>( v, 0x0102 ); in test_2()
100 boost::endian::endian_store<T, 2, boost::endian::order::big>( v, 0x0102 ); in test_2()
113 boost::endian::endian_store<T, 3, boost::endian::order::little>( v, 0x010203 ); in test_3()
123 boost::endian::endian_store<T, 3, boost::endian::order::big>( v, 0x010203 ); in test_3()
136 boost::endian::endian_store<T, 4, boost::endian::order::little>( v, 0x01020304 ); in test_4()
146 boost::endian::endian_store<T, 4, boost::endian::order::big>( v, 0x01020304 ); in test_4()
159 boost::endian::endian_store<T, 5, boost::endian::order::little>( v, 0x0102030405 ); in test_5()
169 boost::endian::endian_store<T, 5, boost::endian::order::big>( v, 0x0102030405 ); in test_5()
[all …]
Dendian_reverse_test3.cpp12 using boost::endian::endian_reverse; in test_reverse()
19 x2 = boost::endian::native_to_little( boost::endian::little_to_native( x2 ) ); in test_reverse()
22 x2 = boost::endian::native_to_big( boost::endian::big_to_native( x2 ) ); in test_reverse()
28 using boost::endian::endian_reverse_inplace; in test_reverse_inplace()
36 boost::endian::native_to_little_inplace( x2 ); in test_reverse_inplace()
37 boost::endian::little_to_native_inplace( x2 ); in test_reverse_inplace()
40 boost::endian::native_to_big_inplace( x2 ); in test_reverse_inplace()
41 boost::endian::big_to_native_inplace( x2 ); in test_reverse_inplace()
/third_party/boost/boost/spirit/home/support/detail/endian/
Dendian.hpp292 namespace endian namespace
307 class endian;
316 class endian< endianness::big, T, n_bits, alignment::unaligned > class
317 : cover_operators< endian< endianness::big, T, n_bits >, T >
323 endian() BOOST_SPIRIT_ENDIAN_DEFAULT_CONSTRUCT in endian() function in boost::spirit::endian::endian
324 explicit endian(T val) in endian()
333endian & operator=(T val) { detail::store_big_endian<T, n_bits/8>(m_value, val); return *this; } in operator =()
348 class endian< endianness::little, T, n_bits, alignment::unaligned > class
349 : cover_operators< endian< endianness::little, T, n_bits >, T >
355 endian() BOOST_SPIRIT_ENDIAN_DEFAULT_CONSTRUCT in endian() function in boost::spirit::endian::endian
[all …]
/third_party/boost/boost/endian/
Dconversion.hpp26 namespace endian namespace
150 return boost::endian::conditional_reverse<order::big, order::native>( x ); in big_to_native()
156 return boost::endian::conditional_reverse<order::native, order::big>( x ); in native_to_big()
162 return boost::endian::conditional_reverse<order::little, order::native>( x ); in little_to_native()
168 return boost::endian::conditional_reverse<order::native, order::little>( x ); in native_to_little()
212 boost::endian::conditional_reverse_inplace<order::big, order::native>( x ); in big_to_native_inplace()
218 boost::endian::conditional_reverse_inplace<order::native, order::big>( x ); in native_to_big_inplace()
224 boost::endian::conditional_reverse_inplace<order::little, order::native>( x ); in little_to_native_inplace()
230 boost::endian::conditional_reverse_inplace<order::native, order::little>( x ); in native_to_little_inplace()
283 return boost::endian::endian_load<boost::int16_t, 2, order::little>( p ); in load_little_s16()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/ipcpipeline/
Dprotocol.txt23 - a request ID, 4 bytes, little endian
24 - the payload size, 4 bytes, little endian
30 result: 4 bytes, little endian
35 query type: 4 bytes, little endian
38 pts: 8 bytes, little endian
39 dts: 8 bytes, little endian
40 duration: 8 bytes, little endian
41 offset: 8 bytes, little endian
42 offset end: 8 bytes, little endian
43 flags: 8 bytes, little endian
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dfix_word_test.cpp21 spv_endianness_t endian; in TEST() local
23 endian = SPV_ENDIANNESS_LITTLE; in TEST()
25 endian = SPV_ENDIANNESS_BIG; in TEST()
28 ASSERT_EQ(word, spvFixWord(word, endian)); in TEST()
32 spv_endianness_t endian; in TEST() local
34 endian = SPV_ENDIANNESS_BIG; in TEST()
36 endian = SPV_ENDIANNESS_LITTLE; in TEST()
40 ASSERT_EQ(result, spvFixWord(word, endian)); in TEST()
44 spv_endianness_t endian = in TEST() local
50 ASSERT_EQ(result, spvFixDoubleWord(low, high, endian)); in TEST()
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/test/
Dfix_word_test.cpp20 spv_endianness_t endian; in TEST() local
22 endian = SPV_ENDIANNESS_LITTLE; in TEST()
24 endian = SPV_ENDIANNESS_BIG; in TEST()
27 ASSERT_EQ(word, spvFixWord(word, endian)); in TEST()
31 spv_endianness_t endian; in TEST() local
33 endian = SPV_ENDIANNESS_BIG; in TEST()
35 endian = SPV_ENDIANNESS_LITTLE; in TEST()
39 ASSERT_EQ(result, spvFixWord(word, endian)); in TEST()
43 spv_endianness_t endian = in TEST() local
49 ASSERT_EQ(result, spvFixDoubleWord(low, high, endian)); in TEST()
[all …]
Dbinary_endianness_test.cpp22 spv_endianness_t endian; in TEST() local
23 ASSERT_EQ(SPV_ERROR_INVALID_BINARY, spvBinaryEndianness(&binary, &endian)); in TEST()
34 spv_endianness_t endian; in TEST() local
35 ASSERT_EQ(SPV_SUCCESS, spvBinaryEndianness(&binary, &endian)); in TEST()
36 ASSERT_EQ(SPV_ENDIANNESS_LITTLE, endian); in TEST()
47 spv_endianness_t endian; in TEST() local
48 ASSERT_EQ(SPV_SUCCESS, spvBinaryEndianness(&binary, &endian)); in TEST()
49 ASSERT_EQ(SPV_ENDIANNESS_BIG, endian); in TEST()
/third_party/spirv-tools/test/
Dfix_word_test.cpp21 spv_endianness_t endian; in TEST() local
23 endian = SPV_ENDIANNESS_LITTLE; in TEST()
25 endian = SPV_ENDIANNESS_BIG; in TEST()
28 ASSERT_EQ(word, spvFixWord(word, endian)); in TEST()
32 spv_endianness_t endian; in TEST() local
34 endian = SPV_ENDIANNESS_BIG; in TEST()
36 endian = SPV_ENDIANNESS_LITTLE; in TEST()
40 ASSERT_EQ(result, spvFixWord(word, endian)); in TEST()
44 spv_endianness_t endian = in TEST() local
50 ASSERT_EQ(result, spvFixDoubleWord(low, high, endian)); in TEST()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/
Dfix_word_test.cpp21 spv_endianness_t endian; in TEST() local
23 endian = SPV_ENDIANNESS_LITTLE; in TEST()
25 endian = SPV_ENDIANNESS_BIG; in TEST()
28 ASSERT_EQ(word, spvFixWord(word, endian)); in TEST()
32 spv_endianness_t endian; in TEST() local
34 endian = SPV_ENDIANNESS_BIG; in TEST()
36 endian = SPV_ENDIANNESS_LITTLE; in TEST()
40 ASSERT_EQ(result, spvFixWord(word, endian)); in TEST()
44 spv_endianness_t endian = in TEST() local
50 ASSERT_EQ(result, spvFixDoubleWord(low, high, endian)); in TEST()
[all …]
/third_party/boost/boost/spirit/home/x3/binary/
Dbinary.hpp28 , boost::endian::order endian, std::size_t bits>
30 : parser<binary_lit_parser<V, T, endian, bits> >
58 boost::endian::endian_arithmetic<endian, T, bits> n;
62 template <typename T, boost::endian::order endian, std::size_t bits>
63 struct any_binary_parser : parser<any_binary_parser<T, endian, bits > >
93 endian::endian_load<T, bits / CHAR_BIT, endian>(buf), in parse()
99 constexpr binary_lit_parser< V, T, endian, bits> operator()(V n) const in operator ()()
106 typedef any_binary_parser< attrtype, boost::endian::order::endiantype, bits > name##type; \
133 struct get_info<any_binary_parser<T, endian::order::little, bits>>
136 std::string operator()(any_binary_parser<T, endian::order::little, bits> const&) const in operator ()()
[all …]
/third_party/boost/libs/spirit/doc/qi/
Dbinary.qbk13 little, and big endian binary input.
27 Binary native endian parsers are designed to parse binary byte streams
61 in native endian.]]
64 in native endian.]]
67 in native endian.]]
70 in native endian.]]
73 in native endian.]]
76 in native endian.]]
86 [[`byte_`] [Matches any 8 bit native endian binary.]]
87 [[`word`] [Matches any 16 bit native endian binary.]]
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DEndianStream.h24 namespace endian {
27 inline void write(raw_ostream &os, value_type value, endianness endian) { in write() argument
28 value = byte_swap<value_type>(value, endian); in write()
33 inline void write<float>(raw_ostream &os, float value, endianness endian) {
34 write(os, FloatToBits(value), endian);
39 endianness endian) {
40 write(os, DoubleToBits(value), endian);
45 endianness endian) { in write() argument
47 write(os, v, endian); in write()
56 endian::write(OS, Val, Endian); in write()
[all …]
DEndian.h44 namespace endian {
51 inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() argument
52 if ((endian != native) && (endian != system_endianness())) in byte_swap()
58 template<typename value_type, endianness endian>
60 return byte_swap(value, endian); in byte_swap()
65 inline value_type read(const void *memory, endianness endian) { in read() argument
72 return byte_swap<value_type>(ret, endian); in read()
76 endianness endian,
79 return read<value_type, alignment>(memory, endian); in read()
85 inline value_type readNext(const CharT *&memory, endianness endian) { in readNext() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DEndian.h35 namespace endian {
37 template<typename value_type, endianness endian>
39 if (endian != native && sys::IsBigEndianHost != (endian == big)) in byte_swap()
46 endianness endian,
55 return byte_swap<value_type, endian>(ret); in read()
60 template<typename value_type, endianness endian, std::size_t alignment,
63 value_type ret = read<value_type, endian, alignment>(memory); in readNext()
70 endianness endian,
73 value = byte_swap<value_type, endian>(value); in write()
85 template <typename value_type, endianness endian, std::size_t alignment>
[all …]
/third_party/boost/boost/spirit/home/qi/binary/
Dbinary.hpp198 template <BOOST_SCOPED_ENUM(boost::endian::order) bits>
202 struct what<boost::endian::order::little>
211 struct what<boost::endian::order::big>
221 template <typename T, BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
222 struct any_binary_parser : primitive_parser<any_binary_parser<T, endian, bits> >
227 typedef boost::endian::endian_arithmetic<endian, typename T::type,
258 return info(qi::detail::what<endian>::is()); in what()
264 , BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
266 : primitive_parser<binary_lit_parser<V, T, endian, bits> >
285 boost::endian::endian_arithmetic<endian, typename T::type, bits> attr_; in parse()
[all …]
/third_party/boost/boost/spirit/home/karma/binary/
Dbinary.hpp197 template <BOOST_SCOPED_ENUM(boost::endian::order) bits>
201 struct what<boost::endian::order::little>
210 struct what<boost::endian::order::big>
220 template <typename T, BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
222 : primitive_generator<any_binary_generator<T, endian, bits> >
236 boost::endian::endian_arithmetic<endian, typename T::type, bits> p; in generate()
278 return karma::detail::what<endian>::is(); in what()
283 template <typename T, BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
285 : primitive_generator<literal_binary_generator<T, endian, bits> >
326 return karma::detail::what<endian>::is(); in what()
[all …]
/third_party/flutter/skia/third_party/externals/piex/src/
Dpiex.cc137 bool GetExifIfd(const Endian endian, StreamInterface* stream, in GetExifIfd() argument
141 if (!Get32u(stream, sizeof(offset_to_ifd), endian, &offset_to_ifd)) { in GetExifIfd()
146 TiffDirectory tiff_ifd(endian); in GetExifIfd()
147 if (!ParseDirectory(kTiffOffset, offset_to_ifd, endian, {kTiffTagExifIfd}, in GetExifIfd()
154 return ParseDirectory(kTiffOffset, exif_offset, endian, in GetExifIfd()
162 bool GetMakernoteIfd(const TiffDirectory& exif_ifd, const Endian endian, in GetMakernoteIfd() argument
175 endian, {kTiffTagImageWidth, kOlymTagCameraSettings, in GetMakernoteIfd()
182 const Endian endian, StreamInterface* stream, in GetCameraSettingsIfd() argument
193 if (!Get32u(stream, camera_settings_offset, endian, in GetCameraSettingsIfd()
198 makernote_offset + camera_settings_offset, endian, in GetCameraSettingsIfd()
[all …]
/third_party/skia/third_party/externals/piex/src/
Dpiex.cc137 bool GetExifIfd(const Endian endian, StreamInterface* stream, in GetExifIfd() argument
141 if (!Get32u(stream, sizeof(offset_to_ifd), endian, &offset_to_ifd)) { in GetExifIfd()
146 TiffDirectory tiff_ifd(endian); in GetExifIfd()
147 if (!ParseDirectory(kTiffOffset, offset_to_ifd, endian, {kTiffTagExifIfd}, in GetExifIfd()
154 return ParseDirectory(kTiffOffset, exif_offset, endian, in GetExifIfd()
162 bool GetMakernoteIfd(const TiffDirectory& exif_ifd, const Endian endian, in GetMakernoteIfd() argument
175 endian, {kTiffTagImageWidth, kOlymTagCameraSettings, in GetMakernoteIfd()
182 const Endian endian, StreamInterface* stream, in GetCameraSettingsIfd() argument
193 if (!Get32u(stream, camera_settings_offset, endian, in GetCameraSettingsIfd()
198 makernote_offset + camera_settings_offset, endian, in GetCameraSettingsIfd()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
Dspirv_endian.cpp34 uint32_t spvFixWord(const uint32_t word, const spv_endianness_t endian) { in spvFixWord() argument
35 if ((SPV_ENDIANNESS_LITTLE == endian && I32_ENDIAN_HOST == I32_ENDIAN_BIG) || in spvFixWord()
36 (SPV_ENDIANNESS_BIG == endian && I32_ENDIAN_HOST == I32_ENDIAN_LITTLE)) { in spvFixWord()
45 const spv_endianness_t endian) { in spvFixDoubleWord() argument
46 return (uint64_t(spvFixWord(high, endian)) << 32) | spvFixWord(low, endian); in spvFixDoubleWord()
72 bool spvIsHostEndian(spv_endianness_t endian) { in spvIsHostEndian() argument
73 return ((SPV_ENDIANNESS_LITTLE == endian) && in spvIsHostEndian()
75 ((SPV_ENDIANNESS_BIG == endian) && in spvIsHostEndian()
/third_party/skia/third_party/externals/spirv-tools/source/
Dspirv_endian.cpp34 uint32_t spvFixWord(const uint32_t word, const spv_endianness_t endian) { in spvFixWord() argument
35 if ((SPV_ENDIANNESS_LITTLE == endian && I32_ENDIAN_HOST == I32_ENDIAN_BIG) || in spvFixWord()
36 (SPV_ENDIANNESS_BIG == endian && I32_ENDIAN_HOST == I32_ENDIAN_LITTLE)) { in spvFixWord()
45 const spv_endianness_t endian) { in spvFixDoubleWord() argument
46 return (uint64_t(spvFixWord(high, endian)) << 32) | spvFixWord(low, endian); in spvFixDoubleWord()
72 bool spvIsHostEndian(spv_endianness_t endian) { in spvIsHostEndian() argument
73 return ((SPV_ENDIANNESS_LITTLE == endian) && in spvIsHostEndian()
75 ((SPV_ENDIANNESS_BIG == endian) && in spvIsHostEndian()
/third_party/spirv-tools/source/
Dspirv_endian.cpp34 uint32_t spvFixWord(const uint32_t word, const spv_endianness_t endian) { in spvFixWord() argument
35 if ((SPV_ENDIANNESS_LITTLE == endian && I32_ENDIAN_HOST == I32_ENDIAN_BIG) || in spvFixWord()
36 (SPV_ENDIANNESS_BIG == endian && I32_ENDIAN_HOST == I32_ENDIAN_LITTLE)) { in spvFixWord()
45 const spv_endianness_t endian) { in spvFixDoubleWord() argument
46 return (uint64_t(spvFixWord(high, endian)) << 32) | spvFixWord(low, endian); in spvFixDoubleWord()
72 bool spvIsHostEndian(spv_endianness_t endian) { in spvIsHostEndian() argument
73 return ((SPV_ENDIANNESS_LITTLE == endian) && in spvIsHostEndian()
75 ((SPV_ENDIANNESS_BIG == endian) && in spvIsHostEndian()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/
Dspirv_endian.cpp34 uint32_t spvFixWord(const uint32_t word, const spv_endianness_t endian) { in spvFixWord() argument
35 if ((SPV_ENDIANNESS_LITTLE == endian && I32_ENDIAN_HOST == I32_ENDIAN_BIG) || in spvFixWord()
36 (SPV_ENDIANNESS_BIG == endian && I32_ENDIAN_HOST == I32_ENDIAN_LITTLE)) { in spvFixWord()
45 const spv_endianness_t endian) { in spvFixDoubleWord() argument
46 return (uint64_t(spvFixWord(high, endian)) << 32) | spvFixWord(low, endian); in spvFixDoubleWord()
72 bool spvIsHostEndian(spv_endianness_t endian) { in spvIsHostEndian() argument
73 return ((SPV_ENDIANNESS_LITTLE == endian) && in spvIsHostEndian()
75 ((SPV_ENDIANNESS_BIG == endian) && in spvIsHostEndian()

12345678910>>...33