[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/support rc2.c,1.2,1.3
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/support rc2.c,1.2,1.3 |
Date: |
Tue, 29 Apr 2003 03:35:15 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv7037/support
Modified Files:
rc2.c
Log Message:
Use 32-bit arithmetic for RC2 under ARM because it seems to be having
problems with unsigned 16-bit arithmetic.
Index: rc2.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/rc2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** rc2.c 29 Jan 2003 03:51:09 -0000 1.2
--- rc2.c 29 Apr 2003 07:35:12 -0000 1.3
***************
*** 36,41 ****
* This isn't terribly elegant - any suggestions as to what is really
* happening are welcome.
*/
! #if defined(__alpha__)
typedef ILUInt32 RWorkType;
#define NORM(x) ((x) &= 0xFFFF)
--- 36,44 ----
* This isn't terribly elegant - any suggestions as to what is really
* happening are welcome.
+ *
+ * ARM machines also seem to have problems with unsigned short arithmetic,
+ * so we apply the same technique and it appears to address the problem.
*/
! #if defined(__alpha__) || defined(__arm__)
typedef ILUInt32 RWorkType;
#define NORM(x) ((x) &= 0xFFFF)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/support rc2.c,1.2,1.3,
Rhys Weatherley <address@hidden> <=