Issue 19433: Define PY_UINT64_T on Windows 32bit (original) (raw)
Created on 2013-10-29 13:50 by christian.heimes, last changed 2022-04-11 14:57 by admin.
Messages (10)
Author: Christian Heimes (christian.heimes) *
Date: 2013-10-29 13:50
For PEP 456 it would be useful to have PY_UINT64_T on 32bit Windows. Does anybody see a problem with Victor's idea? I like it.
Victor wrote in http://bugs.python.org/issue19183#msg201629:
To support Windows 32 bit, the following code in PC/pyconfig.h can be modified to use __int64 or _W64: see ssize_t definition below in the same file.
#ifndef PY_UINT64_T #if SIZEOF_LONG_LONG == 8 #define HAVE_UINT64_T 1 #define PY_UINT64_T unsigned PY_LONG_LONG #endif #endif
Author: Martin v. Löwis (loewis) *
Date: 2013-10-29 14:21
LGTM
Author: Tim Golden (tim.golden) *
Date: 2013-10-29 15:40
Fine by me
Author: STINNER Victor (vstinner) *
Date: 2013-10-29 15:58
This issue has no patch.
Author: Christian Heimes (christian.heimes) *
Date: 2013-10-29 18:31
It seems no patch is needed to get PY_UINT64_T on 32bit Windows:
import sys sys.version '3.4.0a4+ (pep-456:f0a7e606c2d0, Oct 29 2013, 19:24:12) [MSC v.1600 32 bit (Intel)]' sys.maxsize 2147483647 sys.hash_info sys.hash_info(width=32, modulus=2147483647, inf=314159, nan=0, imag=1000003, algorithm='siphash24', hash_bits=64, seed_bits=128)
Author: Tim Peters (tim.peters) *
Date: 2013-10-29 18:45
Yes, it should be taken care of already, because of this in PC/pyconfig.h:
#ifdef MS_WIN32 ... #define SIZEOF_LONG_LONG 8
That defines the symbol triggering the PY_UINT64_T define shown in the original message in this issue.
Author: Roundup Robot (python-dev)
Date: 2013-10-29 18:45
New changeset daa1ab27b5c2 by Victor Stinner in branch 'default': Issue #19433: test_capi: add tests on the size of some C types http://hg.python.org/cpython/rev/daa1ab27b5c2
Author: STINNER Victor (vstinner) *
Date: 2013-10-29 18:49
See also issue #17884: "Try to reuse stdint.h types like int32_t".
Author: Roundup Robot (python-dev)
Date: 2013-10-29 19:00
New changeset 5bf96a96f31d by Victor Stinner in branch 'default': Issue #19433: test_capi: check signness of some C types http://hg.python.org/cpython/rev/5bf96a96f31d
Author: Mark Lawrence (BreamoreBoy) *
Date: 2015-02-12 23:17
Is there any more work needed on this or can it be closed? Please note the reference to #17884 in .
History
Date
User
Action
Args
2022-04-11 14:57:52
admin
set
github: 63632
2019-03-15 23:07:05
BreamoreBoy
set
nosy: - BreamoreBoy
2015-02-13 00:32:32
brian.curtin
set
nosy: - brian.curtin
2015-02-12 23:17:07
BreamoreBoy
set
nosy: + BreamoreBoy
messages: +
2013-10-29 19:00:02
python-dev
set
messages: +
2013-10-29 18:49:17
vstinner
set
messages: +
2013-10-29 18:45:48
python-dev
set
nosy: + python-dev
messages: +
2013-10-29 18:45:21
tim.peters
set
nosy: + tim.peters
messages: +
2013-10-29 18:31:45
christian.heimes
set
messages: +
2013-10-29 15:58:52
vstinner
set
messages: +
2013-10-29 15:40:38
tim.golden
set
messages: +
2013-10-29 14:21:55
loewis
set
messages: +
2013-10-29 13:50:22
christian.heimes
create