Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 1 | --- 16 be |
| 2 | osmo_store16be_ext(0x2211, &buf[0], 2) = 22 11 00 00 |
| 3 | osmo_load16be_ext(&buf[0], 2) = 0x2211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 4 | osmo_load16be_ext_2(&buf[0], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 5 | osmo_store16be_ext(0x2211, &buf[1], 2) = 00 22 11 00 |
| 6 | osmo_load16be_ext(&buf[1], 2) = 0x2211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 7 | osmo_load16be_ext_2(&buf[1], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 8 | osmo_store16be_ext(0x2211, &buf[0], 1) = 11 00 |
| 9 | osmo_load16be_ext(&buf[0], 1) = 0x1100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 10 | osmo_load16be_ext_2(&buf[0], 1) = 0x11 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 11 | --- 16 le |
| 12 | osmo_store16le_ext(0x2211, &buf[0], 2) = 11 22 00 00 |
| 13 | osmo_load16le_ext(&buf[0], 2) = 0x2211 |
| 14 | osmo_store16le_ext(0x2211, &buf[1], 2) = 00 11 22 00 |
| 15 | osmo_load16le_ext(&buf[1], 2) = 0x2211 |
| 16 | osmo_store16le_ext(0x2211, &buf[0], 1) = 11 00 |
| 17 | osmo_load16le_ext(&buf[0], 1) = 0x11 |
| 18 | --- 32 be |
| 19 | osmo_store32be_ext(0x44332211, &buf[0], 4) = 44 33 22 11 00 00 00 00 |
| 20 | osmo_load32be_ext(&buf[0], 4) = 0x44332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 21 | osmo_load32be_ext_2(&buf[0], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 22 | osmo_store32be_ext(0x44332211, &buf[1], 4) = 00 44 33 22 11 00 00 00 |
| 23 | osmo_load32be_ext(&buf[1], 4) = 0x44332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 24 | osmo_load32be_ext_2(&buf[1], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 25 | osmo_store32be_ext(0x44332211, &buf[2], 4) = 00 00 44 33 22 11 00 00 |
| 26 | osmo_load32be_ext(&buf[2], 4) = 0x44332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 27 | osmo_load32be_ext_2(&buf[2], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 28 | osmo_store32be_ext(0x44332211, &buf[3], 4) = 00 00 00 44 33 22 11 00 |
| 29 | osmo_load32be_ext(&buf[3], 4) = 0x44332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 30 | osmo_load32be_ext_2(&buf[3], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 31 | osmo_store32be_ext(0x44332211, &buf[0], 3) = 33 22 11 00 00 00 |
| 32 | osmo_load32be_ext(&buf[0], 3) = 0x33221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 33 | osmo_load32be_ext_2(&buf[0], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 34 | osmo_store32be_ext(0x44332211, &buf[1], 3) = 00 33 22 11 00 00 |
| 35 | osmo_load32be_ext(&buf[1], 3) = 0x33221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 36 | osmo_load32be_ext_2(&buf[1], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 37 | osmo_store32be_ext(0x44332211, &buf[2], 3) = 00 00 33 22 11 00 |
| 38 | osmo_load32be_ext(&buf[2], 3) = 0x33221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 39 | osmo_load32be_ext_2(&buf[2], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 40 | osmo_store32be_ext(0x44332211, &buf[0], 2) = 22 11 00 00 |
| 41 | osmo_load32be_ext(&buf[0], 2) = 0x22110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 42 | osmo_load32be_ext_2(&buf[0], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 43 | osmo_store32be_ext(0x44332211, &buf[1], 2) = 00 22 11 00 |
| 44 | osmo_load32be_ext(&buf[1], 2) = 0x22110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 45 | osmo_load32be_ext_2(&buf[1], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 46 | osmo_store32be_ext(0x44332211, &buf[0], 1) = 11 00 |
| 47 | osmo_load32be_ext(&buf[0], 1) = 0x11000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 48 | osmo_load32be_ext_2(&buf[0], 1) = 0x11 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 49 | --- 32 le |
| 50 | osmo_store32le_ext(0x44332211, &buf[0], 4) = 11 22 33 44 00 00 00 00 |
| 51 | osmo_load32le_ext(&buf[0], 4) = 0x44332211 |
| 52 | osmo_store32le_ext(0x44332211, &buf[1], 4) = 00 11 22 33 44 00 00 00 |
| 53 | osmo_load32le_ext(&buf[1], 4) = 0x44332211 |
| 54 | osmo_store32le_ext(0x44332211, &buf[2], 4) = 00 00 11 22 33 44 00 00 |
| 55 | osmo_load32le_ext(&buf[2], 4) = 0x44332211 |
| 56 | osmo_store32le_ext(0x44332211, &buf[3], 4) = 00 00 00 11 22 33 44 00 |
| 57 | osmo_load32le_ext(&buf[3], 4) = 0x44332211 |
| 58 | osmo_store32le_ext(0x44332211, &buf[0], 3) = 11 22 33 00 00 00 |
| 59 | osmo_load32le_ext(&buf[0], 3) = 0x332211 |
| 60 | osmo_store32le_ext(0x44332211, &buf[1], 3) = 00 11 22 33 00 00 |
| 61 | osmo_load32le_ext(&buf[1], 3) = 0x332211 |
| 62 | osmo_store32le_ext(0x44332211, &buf[2], 3) = 00 00 11 22 33 00 |
| 63 | osmo_load32le_ext(&buf[2], 3) = 0x332211 |
| 64 | osmo_store32le_ext(0x44332211, &buf[0], 2) = 11 22 00 00 |
| 65 | osmo_load32le_ext(&buf[0], 2) = 0x2211 |
| 66 | osmo_store32le_ext(0x44332211, &buf[1], 2) = 00 11 22 00 |
| 67 | osmo_load32le_ext(&buf[1], 2) = 0x2211 |
| 68 | osmo_store32le_ext(0x44332211, &buf[0], 1) = 11 00 |
| 69 | osmo_load32le_ext(&buf[0], 1) = 0x11 |
| 70 | --- 64 be |
| 71 | osmo_store64be_ext(0x8877665544332211, &buf[0], 8) = 88 77 66 55 44 33 22 11 00 00 00 00 00 00 00 00 |
| 72 | osmo_load64be_ext(&buf[0], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 73 | osmo_load64be_ext_2(&buf[0], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 74 | osmo_store64be_ext(0x8877665544332211, &buf[1], 8) = 00 88 77 66 55 44 33 22 11 00 00 00 00 00 00 00 |
| 75 | osmo_load64be_ext(&buf[1], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 76 | osmo_load64be_ext_2(&buf[1], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 77 | osmo_store64be_ext(0x8877665544332211, &buf[2], 8) = 00 00 88 77 66 55 44 33 22 11 00 00 00 00 00 00 |
| 78 | osmo_load64be_ext(&buf[2], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 79 | osmo_load64be_ext_2(&buf[2], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 80 | osmo_store64be_ext(0x8877665544332211, &buf[3], 8) = 00 00 00 88 77 66 55 44 33 22 11 00 00 00 00 00 |
| 81 | osmo_load64be_ext(&buf[3], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 82 | osmo_load64be_ext_2(&buf[3], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 83 | osmo_store64be_ext(0x8877665544332211, &buf[4], 8) = 00 00 00 00 88 77 66 55 44 33 22 11 00 00 00 00 |
| 84 | osmo_load64be_ext(&buf[4], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 85 | osmo_load64be_ext_2(&buf[4], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 86 | osmo_store64be_ext(0x8877665544332211, &buf[5], 8) = 00 00 00 00 00 88 77 66 55 44 33 22 11 00 00 00 |
| 87 | osmo_load64be_ext(&buf[5], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 88 | osmo_load64be_ext_2(&buf[5], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 89 | osmo_store64be_ext(0x8877665544332211, &buf[6], 8) = 00 00 00 00 00 00 88 77 66 55 44 33 22 11 00 00 |
| 90 | osmo_load64be_ext(&buf[6], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 91 | osmo_load64be_ext_2(&buf[6], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 92 | osmo_store64be_ext(0x8877665544332211, &buf[7], 8) = 00 00 00 00 00 00 00 88 77 66 55 44 33 22 11 00 |
| 93 | osmo_load64be_ext(&buf[7], 8) = 0x8877665544332211 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 94 | osmo_load64be_ext_2(&buf[7], 8) = 0x8877665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 95 | osmo_store64be_ext(0x8877665544332211, &buf[0], 7) = 77 66 55 44 33 22 11 00 00 00 00 00 00 00 |
| 96 | osmo_load64be_ext(&buf[0], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 97 | osmo_load64be_ext_2(&buf[0], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 98 | osmo_store64be_ext(0x8877665544332211, &buf[1], 7) = 00 77 66 55 44 33 22 11 00 00 00 00 00 00 |
| 99 | osmo_load64be_ext(&buf[1], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 100 | osmo_load64be_ext_2(&buf[1], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 101 | osmo_store64be_ext(0x8877665544332211, &buf[2], 7) = 00 00 77 66 55 44 33 22 11 00 00 00 00 00 |
| 102 | osmo_load64be_ext(&buf[2], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 103 | osmo_load64be_ext_2(&buf[2], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 104 | osmo_store64be_ext(0x8877665544332211, &buf[3], 7) = 00 00 00 77 66 55 44 33 22 11 00 00 00 00 |
| 105 | osmo_load64be_ext(&buf[3], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 106 | osmo_load64be_ext_2(&buf[3], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 107 | osmo_store64be_ext(0x8877665544332211, &buf[4], 7) = 00 00 00 00 77 66 55 44 33 22 11 00 00 00 |
| 108 | osmo_load64be_ext(&buf[4], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 109 | osmo_load64be_ext_2(&buf[4], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 110 | osmo_store64be_ext(0x8877665544332211, &buf[5], 7) = 00 00 00 00 00 77 66 55 44 33 22 11 00 00 |
| 111 | osmo_load64be_ext(&buf[5], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 112 | osmo_load64be_ext_2(&buf[5], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 113 | osmo_store64be_ext(0x8877665544332211, &buf[6], 7) = 00 00 00 00 00 00 77 66 55 44 33 22 11 00 |
| 114 | osmo_load64be_ext(&buf[6], 7) = 0x7766554433221100 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 115 | osmo_load64be_ext_2(&buf[6], 7) = 0x77665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 116 | osmo_store64be_ext(0x8877665544332211, &buf[0], 6) = 66 55 44 33 22 11 00 00 00 00 00 00 |
| 117 | osmo_load64be_ext(&buf[0], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 118 | osmo_load64be_ext_2(&buf[0], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 119 | osmo_store64be_ext(0x8877665544332211, &buf[1], 6) = 00 66 55 44 33 22 11 00 00 00 00 00 |
| 120 | osmo_load64be_ext(&buf[1], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 121 | osmo_load64be_ext_2(&buf[1], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 122 | osmo_store64be_ext(0x8877665544332211, &buf[2], 6) = 00 00 66 55 44 33 22 11 00 00 00 00 |
| 123 | osmo_load64be_ext(&buf[2], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 124 | osmo_load64be_ext_2(&buf[2], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 125 | osmo_store64be_ext(0x8877665544332211, &buf[3], 6) = 00 00 00 66 55 44 33 22 11 00 00 00 |
| 126 | osmo_load64be_ext(&buf[3], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 127 | osmo_load64be_ext_2(&buf[3], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 128 | osmo_store64be_ext(0x8877665544332211, &buf[4], 6) = 00 00 00 00 66 55 44 33 22 11 00 00 |
| 129 | osmo_load64be_ext(&buf[4], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 130 | osmo_load64be_ext_2(&buf[4], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 131 | osmo_store64be_ext(0x8877665544332211, &buf[5], 6) = 00 00 00 00 00 66 55 44 33 22 11 00 |
| 132 | osmo_load64be_ext(&buf[5], 6) = 0x6655443322110000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 133 | osmo_load64be_ext_2(&buf[5], 6) = 0x665544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 134 | osmo_store64be_ext(0x8877665544332211, &buf[0], 5) = 55 44 33 22 11 00 00 00 00 00 |
| 135 | osmo_load64be_ext(&buf[0], 5) = 0x5544332211000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 136 | osmo_load64be_ext_2(&buf[0], 5) = 0x5544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 137 | osmo_store64be_ext(0x8877665544332211, &buf[1], 5) = 00 55 44 33 22 11 00 00 00 00 |
| 138 | osmo_load64be_ext(&buf[1], 5) = 0x5544332211000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 139 | osmo_load64be_ext_2(&buf[1], 5) = 0x5544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 140 | osmo_store64be_ext(0x8877665544332211, &buf[2], 5) = 00 00 55 44 33 22 11 00 00 00 |
| 141 | osmo_load64be_ext(&buf[2], 5) = 0x5544332211000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 142 | osmo_load64be_ext_2(&buf[2], 5) = 0x5544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 143 | osmo_store64be_ext(0x8877665544332211, &buf[3], 5) = 00 00 00 55 44 33 22 11 00 00 |
| 144 | osmo_load64be_ext(&buf[3], 5) = 0x5544332211000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 145 | osmo_load64be_ext_2(&buf[3], 5) = 0x5544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 146 | osmo_store64be_ext(0x8877665544332211, &buf[4], 5) = 00 00 00 00 55 44 33 22 11 00 |
| 147 | osmo_load64be_ext(&buf[4], 5) = 0x5544332211000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 148 | osmo_load64be_ext_2(&buf[4], 5) = 0x5544332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 149 | osmo_store64be_ext(0x8877665544332211, &buf[0], 4) = 44 33 22 11 00 00 00 00 |
| 150 | osmo_load64be_ext(&buf[0], 4) = 0x4433221100000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 151 | osmo_load64be_ext_2(&buf[0], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 152 | osmo_store64be_ext(0x8877665544332211, &buf[1], 4) = 00 44 33 22 11 00 00 00 |
| 153 | osmo_load64be_ext(&buf[1], 4) = 0x4433221100000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 154 | osmo_load64be_ext_2(&buf[1], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 155 | osmo_store64be_ext(0x8877665544332211, &buf[2], 4) = 00 00 44 33 22 11 00 00 |
| 156 | osmo_load64be_ext(&buf[2], 4) = 0x4433221100000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 157 | osmo_load64be_ext_2(&buf[2], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 158 | osmo_store64be_ext(0x8877665544332211, &buf[3], 4) = 00 00 00 44 33 22 11 00 |
| 159 | osmo_load64be_ext(&buf[3], 4) = 0x4433221100000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 160 | osmo_load64be_ext_2(&buf[3], 4) = 0x44332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 161 | osmo_store64be_ext(0x8877665544332211, &buf[0], 3) = 33 22 11 00 00 00 |
| 162 | osmo_load64be_ext(&buf[0], 3) = 0x3322110000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 163 | osmo_load64be_ext_2(&buf[0], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 164 | osmo_store64be_ext(0x8877665544332211, &buf[1], 3) = 00 33 22 11 00 00 |
| 165 | osmo_load64be_ext(&buf[1], 3) = 0x3322110000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 166 | osmo_load64be_ext_2(&buf[1], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 167 | osmo_store64be_ext(0x8877665544332211, &buf[2], 3) = 00 00 33 22 11 00 |
| 168 | osmo_load64be_ext(&buf[2], 3) = 0x3322110000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 169 | osmo_load64be_ext_2(&buf[2], 3) = 0x332211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 170 | osmo_store64be_ext(0x8877665544332211, &buf[0], 2) = 22 11 00 00 |
| 171 | osmo_load64be_ext(&buf[0], 2) = 0x2211000000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 172 | osmo_load64be_ext_2(&buf[0], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 173 | osmo_store64be_ext(0x8877665544332211, &buf[1], 2) = 00 22 11 00 |
| 174 | osmo_load64be_ext(&buf[1], 2) = 0x2211000000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 175 | osmo_load64be_ext_2(&buf[1], 2) = 0x2211 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 176 | osmo_store64be_ext(0x8877665544332211, &buf[0], 1) = 11 00 |
| 177 | osmo_load64be_ext(&buf[0], 1) = 0x1100000000000000 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 178 | osmo_load64be_ext_2(&buf[0], 1) = 0x11 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 179 | --- 64 le |
| 180 | osmo_store64le_ext(0x8877665544332211, &buf[0], 8) = 11 22 33 44 55 66 77 88 00 00 00 00 00 00 00 00 |
| 181 | osmo_load64le_ext(&buf[0], 8) = 0x8877665544332211 |
| 182 | osmo_store64le_ext(0x8877665544332211, &buf[1], 8) = 00 11 22 33 44 55 66 77 88 00 00 00 00 00 00 00 |
| 183 | osmo_load64le_ext(&buf[1], 8) = 0x8877665544332211 |
| 184 | osmo_store64le_ext(0x8877665544332211, &buf[2], 8) = 00 00 11 22 33 44 55 66 77 88 00 00 00 00 00 00 |
| 185 | osmo_load64le_ext(&buf[2], 8) = 0x8877665544332211 |
| 186 | osmo_store64le_ext(0x8877665544332211, &buf[3], 8) = 00 00 00 11 22 33 44 55 66 77 88 00 00 00 00 00 |
| 187 | osmo_load64le_ext(&buf[3], 8) = 0x8877665544332211 |
| 188 | osmo_store64le_ext(0x8877665544332211, &buf[4], 8) = 00 00 00 00 11 22 33 44 55 66 77 88 00 00 00 00 |
| 189 | osmo_load64le_ext(&buf[4], 8) = 0x8877665544332211 |
| 190 | osmo_store64le_ext(0x8877665544332211, &buf[5], 8) = 00 00 00 00 00 11 22 33 44 55 66 77 88 00 00 00 |
| 191 | osmo_load64le_ext(&buf[5], 8) = 0x8877665544332211 |
| 192 | osmo_store64le_ext(0x8877665544332211, &buf[6], 8) = 00 00 00 00 00 00 11 22 33 44 55 66 77 88 00 00 |
| 193 | osmo_load64le_ext(&buf[6], 8) = 0x8877665544332211 |
| 194 | osmo_store64le_ext(0x8877665544332211, &buf[7], 8) = 00 00 00 00 00 00 00 11 22 33 44 55 66 77 88 00 |
| 195 | osmo_load64le_ext(&buf[7], 8) = 0x8877665544332211 |
| 196 | osmo_store64le_ext(0x8877665544332211, &buf[0], 7) = 11 22 33 44 55 66 77 00 00 00 00 00 00 00 |
| 197 | osmo_load64le_ext(&buf[0], 7) = 0x77665544332211 |
| 198 | osmo_store64le_ext(0x8877665544332211, &buf[1], 7) = 00 11 22 33 44 55 66 77 00 00 00 00 00 00 |
| 199 | osmo_load64le_ext(&buf[1], 7) = 0x77665544332211 |
| 200 | osmo_store64le_ext(0x8877665544332211, &buf[2], 7) = 00 00 11 22 33 44 55 66 77 00 00 00 00 00 |
| 201 | osmo_load64le_ext(&buf[2], 7) = 0x77665544332211 |
| 202 | osmo_store64le_ext(0x8877665544332211, &buf[3], 7) = 00 00 00 11 22 33 44 55 66 77 00 00 00 00 |
| 203 | osmo_load64le_ext(&buf[3], 7) = 0x77665544332211 |
| 204 | osmo_store64le_ext(0x8877665544332211, &buf[4], 7) = 00 00 00 00 11 22 33 44 55 66 77 00 00 00 |
| 205 | osmo_load64le_ext(&buf[4], 7) = 0x77665544332211 |
| 206 | osmo_store64le_ext(0x8877665544332211, &buf[5], 7) = 00 00 00 00 00 11 22 33 44 55 66 77 00 00 |
| 207 | osmo_load64le_ext(&buf[5], 7) = 0x77665544332211 |
| 208 | osmo_store64le_ext(0x8877665544332211, &buf[6], 7) = 00 00 00 00 00 00 11 22 33 44 55 66 77 00 |
| 209 | osmo_load64le_ext(&buf[6], 7) = 0x77665544332211 |
| 210 | osmo_store64le_ext(0x8877665544332211, &buf[0], 6) = 11 22 33 44 55 66 00 00 00 00 00 00 |
| 211 | osmo_load64le_ext(&buf[0], 6) = 0x665544332211 |
| 212 | osmo_store64le_ext(0x8877665544332211, &buf[1], 6) = 00 11 22 33 44 55 66 00 00 00 00 00 |
| 213 | osmo_load64le_ext(&buf[1], 6) = 0x665544332211 |
| 214 | osmo_store64le_ext(0x8877665544332211, &buf[2], 6) = 00 00 11 22 33 44 55 66 00 00 00 00 |
| 215 | osmo_load64le_ext(&buf[2], 6) = 0x665544332211 |
| 216 | osmo_store64le_ext(0x8877665544332211, &buf[3], 6) = 00 00 00 11 22 33 44 55 66 00 00 00 |
| 217 | osmo_load64le_ext(&buf[3], 6) = 0x665544332211 |
| 218 | osmo_store64le_ext(0x8877665544332211, &buf[4], 6) = 00 00 00 00 11 22 33 44 55 66 00 00 |
| 219 | osmo_load64le_ext(&buf[4], 6) = 0x665544332211 |
| 220 | osmo_store64le_ext(0x8877665544332211, &buf[5], 6) = 00 00 00 00 00 11 22 33 44 55 66 00 |
| 221 | osmo_load64le_ext(&buf[5], 6) = 0x665544332211 |
| 222 | osmo_store64le_ext(0x8877665544332211, &buf[0], 5) = 11 22 33 44 55 00 00 00 00 00 |
| 223 | osmo_load64le_ext(&buf[0], 5) = 0x5544332211 |
| 224 | osmo_store64le_ext(0x8877665544332211, &buf[1], 5) = 00 11 22 33 44 55 00 00 00 00 |
| 225 | osmo_load64le_ext(&buf[1], 5) = 0x5544332211 |
| 226 | osmo_store64le_ext(0x8877665544332211, &buf[2], 5) = 00 00 11 22 33 44 55 00 00 00 |
| 227 | osmo_load64le_ext(&buf[2], 5) = 0x5544332211 |
| 228 | osmo_store64le_ext(0x8877665544332211, &buf[3], 5) = 00 00 00 11 22 33 44 55 00 00 |
| 229 | osmo_load64le_ext(&buf[3], 5) = 0x5544332211 |
| 230 | osmo_store64le_ext(0x8877665544332211, &buf[4], 5) = 00 00 00 00 11 22 33 44 55 00 |
| 231 | osmo_load64le_ext(&buf[4], 5) = 0x5544332211 |
| 232 | osmo_store64le_ext(0x8877665544332211, &buf[0], 4) = 11 22 33 44 00 00 00 00 |
| 233 | osmo_load64le_ext(&buf[0], 4) = 0x44332211 |
| 234 | osmo_store64le_ext(0x8877665544332211, &buf[1], 4) = 00 11 22 33 44 00 00 00 |
| 235 | osmo_load64le_ext(&buf[1], 4) = 0x44332211 |
| 236 | osmo_store64le_ext(0x8877665544332211, &buf[2], 4) = 00 00 11 22 33 44 00 00 |
| 237 | osmo_load64le_ext(&buf[2], 4) = 0x44332211 |
| 238 | osmo_store64le_ext(0x8877665544332211, &buf[3], 4) = 00 00 00 11 22 33 44 00 |
| 239 | osmo_load64le_ext(&buf[3], 4) = 0x44332211 |
| 240 | osmo_store64le_ext(0x8877665544332211, &buf[0], 3) = 11 22 33 00 00 00 |
| 241 | osmo_load64le_ext(&buf[0], 3) = 0x332211 |
| 242 | osmo_store64le_ext(0x8877665544332211, &buf[1], 3) = 00 11 22 33 00 00 |
| 243 | osmo_load64le_ext(&buf[1], 3) = 0x332211 |
| 244 | osmo_store64le_ext(0x8877665544332211, &buf[2], 3) = 00 00 11 22 33 00 |
| 245 | osmo_load64le_ext(&buf[2], 3) = 0x332211 |
| 246 | osmo_store64le_ext(0x8877665544332211, &buf[0], 2) = 11 22 00 00 |
| 247 | osmo_load64le_ext(&buf[0], 2) = 0x2211 |
| 248 | osmo_store64le_ext(0x8877665544332211, &buf[1], 2) = 00 11 22 00 |
| 249 | osmo_load64le_ext(&buf[1], 2) = 0x2211 |
| 250 | osmo_store64le_ext(0x8877665544332211, &buf[0], 1) = 11 00 |
| 251 | osmo_load64le_ext(&buf[0], 1) = 0x11 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 252 | --- store/load 0x112233 as 24bit big-endian, legacy |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 253 | 11 22 33 00 |
| 254 | 0x11223300 |
Neels Hofmeyr | f6db765 | 2020-09-14 00:39:37 +0200 | [diff] [blame] | 255 | --- store/load 0x112233 as 24bit big-endian |
| 256 | 11 22 33 00 |
| 257 | 0x112233 |
Neels Hofmeyr | 6862cd3 | 2020-09-13 23:56:21 +0200 | [diff] [blame] | 258 | --- store/load 0x112233 as 24bit little-endian |
| 259 | 33 22 11 00 |
| 260 | 0x112233 |