Re:Rust 1.45
by cjhanks on Thursday July 16, 2020 @12:14PM
(#23860441)
Doesn't this mean that a conditional branch is added to all existing code which performs casting?
[ Parent
| on HN ]
Re:Rust 1.45
by oconnor663 on Thursday July 16, 2020 @12:31PM
(#23860616)
I think in the specific case of casting a float to an int, more instructions will be added, but it doesn't have to be a branch. Here it looks like rustc emits a conditional move: https://godbolt.org/z/1cfqof