summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-10-20 18:49:04 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-10-22 10:59:42 +0200
commit038539176ccf1078f5b0ed3b5bb6a4c3289ce17a (patch)
treecf7a10038b7e2315e3d891e11132d34345eb2922 /src
parent46f2d8acdcda3f374c9e393ecb734ff9d00fef7d (diff)
eina: fix network byte order swap funcs on big endianHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/lib/eina/eina_inline_cpu.x12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/eina/eina_inline_cpu.x b/src/lib/eina/eina_inline_cpu.x
index 035e5b1..0dd293c 100644
--- a/src/lib/eina/eina_inline_cpu.x
+++ b/src/lib/eina/eina_inline_cpu.x
@@ -83,7 +83,7 @@ eina_swap64(unsigned long long x)
83static inline unsigned short 83static inline unsigned short
84eina_htons(unsigned short host) 84eina_htons(unsigned short host)
85{ 85{
86#ifdef EINA_HAVE_BIGENDIAN 86#ifdef EINA_HAVE_WORDS_BIGENDIAN
87 return host; 87 return host;
88#else 88#else
89 return eina_swap16(host); 89 return eina_swap16(host);
@@ -93,7 +93,7 @@ eina_htons(unsigned short host)
93static inline unsigned int 93static inline unsigned int
94eina_htonl(unsigned int host) 94eina_htonl(unsigned int host)
95{ 95{
96#ifdef EINA_HAVE_BIGENDIAN 96#ifdef EINA_HAVE_WORDS_BIGENDIAN
97 return host; 97 return host;
98#else 98#else
99 return eina_swap32(host); 99 return eina_swap32(host);
@@ -103,7 +103,7 @@ eina_htonl(unsigned int host)
103static inline unsigned long long 103static inline unsigned long long
104eina_htonll(unsigned long long host) 104eina_htonll(unsigned long long host)
105{ 105{
106#ifdef EINA_HAVE_BIGENDIAN 106#ifdef EINA_HAVE_WORDS_BIGENDIAN
107 return host; 107 return host;
108#else 108#else
109 return eina_swap64(host); 109 return eina_swap64(host);
@@ -113,7 +113,7 @@ eina_htonll(unsigned long long host)
113static inline unsigned short 113static inline unsigned short
114eina_ntohs(unsigned short net) 114eina_ntohs(unsigned short net)
115{ 115{
116#ifdef EINA_HAVE_BIGENDIAN 116#ifdef EINA_HAVE_WORDS_BIGENDIAN
117 return net; 117 return net;
118#else 118#else
119 return eina_swap16(net); 119 return eina_swap16(net);
@@ -123,7 +123,7 @@ eina_ntohs(unsigned short net)
123static inline unsigned int 123static inline unsigned int
124eina_ntohl(unsigned int net) 124eina_ntohl(unsigned int net)
125{ 125{
126#ifdef EINA_HAVE_BIGENDIAN 126#ifdef EINA_HAVE_WORDS_BIGENDIAN
127 return net; 127 return net;
128#else 128#else
129 return eina_swap32(net); 129 return eina_swap32(net);
@@ -133,7 +133,7 @@ eina_ntohl(unsigned int net)
133static inline unsigned long long 133static inline unsigned long long
134eina_ntohll(unsigned long long net) 134eina_ntohll(unsigned long long net)
135{ 135{
136#ifdef EINA_HAVE_BIGENDIAN 136#ifdef EINA_HAVE_WORDS_BIGENDIAN
137 return net; 137 return net;
138#else 138#else
139 return eina_swap64(net); 139 return eina_swap64(net);