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

Special methods for float atomics #20

Open
droundy opened this issue Sep 7, 2020 · 1 comment
Open

Special methods for float atomics #20

droundy opened this issue Sep 7, 2020 · 1 comment

Comments

@droundy
Copy link

droundy commented Sep 7, 2020

It would be lovely to have fetch_add for f64 and f32. I know I could implement them with the provided intrinsics, but that is inconvenient.

@Amanieu
Copy link
Owner

Amanieu commented Sep 7, 2020

There is no hardware support for this operations, so it would have to be emulated using compare_exchange anyways. You can easily do that yourself with fetch_update.

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