-
Notifications
You must be signed in to change notification settings - Fork 46
Add support for __int128_t and __uint128_t
#89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It seems that macOS on aarch64 has makes use of `__uint128_t` in its header files without ever defining it. Apparently that is not unusual. See https://www.linuxfixes.com/2021/10/solved-is-there-128-bit-integer-in-gcc.html
| -- Tokens: _Alignas _Alignof __alignof alignof __alignof__ __asm asm __asm__ _Atomic auto break _Bool case char __const const __const__ continue _Complex __complex__ default do double else enum extern float for _Generic goto if __inline inline __inline__ int __int128 long _Noreturn _Nullable __nullable _Nonnull __nonnull register __restrict restrict __restrict__ return short __signed signed __signed__ sizeof static _Static_assert struct switch typedef __typeof typeof __typeof__ __thread _Thread_local union unsigned void __volatile volatile __volatile__ while __label__ _Float32 _Float32x _Float64 _Float64x _Float128 __float128 _Float128x __attribute __attribute__ __extension__ __real __real__ __imag __imag__ __builtin_va_arg __builtin_offsetof __builtin_types_compatible_p __builtin_convertvector | ||
| -- Tokens: _Alignas _Alignof __alignof alignof __alignof__ __asm asm __asm__ _Atomic auto break _Bool case char __const const __const__ __constant continue _Complex __complex__ default do double else enum extern float for _Generic goto if __inline inline __inline__ int __int128 __int128_t __uint128_t long _Noreturn _Nullable __nullable _Nonnull __nonnull register __restrict restrict __restrict__ return short __signed signed __signed__ sizeof static _Static_assert struct switch typedef __typeof typeof __typeof__ __thread _Thread_local union unsigned void __volatile volatile __volatile__ while __label__ _Float32 _Float32x _Float64 _Float64x _Float128 __float128 _Float128x __attribute __attribute__ __extension__ __real __real__ __imag __imag__ __builtin_va_arg __builtin_offsetof __builtin_types_compatible_p __builtin_convertvector | ||
| idkwtok ('_' : 'A' : 'l' : 'i' : 'g' : 'n' : 'a' : 's' : []) = tok 8 CTokAlignas | ||
| idkwtok ('_' : 'A' : 'l' : 'i' : 'g' : 'n' : 'o' : 'f' : []) = tok 8 CTokAlignof |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Alex UI is just terrible lol.
Manual list concatenation, manual length, repeating the id name...
|
Does this break code where |
|
We are running into this issue (through |
|
Also running into this—or a related—issue through c2hs. Haven't tried the patch but will give it a go. |
|
PR #92 has a fix for this issue. Thanks @expipiplus1 for the hint on where to begin. edit: Doh! I didn't notice that this is a PR thread (not an issue thread) and @hamishmack actually provided a fix. |
|
Thanks, I'm sorry it's taken a while to get round to this. I'm going to merge #92 just because the CI passes today when I'm concentrating on this. Expect a new release shortly. |
It seems that macOS on aarch64 has makes use of
__uint128_tin its header files without ever defining it. Apparently that is not unusual.See https://www.linuxfixes.com/2021/10/solved-is-there-128-bit-integer-in-gcc.html