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

Support esoteric Visual Studio's complex arithmetic #11

Open
BatchDrake opened this issue Dec 22, 2019 · 0 comments
Open

Support esoteric Visual Studio's complex arithmetic #11

BatchDrake opened this issue Dec 22, 2019 · 0 comments

Comments

@BatchDrake
Copy link
Owner

In order to port sigutils to Windows machines, we need to replace C99's _Complex types by Microsoft's _Fcomplex (or _Dcomplex in double precision arithmetic). The biggest pitfall about using these types comes from the lack of complex operators in Visual Studio: all complex arithmetic must be performed through intrinsics like _FCaddcc or _FCmulcc. This would make the code extremely cumbersome and difficult to maintain.

The only alternative is to keep the current syntax and write an extremely convoluted C preprocessor that is able to detect all complex arithmetic across a file and translate it to Visual Studio intrinsics in compile time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant