How to use 128 bit integers in Cython
问题 On my 64 bit computer the long long type has 64 bits. print(sizeof(long long)) # prints 8 I need to use 128 bit integers and luckily GCC supports these. How can I use these within Cython? The following doesn't work. Compiling foo.pyx containing just cdef __int128_t x = 0 yields $ cython foo.pyx Error compiling Cython file: ------------------------------------------------------------ ... cdef __int128_t x = 0 ^ ------------------------------------------------------------ foo.pyx:2:5: '__int128