mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
* Microscopic corrections to make things compile on the Cray APP.
* Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
This commit is contained in:
parent
f56e3db1dd
commit
9575a44575
6 changed files with 32 additions and 5 deletions
|
@ -38,6 +38,11 @@ extern int errno;
|
|||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef i860
|
||||
/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
|
||||
#undef HUGE_VAL
|
||||
#endif
|
||||
|
||||
#ifdef HUGE_VAL
|
||||
#define CHECK(x) if (errno != 0) ; \
|
||||
else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
|
||||
|
@ -170,6 +175,7 @@ float_hash(v)
|
|||
}
|
||||
else {
|
||||
fractpart = frexp(fractpart, &expo);
|
||||
fractpart = fractpart*4294967296.0; /* 2**32 */
|
||||
x = (long) (intpart + fractpart) ^ expo; /* Rather arbitrary */
|
||||
}
|
||||
if (x == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue