[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Remove dead code
Update of /home/minion/cvsroot/src/minion/src
In directory moria.seul.org:/tmp/cvs-serv25040/src
Modified Files:
aes_ctr.c
Log Message:
Remove dead code
Index: aes_ctr.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/aes_ctr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- aes_ctr.c 16 Oct 2002 23:12:13 -0000 1.6
+++ aes_ctr.c 22 Nov 2002 21:06:11 -0000 1.7
@@ -33,20 +33,12 @@
#define INCR_U32(ptr, i) i = ++(*(u32*)(ptr))
#endif
-#if 0
-/* On my Athlon, bswap_32 is actually slower. Surprisingly,
+/* An earlier version used bswap_32 where available to try to get the
+ supposed benefits of inline assembly. Bizarrely, on my Athlon,
+ bswap_32 is actually slower. On the other hand,
the code in glib/gtypes.h _is_ faster; but shaves only 1%
off encryption. We seem to be near the point of diminishing
returns here. */
-#ifdef MM_L_ENDIAN
-#ifdef MM_HAVE_BYTESWAP_H
-#include <byteswap.h>
-#define GET_U32(ptr) bswap_32(*(u32*)(ptr))
-#define SET_U32(ptr,i) (*(u32*)(ptr)) = bswap_32(i)
-#endif
-#endif
-#endif /* if 0 */
-
#ifndef GET_U32
#define GET_U32_cp(ptr) ( (u32)ptr[0] ^ \