LargeInteger.st
changeset 19900 97109a202eba
parent 19870 94851a6996a4
child 19902 841154ab88d4
--- a/LargeInteger.st	Sat May 21 13:01:31 2016 +0200
+++ b/LargeInteger.st	Tue May 24 20:32:43 2016 +0200
@@ -2441,8 +2441,8 @@
 		    : "=a"  (__pLow),
 		      "=d"  (__pHi)
 		    : "0"   (__digit),
-		      "1"   (ASM_ULONGCAST(_v)),
-		      "rm"  (ASM_ULONGCAST(_carry)) );
+		      "1"   ((unsigned long)(_v)),
+		      "rm"  ((unsigned long)(_carry)) );
 
 	    ((unsigned long *)resultP)[0] = __pLow;
 	    _carry = __pHi;
@@ -3625,10 +3625,10 @@
 		      adcl $0, %%eax            \n\
 		      movl $0, %%edx            \n\
 		      adcl $0, %%edx"
-			: "=d"  (ASM_ULONGCAST(__carry)),
-			  "=c"  (ASM_ULONGCAST(__sum)),
-			  "=a"  (ASM_ULONGCAST(__sum2))
-			: "0"   (ASM_ULONGCAST(__carry)),
+			: "=d"  ((unsigned long)(__carry)),
+			  "=c"  ((unsigned long)(__sum)),
+			  "=a"  ((unsigned long)(__sum2))
+			: "0"   ((unsigned long)(__carry)),
 			  "1"   (__digit1),
 			  "2"   (__digit2));
 
@@ -3662,9 +3662,9 @@
 		asm ("addl %%eax,%%edx  \n\
 		      movl $0,%%eax     \n\
 		      adcl $0,%%eax"
-			: "=a"  (ASM_ULONGCAST(__carry)),
-			  "=d"  (ASM_ULONGCAST(__sum))
-			: "0"   (ASM_ULONGCAST(__carry)),
+			: "=a"  ((unsigned long)(__carry)),
+			  "=d"  ((unsigned long)(__sum))
+			: "0"   ((unsigned long)(__carry)),
 			  "1"   (__digit) );
 
 		((unsigned int *)(__src + __ptrDelta))[0] = __sum;