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

what is intended to be dllexport-ed? #252

Open
jeremyd2019 opened this issue Sep 10, 2021 · 1 comment
Open

what is intended to be dllexport-ed? #252

jeremyd2019 opened this issue Sep 10, 2021 · 1 comment

Comments

@jeremyd2019
Copy link
Contributor

When I went through openlibm_fenv_i387.h and added OLM_DLLEXPORT, it felt like the __has_sse/__test_sse symbols should have been private, but they were used by the tests so had to be exported.

Looking through other headers, I see openlibm_fenv_amd64.h is better about having OLM_DLLEXPORT, but I notice it is missing from __fe_dfl_env. It seems that this would need to be exported for FE_DFL_ENV macro to work. Probably also need to be done in the arm.h as well.

openlibm_complex.h has no OLM_DLLEXPORT annotations. I assume this is intended to be a public API, yes?

There is some hackery for amd64 with regard to exporting inline functions. This hackery does not seem to be present for i387 or aarch64. I am not sure what precise problem it is intended to solve, but it seems like if it's necessary for amd64 it would be necessary for all.

@ViralBShah
Copy link
Member

We can always replicate the has_sse stuff in the tests. It may be best to not export those from openlibm. Since things have been assembled and edited over time, it is believable that things are not done uniformly.

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

No branches or pull requests

2 participants