Ticket #1720 (closed bug: fixed)
fdiv_i_i_i and fdiv_i_i ops don't work correctly.
Reported by: | tcurtis | Owned by: | NotFound |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | 2.6.0 |
Severity: | low | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
fdiv is documented to be flooring division: "The result is the floor() of the division i.e. the next whole integer towards -inf."
The num variants of fdiv correctly perform flooring division.
The int variants of fdiv floor the result of C integer division of the arguments, and C integer division truncates towards zero. Therefore, fdiv_i_i_i is currently equivalent to div_i_i_i.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.