Hacker News new | ask | show | jobs
by oconnor663 2169 days ago
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