Commit ffb5aa5d authored by Robert Bradshaw's avatar Robert Bradshaw

Declare 64-bit stdint types as long long.

I don't know of any platforms where sizeof(long long) == 64, and this
is needed for unsigned long + int64_t on LLP64.

This may pose a problem if sizeof(uintmax_t) > 64.
parent 61ee8e54
...@@ -13,7 +13,7 @@ cdef extern from "stdint.h" nogil: ...@@ -13,7 +13,7 @@ cdef extern from "stdint.h" nogil:
ctypedef unsigned char uint8_t ctypedef unsigned char uint8_t
ctypedef unsigned short uint16_t ctypedef unsigned short uint16_t
ctypedef unsigned int uint32_t ctypedef unsigned int uint32_t
ctypedef unsigned long uint64_t ctypedef unsigned long long uint64_t
# 7.18.1.2 Minimum-width integer types # 7.18.1.2 Minimum-width integer types
ctypedef signed char int_least8_t ctypedef signed char int_least8_t
ctypedef signed short int_least16_t ctypedef signed short int_least16_t
...@@ -22,7 +22,7 @@ cdef extern from "stdint.h" nogil: ...@@ -22,7 +22,7 @@ cdef extern from "stdint.h" nogil:
ctypedef unsigned char uint_least8_t ctypedef unsigned char uint_least8_t
ctypedef unsigned short uint_least16_t ctypedef unsigned short uint_least16_t
ctypedef unsigned int uint_least32_t ctypedef unsigned int uint_least32_t
ctypedef unsigned long uint_least64_t ctypedef unsigned long long uint_least64_t
# 7.18.1.3 Fastest minimum-width integer types # 7.18.1.3 Fastest minimum-width integer types
ctypedef signed char int_fast8_t ctypedef signed char int_fast8_t
ctypedef signed short int_fast16_t ctypedef signed short int_fast16_t
...@@ -31,7 +31,7 @@ cdef extern from "stdint.h" nogil: ...@@ -31,7 +31,7 @@ cdef extern from "stdint.h" nogil:
ctypedef unsigned char uint_fast8_t ctypedef unsigned char uint_fast8_t
ctypedef unsigned short uint_fast16_t ctypedef unsigned short uint_fast16_t
ctypedef unsigned int uint_fast32_t ctypedef unsigned int uint_fast32_t
ctypedef unsigned long uint_fast64_t ctypedef unsigned long long uint_fast64_t
# 7.18.1.4 Integer types capable of holding object pointers # 7.18.1.4 Integer types capable of holding object pointers
ctypedef ssize_t intptr_t ctypedef ssize_t intptr_t
ctypedef size_t uintptr_t ctypedef size_t uintptr_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment