Commit Graph

12 Commits

Author SHA1 Message Date
wbhart
13f01913b2 Add MPIR_VERSION macros. 2008-07-23 02:26:25 +00:00
wbhart
00bb708279 Changed version numbers back to 4.2.1 in gmp-h.in. 2008-07-03 19:09:04 +00:00
wbhart
2e0c10aaa0 Edited version numbers and copyright info for mpir. 2008-06-28 23:37:27 +00:00
wbhart
97ef521bd0 On apple gcc v 5465 and above c99 is enforced by -std=gnu99 the same as for gcc 4.3 and above. The problem is, one cannot use either extern inline or extern __inline__ __attribute__ ((__gnu_inline__)) or static inline for the inlined functions in gmp.h. The first can't be used since it isn't c99, the second can't be used since the attribute is not supported by apple's gcc and the third cannot be used since this makes the library functions also static inline which causes duplicates.
The only solution which works for now is to not allow inlined functions in gmp.h. This obviously results in a performance deficit. But better a slow mpir than none at all!!

Ironically the first solution I came up with for the c99 problem was actually more robust than what we have here, but it was terribly inelegant.

This current patch works on Jason's home core2. Who knows if it breaks everything else!
2008-06-26 07:44:38 +00:00
wbhart
82db128a84 Added lines to gmp-h.in to try and fix problem on Apple GCC. 2008-06-26 05:41:28 +00:00
wbhart
2264a9bb9f Reversed changes to gmp-h.in which did not work. 2008-06-26 05:14:26 +00:00
wbhart
02c9b94d23 Yet another attempt to fix c99 inline stuff. 2008-06-26 04:04:26 +00:00
wbhart
40479614ef Fixed typos in gmp-h.in 2008-06-25 02:25:45 +00:00
wbhart
4154a21952 Attempt to fix c99 inline sematics again. 2008-06-25 02:01:33 +00:00
wbhart
f765185c83 Backed out changes to aclocal.m4 and fixed gmp.h to work correctly with c99 inline semantics when mpir is being compiled with gcc 4.3.0 or above. 2008-06-13 13:11:00 +00:00
wbhart
ed93f3a175 Edited gmp.h to use static inline in c99 mode and changed permissions of
files.
2008-04-18 01:59:13 +00:00
wbhart
a197a2d3eb Basic GMP files with a new core2 directory and amd_64 directory with Martin's and Gaudry's patches.
Removed directories for no longer supported architectures.
2008-04-17 21:03:07 +00:00