eal/x86: include SSE4 support on Windows
[dpdk.git] / lib / librte_eal / common / include / arch / x86 / rte_byteorder.h
index 1b8ed5f..a2dfecc 100644 (file)
@@ -11,6 +11,7 @@ extern "C" {
 
 #include <stdint.h>
 #include <rte_common.h>
+#include <rte_config.h>
 #include "generic/rte_byteorder.h"
 
 #ifndef RTE_BYTE_ORDER
@@ -24,7 +25,7 @@ extern "C" {
  */
 static inline uint16_t rte_arch_bswap16(uint16_t _x)
 {
-       register uint16_t x = _x;
+       uint16_t x = _x;
        asm volatile ("xchgb %b[x1],%h[x2]"
                      : [x1] "=Q" (x)
                      : [x2] "0" (x)
@@ -39,7 +40,7 @@ static inline uint16_t rte_arch_bswap16(uint16_t _x)
  */
 static inline uint32_t rte_arch_bswap32(uint32_t _x)
 {
-       register uint32_t x = _x;
+       uint32_t x = _x;
        asm volatile ("bswap %[x]"
                      : [x] "+r" (x)
                      );