6

impl std::simd::StdFloat by workingjubilee · Pull Request #219 · rust-lang/porta...

 2 years ago
source link: https://github.com/rust-lang/portable-simd/pull/219
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

workingjubilee commented 26 days ago

This introduces an extension trait to allow use of floating point methods that need runtime support. It is excessively documented because its mere existence is quite vexing, as the entire thing constitutes a leakage of implementation details into user observable space. Eventually the entire thing will ideally be folded into core and restructured to match the rest of the library, whatever that structure might look like at the time. This is preferred in lieu of the "lang item" path because any energy the lang items require (and it will be not-insignificant, by Simulacrum's estimation) is better spent on implementing our libmvec.

I have already tested a sync of this branch into std and it works fine.

For further (and purely optional) reading on "why this", see:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK