MRPT  2.0.4
byte_manip.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020