top | item 23860441 (no title) cjhanks | 5 years ago Doesn't this mean that a conditional branch is added to all existing code which performs casting? discuss order hn newest oconnor663|5 years 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
oconnor663|5 years 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
oconnor663|5 years ago