SOURCES: pearpc-ptrsize.patch (NEW) - fix for 64bit archs

sparky sparky at pld-linux.org
Thu Jan 5 16:13:19 CET 2006


Author: sparky                       Date: Thu Jan  5 15:13:19 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for 64bit archs

---- Files affected:
SOURCES:
   pearpc-ptrsize.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/pearpc-ptrsize.patch
diff -u /dev/null SOURCES/pearpc-ptrsize.patch:1.1
--- /dev/null	Thu Jan  5 16:13:19 2006
+++ SOURCES/pearpc-ptrsize.patch	Thu Jan  5 16:13:14 2006
@@ -0,0 +1,11 @@
+--- pearpc-0.4/src/tools/crc32.cc~	2006-01-05 14:10:28.000000000 +0100
++++ pearpc-0.4/src/tools/crc32.cc	2006-01-05 14:07:53.000000000 +0100
+@@ -106,7 +106,7 @@
+     uint32  crc = 0xffffffff;   // preload shift register, per CRC-32 spec
+ 
+ #ifdef RUN_FASTER
+-    for (; (((uint32)p)&0x03)!=0 && len>0; len--)
++    for (; (((uintptr_t)p)&0x03)!=0 && len>0; len--)
+         DO_CRC(*p++);           // will execute if *p is not dword aligned
+     for (; len>=sizeof(uint32); p += sizeof(uint32), len -= sizeof(uint32)) {
+         uint32 data = *(uint32*)p;
================================================================


More information about the pld-cvs-commit mailing list