Skip to content
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

Added C11 <complex.h>, along with CMPLX creal cimag conj #557

Merged
merged 1 commit into from
Mar 22, 2025

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>

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