Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

<complex> Implement p0415r1 constexpr For <complex> (Again) #338

Closed
wants to merge 5 commits into from

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Dec 6, 2022

This implements p0415r1 constexpr For <complex> (Again) which can be found here https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0415r1.html

Unfortunately we cannot currently implement it fully because there are some issues with intrinsics:

  1. __isinf is currently not constexpr on device side. We need compiler support for that.
  2. Divide is calling a lot of non constexpr functions. We would have to rewrite the algorithm completely :(

I did add a copyright banner to all relevant test cases when comparing them to the current state of libc++

@miscco miscco requested a review from wmaxey December 6, 2022 10:10
@miscco
Copy link
Collaborator Author

miscco commented Feb 21, 2023

@jrhemstad Do we want to get this in even given that we only partially support the feature?

This implements p0415r1 `constexpr For <complex> (Again)` which can be found here https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0415r1.html

Unfortunately we cannot currently implement it fully because there are some issues with intrinsics:

1. __isinf is currently not constexpr on device side. We need compiler support for that.
2. Divide is calling a lot of non constexpr functions. We would have to rewrite the algorithm completely :(
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant