MRPT
1.9.9
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.14
for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020