[Python-checkins] CVS: python/dist/src acconfig.h,1.31,1.32
Tim Peters
python-dev@python.org
Fri, 7 Jul 2000 21:17:24 -0700
Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5529/src
Modified Files:
acconfig.h
Log Message:
Cray J90 fixes for long ints.
This was a convenient excuse to create the pyport.h file recently
discussed!
Please use new Py_ARITHMETIC_RIGHT_SHIFT when right-shifting a
signed int and you *need* sign-extension. This is #define'd in
pyport.h, keying off new config symbol SIGNED_RIGHT_SHIFT_ZERO_FILLS.
If you're running on a platform that needs that symbol #define'd,
the std tests never would have worked for you (in particular,
at least test_long would have failed).
The autoconfig stuff got added to Python after my Unix days, so
I don't know how that works. Would someone please look into doing
& testing an auto-config of the SIGNED_RIGHT_SHIFT_ZERO_FILLS
symbol? It needs to be defined if & only if, e.g., (-1) >> 3 is
not -1.
Index: acconfig.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/acconfig.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** acconfig.h 2000/06/30 16:02:24 1.31
--- acconfig.h 2000/07/08 04:17:21 1.32
***************
*** 170,173 ****
--- 170,178 ----
#undef HAVE_DYNAMIC_LOADING
+ /* Define if i>>j for signed int i does not extend the sign bit
+ when i < 0
+ */
+ #undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
+
/* Leave that blank line there-- autoheader needs it! */