[llvm-commits] [test-suite] r58267 - in /test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac: pdefs.h precision.h

Dan Gohman gohman at apple.com
Mon Oct 27 13:46:33 PDT 2008


Author: djg
Date: Mon Oct 27 15:46:33 2008
New Revision: 58267

URL: http://llvm.org/viewvc/llvm-project?rev=58267&view=rev
Log:
Fix cfrac on LP64 platforms. Some prototypes for functions that
return pointer values where mistakenly missing, and the typedef
for u32 was broken.

Modified:
    test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/pdefs.h
    test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/precision.h

Modified: test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/pdefs.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/pdefs.h?rev=58267&r1=58266&r2=58267&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/pdefs.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/pdefs.h Mon Oct 27 15:46:33 2008
@@ -43,9 +43,10 @@
 /*
  * These next four types are used only used in this include file
  */
-typedef	unsigned char	u8;				  /*  8 bits */
-typedef unsigned short	u16;				  /* 16 bits */
-typedef unsigned long	u32;			  	  /* 32 bits */
+#include <stdint.h>
+typedef	uint8_t		u8;				  /*  8 bits */
+typedef uint16_t	u16;				  /* 16 bits */
+typedef uint32_t	u32;			  	  /* 32 bits */
 typedef u8           	boolean;		          /*  1 bit  */
 
 #define BASE	  	65536		/* Base * (Base-1) <= MAXINT */

Modified: test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/precision.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/precision.h?rev=58267&r1=58266&r2=58267&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/precision.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MallocBench/cfrac/precision.h Mon Oct 27 15:46:33 2008
@@ -118,11 +118,18 @@
 #endif
 
 #ifdef __STDC__		/* if ANSI compiler */
+/* LLVM - Disable all of the inlining */
+#if 0
 #ifndef __GNUC__
 extern	precision 	pnew(precision);		/* initialization */
 extern	precision 	presult(precision);		/* function result */
 extern	precision	psetq(precision *, precision);	/* quick assignment */
 #endif
+#else
+extern	precision 	pnew(precision);		/* initialization */
+extern	precision 	presult(precision);		/* function result */
+extern	precision	psetq(precision *, precision);	/* quick assignment */
+#endif
 extern	precision	psetv(precision *, precision); /* checked assignment */
 extern	precision	pparmv(precision);	/* checked parameter */
 extern	precision	pparmf(precision);	/* unchecked parameter (fn) */
@@ -225,11 +232,18 @@
  * Function versions of above if you still want side effects
  */
 
+/* LLVM - Disable all of the inlining */
+#if 0
 #ifndef __GNUC__
 extern	precision 	pnew();		/* initialization */
 extern	precision 	presult();	/* function result */
 extern	precision	psetq();	/* quick assignment */
 #endif
+#else
+extern	precision 	pnew();		/* initialization */
+extern	precision 	presult();	/* function result */
+extern	precision	psetq();	/* quick assignment */
+#endif
 extern	precision	psetv(); 	/* checked assignment */
 extern	precision	pparmv();	/* checked parameter */
 extern	precision	pparmf();	/* unchecked parameter (fn) */





More information about the llvm-commits mailing list