[Gridflow-cvs] [svn] commit: r6801 - /trunk/src/formats.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Nov 6 14:39:01 EST 2011


Author: matju
Date: Sun Nov  6 14:39:01 2011
New Revision: 6801

Log:
swapend() was actually already implemented in a more complete way under the name swap_endian

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Sun Nov  6 14:39:01 2011
@@ -26,14 +26,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #define L _L_
-
-void swapend (size_t n, uint8 *) {}
-void swapend (size_t n, int16 *v) {swap16(n,(uint16 *)v);}
-void swapend (size_t n, int32 *v) {swap32(n,(uint32 *)v);}
-void swapend (size_t n, float32 *v) {swap32(n,(uint32 *)v);}
-void swapend (size_t n, float64 *v) {post("swap64 not supported");}
-void swapend (size_t n,   int64 *v) {post("swap64 not supported");}
-
 
 /* API (version 0.9.3)
 	mode is :in or :out
@@ -242,7 +234,7 @@
 	} \
 	GridOut o(this,0,dim,cast); \
 	CLEAR(data+nnn/sizeof(T),nn-nnn/sizeof(T)); \
-        swapend(nnn/sizeof(T),data); \
+        swap_endian(nnn/sizeof(T),data); \
 	o.send(nn,(T *)data);}
 TYPESWITCH(type,FOO,)
 #undef FOO



More information about the Gridflow-cvs mailing list