Main MRPT website
>
C++ reference for MRPT 1.9.9
mrpt
core
byte_manip.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#pragma once
10
11
#define SELBYTE0(v) (v & 0xff)
12
#define SELBYTE1(v) ((v >> 8) & 0xff)
13
#define SELBYTE2(v) ((v >> 16) & 0xff)
14
#define SELBYTE3(v) ((v >> 24) & 0xff)
15
16
#define MAKEWORD16B(__LOBYTE, __HILOBYTE) ((__LOBYTE) | ((__HILOBYTE) << 8))
17
#define MAKEWORD32B(__LOWORD16, __HIWORD16) \
18
((__LOWORD16) | ((__HIWORD16) << 16))
19
#define MAKEWORD64B(__LOWORD32, __HIWORD32) \
20
((__LOWORD32) | ((__HIWORD32) << 32))
Page generated by
Doxygen 1.8.17
for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST