Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oconnor663
on July 16, 2020
|
parent
|
context
|
favorite
| on:
Rust 1.45
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: