PERFORCE change 72655 for review

John Baldwin jhb at FreeBSD.org
Mon Mar 7 12:25:56 PST 2005


http://perforce.freebsd.org/chv.cgi?CH=72655

Change 72655 by jhb at jhb_slimer on 2005/03/07 20:24:57

	Use + constraint.

Affected files ...

.. //depot/projects/smpng/sys/arm/include/endian.h#9 edit

Differences ...

==== //depot/projects/smpng/sys/arm/include/endian.h#9 (text+ko) ====

@@ -99,11 +99,10 @@
 __bswap16_var(__uint32_t v)
 {
 	__asm __volatile(
-	    "mov    %0, %1, ror #8\n"
+	    "mov    %0, %0, ror #8\n"
 	    "orr    %0, %0, %0, lsr #16\n"
 	    "bic    %0, %0, %0, lsl #16"
-	    : "=r" (v)
-	    : "0" (v));
+	    : "+r" (v));
 	
 	return (v);
 }		


More information about the p4-projects mailing list