diff MM7.h @ 1178:f7ad7bd0a806

Слияние
author Ritor1
date Tue, 04 Jun 2013 09:44:53 +0600
parents 29a8defbad9e
children 0dbf6c4dd029
line wrap: on
line diff
--- a/MM7.h	Tue Jun 04 09:35:16 2013 +0600
+++ b/MM7.h	Tue Jun 04 09:44:53 2013 +0600
@@ -5,20 +5,6 @@
 #include <string>
 
 typedef unsigned int uint;
-#define LOWORD(a) (*((unsigned short *)&a))
-#define HIWORD(a) (*((unsigned short *)&a + 1))
-#define SHIWORD(a) (*((short *)&a + 1))
-
-#define LODWORD(a) (*((unsigned int *)&a))
-#define HIDWORD(a) (*((unsigned int *)&a + 1))
-#define SLODWORD(a) (*((int *)&a))
-#define SHIDWORD(a) (*((int *)&a + 1))
-
-#define LOBYTE(a) (*((unsigned char *)&a))
-#define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1))
-#define BYTE1(a) (*((unsigned char *)&a + 1))
-#define BYTE2(a) (*((unsigned char *)&a + 2))
-#define BYTE3(a) (*((unsigned char *)&a + 3))
 
 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF)  // packed id
 #define PID_TYPE(pid) (unsigned int)((pid) & 7)                         // extract type