r5739 - trunk/varnish-cache/include

phk at varnish-cache.org phk at varnish-cache.org
Thu Jan 13 23:43:07 CET 2011


Author: phk
Date: 2011-01-13 23:43:05 +0100 (Thu, 13 Jan 2011)
New Revision: 5739

Modified:
   trunk/varnish-cache/include/vend.h
Log:
Uncomment some endianess functions we will need.



Modified: trunk/varnish-cache/include/vend.h
===================================================================
--- trunk/varnish-cache/include/vend.h	2011-01-13 18:50:05 UTC (rev 5738)
+++ trunk/varnish-cache/include/vend.h	2011-01-13 22:43:05 UTC (rev 5739)
@@ -35,7 +35,6 @@
 
 /* Alignment-agnostic encode/decode bytestream to/from little/big endian. */
 
-#if 0
 static __inline uint16_t
 vbe16dec(const void *pp)
 {
@@ -43,7 +42,6 @@
 
 	return ((p[0] << 8) | p[1]);
 }
-#endif
 
 static __inline uint32_t
 vbe32dec(const void *pp)
@@ -53,7 +51,6 @@
 	return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
 }
 
-#if 0
 static __inline uint64_t
 vbe64dec(const void *pp)
 {
@@ -62,6 +59,7 @@
 	return (((uint64_t)vbe32dec(p) << 32) | vbe32dec(p + 4));
 }
 
+#if 0
 static __inline uint16_t
 vle16dec(const void *pp)
 {
@@ -87,6 +85,7 @@
 
 	return (((uint64_t)vle32dec(p + 4) << 32) | vle32dec(p));
 }
+#endif
 
 static __inline void
 vbe16enc(void *pp, uint16_t u)
@@ -97,8 +96,6 @@
 	p[1] = u & 0xff;
 }
 
-#endif
-
 static __inline void
 vbe32enc(void *pp, uint32_t u)
 {




More information about the varnish-commit mailing list