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

Are long doubles with different implementations supported? #3931

Closed
AlexGuteniev opened this issue Aug 7, 2023 · 2 comments
Closed

Are long doubles with different implementations supported? #3931

AlexGuteniev opened this issue Aug 7, 2023 · 2 comments
Labels
question Further information is requested

Comments

@AlexGuteniev
Copy link
Contributor

MSVC supports float, double and long double but long double is the same as double.

However with classic FPU instructions, x86 provides a native support for a more precise type than the usual double. Some implementations may use that as underlying implementation of long double. MSVC doesn't, but maybe Intel Compiler or Clang or CUDA has a switch for that support.

Does such a switch exist? Do we need to support that?

The question is for #3928 , where I assume that long double is the same as double. The vector algorithm may return a totally wrong pointer for array of long doubles of different implementation.

@AlexGuteniev AlexGuteniev added the question Further information is requested label Aug 7, 2023
@sylveon
Copy link
Contributor

sylveon commented Aug 7, 2023

No, see #1316

@AlexGuteniev
Copy link
Contributor Author

No, see #1316

Thanks, I forgot about that precedent

AlexGuteniev added a commit to AlexGuteniev/STL that referenced this issue Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants