2004-08-14 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / metadata / mono-endian.c
index 9f59bb20e86c1c9b6f42035106eaa9fdf9a745a2..612e21df4ad32b5c371d992c5c7f457abb265b13 100644 (file)
@@ -76,30 +76,4 @@ mono_read64 (const unsigned char *x)
        return r.i;
 }
 
-guint64
-mono_read64_swap_words (const unsigned char *x)
-{
-       mono_rint64 r;
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
-       r.c [0] = x [4];
-       r.c [1] = x [5];
-       r.c [2] = x [6];
-       r.c [3] = x [7];
-       r.c [4] = x [0];
-       r.c [5] = x [1];
-       r.c [6] = x [2];
-       r.c [7] = x [3];
-#else
-       r.c [7] = x [4];
-       r.c [6] = x [5];
-       r.c [5] = x [6];
-       r.c [4] = x [7];
-       r.c [3] = x [0];
-       r.c [2] = x [1];
-       r.c [1] = x [2];
-       r.c [0] = x [3];
-#endif
-       return r.i;
-}
-
 #endif