summaryrefslogtreecommitdiff
path: root/drivers/staging/echo/mmx.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-01-21 11:53:55 +0200
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-01-21 11:53:55 +0200
commit86fd81fc07a8647c62a167496912fa5f707eecde (patch)
treeb2f93d4d3faf1e065fc10d95ce40894cca4bd237 /drivers/staging/echo/mmx.h
parent99f368c6335441c113fd5b783f129903239a11ea (diff)
use explicit union instead of typedef
Diffstat (limited to 'drivers/staging/echo/mmx.h')
-rw-r--r--drivers/staging/echo/mmx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/echo/mmx.h b/drivers/staging/echo/mmx.h
index b5a3964..ffbf72b 100644
--- a/drivers/staging/echo/mmx.h
+++ b/drivers/staging/echo/mmx.h
@@ -27,7 +27,7 @@
* values by ULL, lest they be truncated by the compiler)
*/
-typedef union {
+union mmx_t {
long long q; /* Quadword (64-bit) value */
unsigned long long uq; /* Unsigned Quadword */
int d[2]; /* 2 Doubleword (32-bit) values */
@@ -37,12 +37,12 @@ typedef union {
char b[8]; /* 8 Byte (8-bit) values */
unsigned char ub[8]; /* 8 Unsigned Byte */
float s[2]; /* Single-precision (32-bit) value */
-} mmx_t; /* On an 8-byte (64-bit) boundary */
+}; /* On an 8-byte (64-bit) boundary */
/* SSE registers */
-typedef union {
+union xmm_t {
char b[16];
-} xmm_t;
+};
#define mmx_i2r(op,imm,reg) \