This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
[RFC][PATCH 0/3] Complex type support (FFI_TYPE_COMPLEX)
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: libffi-discuss at sourceware dot org
- Date: Tue, 22 Jul 2014 10:27:34 +0100
- Subject: [RFC][PATCH 0/3] Complex type support (FFI_TYPE_COMPLEX)
- Authentication-results: sourceware.org; auth=none
- Reply-to: vogt at linux dot vnet dot ibm dot com
The following series of patches introduces a framework for C
complex types (FFI_TYPE_COMPLEX) and support for complex types on
s390/s390x. For now, an architecture that supports complex types
has to define FFI_TARGET_HAS_COMPLEX_TYPE to activate the support.
This can be changed in the future when most architecture have
implemented it so that this is the default. The patch does not
address complex support in java_raw_api.c (as there is no
documentation how this interface is supposed to work).
Complex support in libffi is necessary to support the complex
types with the reflection interface of the libgo of the Go
programming language (gccgo).
* Patch 1/3: Somewhat reduce the macro hell.
This is a general cleanup patch that reduces the complexity of
some preprocessor macros. It is not strictly necessary, but it
simplifies the following patch.
* Patch 2/3: FFI_TYPE_COMPLEX framework
The patch introducing the FFI_TYPE_COMPLEX framework, including
documentation and test cases. Note that the patch introduces
predefined ffi_types for complex float, complex double and complex
longdouble but also supports the non-standard complex types that
gcc supports (the ffi_types have to be defined manually for them).
(See documentation for details.)
* Patch 3/3: S390: Implement FFI_TYPE_COMPLEX
A simple patch that implements the s390-abi for complex types.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany