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

Add glue code to fix missing Modula-3 implementations of cabs, frexp, #1179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikanystrom
Copy link
Contributor

See cm3 issue 1178.

This PR creates glue procedures for the Math routines cabs, frexp, and modf.

signgam is left alone---I am not sure it needs any work.

What we do here is use standard call-by-value and standard C types to communicate in the simplest way into a new glue C module, with its own EXTERNAL symbols.

The suspect procedures are unmarked as EXTERNAL in Math.i3 and instead implemented in MathPosix.m3, which calls the new C code with appropriate arguments.

The code has been tested to link with all symbols, but not for functionality. (Prior work does not link, at least not with the C backend.)

@mikanystrom mikanystrom linked an issue Jun 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with git head as of May 31, 2024
2 participants