Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

Added C11 <complex.h> prototypes and implemented CMPLX creal cimag conj in assembly.

Notes:

  • I is defined to _Complex_I
  • #define complex _Complex is skipped in C++ to avoid conflicts with <complex>/<ccomplex> should they be implemented.
  • __mulsc3 __divsc3 __muldc3 __divdc3 are not implemented yet, so I added a warning stating that complex multiplication and division can only be done with -ffast-math applied when <complex.h> is included.
  • <complex.h> has not been added to <tgmath.h>

@adriweb adriweb merged commit 6d40e82 into master Mar 22, 2025
9 checks passed
@adriweb adriweb deleted the pr/complex_C99 branch March 22, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants