[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/sign.c

Reid Spencer reid at x10sys.com
Wed Mar 28 09:30:37 PDT 2007



Changes in directory llvm-test/SingleSource/UnitTests/Integer:

sign.c updated: 1.2 -> 1.3
---
Log message:

Add some comments.


---
Diffs of the changes:  (+4 -4)

 sign.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Integer/sign.c
diff -u llvm-test/SingleSource/UnitTests/Integer/sign.c:1.2 llvm-test/SingleSource/UnitTests/Integer/sign.c:1.3
--- llvm-test/SingleSource/UnitTests/Integer/sign.c:1.2	Sat Feb 10 08:40:07 2007
+++ llvm-test/SingleSource/UnitTests/Integer/sign.c	Wed Mar 28 11:30:20 2007
@@ -39,12 +39,12 @@
   ux = num; // = 1
   printf("x = %d, ux = %u, y=%d, uy = %u\n", x, ux, y, uy);
     
-  z = x * y;  // 0x1000001 * (-1)
-  uz = ux * uy;
+  z = x * y;     // 0x1000001 * -1
+  uz = ux * uy;  // 1 * -1
   printf("z=%d, uz=%u\n", z, uz);
 
-  z = x % 314;
-  uz = ux % 314;
+  z = x % 314;   // 0x1000001 % 314
+  uz = ux % 314; // 1 % 314 == 1
   printf("z=%d, uz=%u\n", z, uz);
 
   z = x / 314;






More information about the llvm-commits mailing list