Home | History | Annotate | Download | only in base

Lines Matching full:static_cast

31   static_cast<uint8_t*>(memory)[offset] = v;
35 return static_cast<const uint8_t*>(memory)[offset];
39 Set8(memory, 0, static_cast<uint8_t>(v >> 8));
40 Set8(memory, 1, static_cast<uint8_t>(v >> 0));
44 Set8(memory, 0, static_cast<uint8_t>(v >> 24));
45 Set8(memory, 1, static_cast<uint8_t>(v >> 16));
46 Set8(memory, 2, static_cast<uint8_t>(v >> 8));
47 Set8(memory, 3, static_cast<uint8_t>(v >> 0));
51 Set8(memory, 0, static_cast<uint8_t>(v >> 56));
52 Set8(memory, 1, static_cast<uint8_t>(v >> 48));
53 Set8(memory, 2, static_cast<uint8_t>(v >> 40));
54 Set8(memory, 3, static_cast<uint8_t>(v >> 32));
55 Set8(memory, 4, static_cast<uint8_t>(v >> 24));
56 Set8(memory, 5, static_cast<uint8_t>(v >> 16));
57 Set8(memory, 6, static_cast<uint8_t>(v >> 8));
58 Set8(memory, 7, static_cast<uint8_t>(v >> 0));
62 return static_cast<uint16_t>((Get8(memory, 0) << 8) | (Get8(memory, 1) << 0));
66 return (static_cast<uint32_t>(Get8(memory, 0)) << 24) |
67 (static_cast<uint32_t>(Get8(memory, 1)) << 16) |
68 (static_cast<uint32_t>(Get8(memory, 2)) << 8) |
69 (static_cast<uint32_t>(Get8(memory, 3)) << 0);
73 return (static_cast<uint64_t>(Get8(memory, 0)) << 56) |
74 (static_cast<uint64_t>(Get8(memory, 1)) << 48) |
75 (static_cast<uint64_t>(Get8(memory, 2)) << 40) |
76 (static_cast<uint64_t>(Get8(memory, 3)) << 32) |
77 (static_cast<uint64_t>(Get8(memory, 4)) << 24) |
78 (static_cast<uint64_t>(Get8(memory, 5)) << 16) |
79 (static_cast<uint64_t>(Get8(memory, 6)) << 8) |
80 (static_cast<uint64_t>(Get8(memory, 7)) << 0);
84 Set8(memory, 0, static_cast<uint8_t>(v >> 0));
85 Set8(memory, 1, static_cast<uint8_t>(v >> 8));
89 Set8(memory, 0, static_cast<uint8_t>(v >> 0));
90 Set8(memory, 1, static_cast<uint8_t>(v >> 8));
91 Set8(memory, 2, static_cast<uint8_t>(v >> 16));
92 Set8(memory, 3, static_cast<uint8_t>(v >> 24));
96 Set8(memory, 0, static_cast<uint8_t>(v >> 0));
97 Set8(memory, 1, static_cast<uint8_t>(v >> 8));
98 Set8(memory, 2, static_cast<uint8_t>(v >> 16));
99 Set8(memory, 3, static_cast<uint8_t>(v >> 24));
100 Set8(memory, 4, static_cast<uint8_t>(v >> 32));
101 Set8(memory, 5, static_cast<uint8_t>(v >> 40));
102 Set8(memory, 6, static_cast<uint8_t>(v >> 48));
103 Set8(memory, 7, static_cast<uint8_t>(v >> 56));
107 return static_cast<uint16_t>((Get8(memory, 0) << 0) | (Get8(memory, 1) << 8));
111 return (static_cast<uint32_t>(Get8(memory, 0)) << 0) |
112 (static_cast<uint32_t>(Get8(memory, 1)) << 8) |
113 (static_cast<uint32_t>(Get8(memory, 2)) << 16) |
114 (static_cast<uint32_t>(Get8(memory, 3)) << 24);
118 return (static_cast<uint64_t>(Get8(memory, 0)) << 0) |
119 (static_cast<uint64_t>(Get8(memory, 1)) << 8) |
120 (static_cast<uint64_t>(Get8(memory, 2)) << 16) |
121 (static_cast<uint64_t>(Get8(memory, 3)) << 24) |
122 (static_cast<uint64_t>(Get8(memory, 4)) << 32) |
123 (static_cast<uint64_t>(Get8(memory, 5)) << 40) |
124 (static_cast<uint64_t>(Get8(memory, 6)) << 48) |
125 (static_cast<uint64_t>(Get8(memory, 7)) << 56);