New upstream version 18.02
[deb_dpdk.git] / lib / librte_eal / common / include / arch / arm / rte_byteorder.h
index 3f2dd1f..8af0a39 100644 (file)
@@ -41,6 +41,8 @@
 extern "C" {
 #endif
 
+#include <stdint.h>
+#include <rte_common.h>
 #include "generic/rte_byteorder.h"
 
 /* fix missing __builtin_bswap16 for gcc older then 4.8 */
@@ -48,9 +50,9 @@ extern "C" {
 
 static inline uint16_t rte_arch_bswap16(uint16_t _x)
 {
-       register uint16_t x = _x;
+       uint16_t x = _x;
 
-       asm volatile ("rev16 %0,%1"
+       asm volatile ("rev16 %w0,%w1"
                      : "=r" (x)
                      : "r" (x)
                      );