Lines Matching refs:v

52 bswap_16(uint16_t v)  in bswap_16()  argument
54 return ((v >> 8) & 0xff) | ((v & 0xff) << 8); in bswap_16()
58 bswap_32(uint32_t v) in bswap_32() argument
60 return ( ((v & 0xff000000) >> 24) in bswap_32()
61 | ((v & 0x00ff0000) >> 8) in bswap_32()
62 | ((v & 0x0000ff00) << 8) in bswap_32()
63 | ((v & 0x000000ff) << 24)); in bswap_32()
67 bswap_64(uint64_t v) in bswap_64() argument
69 return ( ((v & 0xff00000000000000ULL) >> 56) in bswap_64()
70 | ((v & 0x00ff000000000000ULL) >> 40) in bswap_64()
71 | ((v & 0x0000ff0000000000ULL) >> 24) in bswap_64()
72 | ((v & 0x000000ff00000000ULL) >> 8) in bswap_64()
73 | ((v & 0x00000000ff000000ULL) << 8) in bswap_64()
74 | ((v & 0x0000000000ff0000ULL) << 24) in bswap_64()
75 | ((v & 0x000000000000ff00ULL) << 40) in bswap_64()
76 | ((v & 0x00000000000000ffULL) << 56)); in bswap_64()
157 convert_host(Valtype v)
158 { return v; }
167 convert_host(Valtype v)
168 { return v; }
177 convert_host(Valtype v)
178 { return bswap_16(v); }
187 convert_host(Valtype v)
188 { return bswap_32(v); }
197 convert_host(Valtype v)
198 { return bswap_64(v); }
212 convert_host(Valtype v)
215 ::convert_host(v);
236 writeval(Valtype* wv, Valtype v)
237 { *wv = Convert<size, big_endian>::convert_host(v); }
244 writeval(unsigned char* wv, Valtype v)
245 { writeval(reinterpret_cast<Valtype*>(wv), v); }
262 writeval(Valtype* wv, Valtype v)
263 { *wv = v; }
285 writeval(unsigned char* wv, Valtype v)
286 { *wv = v; }
301 writeval(unsigned char* wv, Valtype v)
303 wv[1] = v >> 8;
304 wv[0] = v;
320 writeval(unsigned char* wv, Valtype v)
322 wv[0] = v >> 8;
323 wv[1] = v;
339 writeval(unsigned char* wv, Valtype v)
341 wv[3] = v >> 24;
342 wv[2] = v >> 16;
343 wv[1] = v >> 8;
344 wv[0] = v;
360 writeval(unsigned char* wv, Valtype v)
362 wv[0] = v >> 24;
363 wv[1] = v >> 16;
364 wv[2] = v >> 8;
365 wv[3] = v;
388 writeval(unsigned char* wv, Valtype v)
390 wv[7] = v >> 56;
391 wv[6] = v >> 48;
392 wv[5] = v >> 40;
393 wv[4] = v >> 32;
394 wv[3] = v >> 24;
395 wv[2] = v >> 16;
396 wv[1] = v >> 8;
397 wv[0] = v;
420 writeval(unsigned char* wv, Valtype v)
422 wv[0] = v >> 56;
423 wv[1] = v >> 48;
424 wv[2] = v >> 40;
425 wv[3] = v >> 32;
426 wv[4] = v >> 24;
427 wv[5] = v >> 16;
428 wv[6] = v >> 8;
429 wv[7] = v;
450 writeval(unsigned char* wv, Valtype v)
451 { Swap<size, big_endian>::writeval(reinterpret_cast<Valtype*>(wv), v); }
467 writeval(unsigned char* wv, Valtype v)
471 Swap<32, true>::writeval(wv, static_cast<Valtype32>(v >> 32));
472 Swap<32, true>::writeval(wv + 4, static_cast<Valtype32>(v));
489 writeval(unsigned char* wv, Valtype v)
493 Swap<32, false>::writeval(wv + 4, static_cast<Valtype32>(v >> 32));
494 Swap<32, false>::writeval(wv, static_cast<Valtype32>(v));