#1720: fdiv_i_i_i and fdiv_i_i ops don't work correctly.
---------------------+------------------------------------------------------
 Reporter:  tcurtis  |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  normal   |   Milestone:       
Component:  core     |     Version:  2.6.0
 Severity:  low      |    Keywords:       
     Lang:           |       Patch:       
 Platform:           |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1720>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to