cpython/Modules/_ctypes
Diego Russo f941ecfffa
[3.12] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112767)
Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms.
This because on Arm platforms structs with at most 4 elements of any
floating point type values can be passed through registers. If the type
is double the maximum size of the struct is 32 bytes.
On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate.

(cherry picked from commit bc68f4a4ab)
2023-12-06 16:57:34 +01:00
..
_ctypes.c [3.12] gh-46376: Revert "Return existing pointer when possible in ctypes (GH-107131) (GH-107487)" (#108864) 2023-09-04 16:24:16 +02:00
_ctypes_test.c [3.12] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112767) 2023-12-06 16:57:34 +01:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
callbacks.c [3.12] gh-105375: Improve error handling in _ctypes (GH-105593) (#105663) 2023-06-11 20:25:27 +00:00
callproc.c gh-103092: Port _ctypes.COMError to heap type (#104020) 2023-05-04 13:03:24 +00:00
cfield.c gh-103092: Isolate _ctypes, part 1 (#103893) 2023-04-27 14:57:54 +02:00
ctypes.h gh-103092: Port _ctypes.COMError to heap type (#104020) 2023-05-04 13:03:24 +00:00
malloc_closure.c gh-99337: Fix compile errors with gcc 12 on macOS (#99470) 2022-11-21 10:50:20 +01:00
stgdict.c [3.12] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112767) 2023-12-06 16:57:34 +01:00