Lines Matching +full:- +full:15 +full:v
8 * http://www.apache.org/licenses/LICENSE-2.0
25 uint8_t v; in TEST() local
27 ASSERT_EQ(p.unpack(v), 0); in TEST()
32 ASSERT_EQ(v, k); in TEST()
39 uint8_t v; in TEST() local
41 ASSERT_EQ(p.unpack(v), 0); in TEST()
46 ASSERT_EQ(v, k); in TEST()
53 uint8_t v = 0; in TEST() local
55 ASSERT_NE(p.unpack(v), 0); in TEST()
58 // check that v is zero in TEST()
59 ASSERT_EQ(v, 0); in TEST()
66 uint16_t v; in TEST() local
68 ASSERT_EQ(p.unpack(v), 0); in TEST()
73 ASSERT_EQ(v, k); in TEST()
80 uint16_t v; in TEST() local
82 ASSERT_EQ(p.unpack(v), 0); in TEST()
87 ASSERT_EQ(v, k); in TEST()
94 uint16_t v = 0; in TEST() local
96 ASSERT_NE(p.unpack(v), 0); in TEST()
99 // check that v is zero in TEST()
100 ASSERT_EQ(v, 0); in TEST()
107 uint32_t v; in TEST() local
109 ASSERT_EQ(p.unpack(v), 0); in TEST()
114 ASSERT_EQ(v, k); in TEST()
121 uint32_t v; in TEST() local
123 ASSERT_EQ(p.unpack(v), 0); in TEST()
128 ASSERT_EQ(v, k); in TEST()
135 uint32_t v = 0; in TEST() local
137 ASSERT_NE(p.unpack(v), 0); in TEST()
140 // check that v is zero in TEST()
141 ASSERT_EQ(v, 0); in TEST()
148 uint64_t v; in TEST() local
150 ASSERT_EQ(p.unpack(v), 0); in TEST()
155 ASSERT_EQ(v, k); in TEST()
163 uint64_t v; in TEST() local
165 ASSERT_EQ(p.unpack(v), 0); in TEST()
170 ASSERT_EQ(v, k); in TEST()
177 uint64_t v = 0; in TEST() local
179 ASSERT_NE(p.unpack(v), 0); in TEST()
182 // check that v is zero in TEST()
183 ASSERT_EQ(v, 0); in TEST()
190 uint24_t v; in TEST() local
192 ASSERT_EQ(p.unpack(v), 0); in TEST()
197 ASSERT_EQ(v, k); in TEST()
204 uint24_t v; in TEST() local
206 ASSERT_EQ(p.unpack(v), 0); in TEST()
211 ASSERT_EQ(v, k); in TEST()
218 uint24_t v = 0; in TEST() local
220 ASSERT_NE(p.unpack(v), 0); in TEST()
223 // check that v is zero in TEST()
224 ASSERT_EQ(v, 0); in TEST()
229 // individual bytes are unpacked low-order-bits first in TEST()
284 // individual bytes are unpacked low-order-bits first in TEST()
310 // individual bytes are unpacked low-order-bits first in TEST()
334 // individual bytes are unpacked low-order-bits first in TEST()
360 // individual bytes are unpacked low-order-bits first in TEST()
364 std::bitset<8> v; in TEST() local
366 ASSERT_EQ(p.unpack(v), 0); in TEST()
371 ASSERT_EQ(v, k); in TEST()
376 // individual bytes are unpacked low-order-bits first in TEST()
380 std::bitset<7> v; in TEST() local
382 ASSERT_EQ(p.unpack(v), 0); in TEST()
387 ASSERT_EQ(v, k); in TEST()
392 // individual bytes are unpacked low-order-bits first in TEST()
396 std::bitset<9> v; in TEST() local
398 ASSERT_NE(p.unpack(v), 0); in TEST()
403 ASSERT_EQ(v, k); in TEST()
408 // individual bytes are unpacked low-order-bits first in TEST()
463 // individual bytes are unpacked low-order-bits first in TEST()
465 // v1[7:0] v1[15:9] v1[23:16] v1[31:24] in TEST()
468 std::bitset<32> v; in TEST() local
470 ASSERT_EQ(p.unpack(v), 0); in TEST()
475 ASSERT_EQ(v, k); in TEST()
483 std::bitset<31> v; in TEST() local
485 ASSERT_EQ(p.unpack(v), 0); in TEST()
490 ASSERT_EQ(v, k); in TEST()
498 std::bitset<33> v; in TEST() local
500 ASSERT_NE(p.unpack(v), 0); in TEST()
503 // check that v is zero in TEST()
504 ASSERT_EQ(v, 0); in TEST()
509 // an array of bytes will be read verbatim, low-order element first in TEST()
512 std::array<uint8_t, 4> v; in TEST() local
514 ASSERT_EQ(p.unpack(v), 0); in TEST()
519 ASSERT_EQ(v, k); in TEST()
525 // an array of bytes will be read verbatim, low-order element first in TEST()
528 std::array<uint8_t, 4> v; in TEST() local
530 ASSERT_EQ(p.unpack(v), 0); in TEST()
535 ASSERT_EQ(v, k); in TEST()
541 // an array of bytes will be read verbatim, low-order element first in TEST()
544 std::array<uint8_t, 4> v; in TEST() local
546 ASSERT_NE(p.unpack(v), 0); in TEST()
553 ASSERT_EQ(v, k); in TEST()
558 // an array of multi-byte values will be unpacked in order low-order in TEST()
559 // element first, each multi-byte element in LSByte order in TEST()
560 // v[0][7:0] v[0][15:9] v[0][23:16] v[0][31:24] in TEST()
561 // v[1][7:0] v[1][15:9] v[1][23:16] v[1][31:24] in TEST()
562 // v[2][7:0] v[2][15:9] v[2][23:16] v[2][31:24] in TEST()
563 // v[3][7:0] v[3][15:9] v[3][23:16] v[3][31:24] in TEST()
567 std::array<uint32_t, 4> v; in TEST() local
569 ASSERT_EQ(p.unpack(v), 0); in TEST()
575 ASSERT_EQ(v, k); in TEST()
581 // an array of multi-byte values will be unpacked in order low-order in TEST()
582 // element first, each multi-byte element in LSByte order in TEST()
583 // v[0][7:0] v[0][15:9] v[0][23:16] v[0][31:24] in TEST()
584 // v[1][7:0] v[1][15:9] v[1][23:16] v[1][31:24] in TEST()
585 // v[2][7:0] v[2][15:9] v[2][23:16] v[2][31:24] in TEST()
586 // v[3][7:0] v[3][15:9] v[3][23:16] v[3][31:24] in TEST()
591 std::array<uint32_t, 4> v; in TEST() local
593 ASSERT_EQ(p.unpack(v), 0); in TEST()
599 ASSERT_EQ(v, k); in TEST()
605 // an array of multi-byte values will be unpacked in order low-order in TEST()
606 // element first, each multi-byte element in LSByte order in TEST()
607 // v[0][7:0] v[0][15:9] v[0][23:16] v[0][31:24] in TEST()
608 // v[1][7:0] v[1][15:9] v[1][23:16] v[1][31:24] in TEST()
609 // v[2][7:0] v[2][15:9] v[2][23:16] v[2][31:24] in TEST()
610 // v[3][7:0] v[3][15:9] v[3][23:16] v[3][31:24] in TEST()
614 std::array<uint32_t, 4> v; in TEST() local
616 ASSERT_NE(p.unpack(v), 0); in TEST()
622 ASSERT_EQ(v, k); in TEST()
627 // a vector of multi-byte values will be unpacked in order low-order in TEST()
628 // element first, each multi-byte element in LSByte order in TEST()
629 // v[0][7:0] v[0][15:9] v[0][23:16] v[0][31:24] in TEST()
630 // v[1][7:0] v[1][15:9] v[1][23:16] v[1][31:24] in TEST()
631 // v[2][7:0] v[2][15:9] v[2][23:16] v[2][31:24] in TEST()
632 // v[3][7:0] v[3][15:9] v[3][23:16] v[3][31:24] in TEST()
636 std::vector<uint32_t> v; in TEST() local
638 ASSERT_EQ(p.unpack(v), 0); in TEST()
643 ASSERT_EQ(v, k); in TEST()
651 // a vector of multi-byte values will be unpacked in order low-order in TEST()
652 // element first, each multi-byte element in LSByte order, in TEST()
654 // v[0][7:0] v[0][15:9] v[0][23:16] v[0][31:24] in TEST()
655 // v[1][7:0] v[1][15:9] v[1][23:16] v[1][31:24] in TEST()
656 // v[2][7:0] v[2][15:9] v[2][23:16] v[2][31:24] in TEST()
657 // v[3][7:0] v[3][15:9] v[3][23:16] v[3][31:24] in TEST()
661 std::vector<uint32_t> v; in TEST() local
663 ASSERT_EQ(p.unpack(v), 0); in TEST()
670 ASSERT_EQ(v, k); in TEST()
675 // a vector of bytes will be unpacked verbatim, low-order element first in TEST()
678 std::vector<uint8_t> v; in TEST() local
680 ASSERT_EQ(p.unpack(v), 0); in TEST()
685 ASSERT_EQ(v, k); in TEST()
693 std::vector<uint32_t> v; in TEST() local
695 ASSERT_EQ(p.unpack(v), 0); in TEST()
700 ASSERT_EQ(v, k); in TEST()
705 // a vector of bytes will be unpacked verbatim, low-order element first in TEST()
708 std::vector<std::tuple<uint8_t, uint8_t>> v; in TEST() local
710 ASSERT_EQ(p.unpack(v), 0); in TEST()
715 ASSERT_EQ(v, k); in TEST()
720 // a vector of bytes will be unpacked verbatim, low-order element first in TEST()
723 std::vector<std::tuple<uint8_t, uint8_t>> v; in TEST() local
725 ASSERT_EQ(p.unpack(v), 0); in TEST()
730 ASSERT_EQ(v, k); in TEST()
740 // a vector of bytes will be unpacked verbatim, low-order element first in TEST()
743 std::optional<std::tuple<uint8_t, uint32_t>> v; in TEST() local
745 ASSERT_EQ(p.unpack(v), 0); in TEST()
750 ASSERT_EQ(v, k); in TEST()
755 // a vector of bytes will be unpacked verbatim, low-order element first in TEST()
758 std::optional<std::tuple<uint8_t, uint32_t>> v; in TEST() local
760 ASSERT_EQ(p.unpack(v), 0); in TEST()
765 ASSERT_EQ(v, k); in TEST()
770 // all elements will be unpacked in order, with each multi-byte in TEST()
772 // v1[7:0] v2[7:0] v2[15:8] v3[7:0] v3[15:8] v3[23:16] v3[31:24] in TEST()
773 // v4[7:0] v4[15:8] v4[23:16] v4[31:24] in TEST()
799 // all elements will be unpacked in order, with each multi-byte in TEST()
801 // v1[7:0] v2[7:0] v2[15:8] v3[7:0] v3[15:8] v3[23:16] v3[31:24] in TEST()
802 // v4[7:0] v4[15:8] v4[23:16] v4[31:24] in TEST()
807 std::tuple<uint8_t, uint16_t, uint32_t, uint64_t> v; in TEST() local
809 ASSERT_EQ(p.unpack(v), 0); in TEST()
818 ASSERT_EQ(v, k); in TEST()
823 // each element will be unpacked, filling the low-order bits first in TEST()
824 // with multi-byte values getting unpacked LSByte first in TEST()
856 // unaligned multi-byte values will be unpacked the same as in TEST()
857 // other bits, effectively reading from a large value, low-order in TEST()
863 // v4[15:13] will use k[3][2:0] in TEST()