mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
fix(octave): floor_div use double division + floor instead of idivide with int32
This commit is contained in:
parent
3323a626ab
commit
bde2ba1ee7
1 changed files with 1 additions and 2 deletions
|
|
@ -39,8 +39,7 @@ classdef AVM
|
|||
|
||||
function r = floor_div(a, b)
|
||||
if b == 0; error('division by zero'); end
|
||||
q = idivide(a, b, 'floor');
|
||||
r = int32(q);
|
||||
r = int32(floor(double(a) / double(b)));
|
||||
end
|
||||
|
||||
function r = lt_q16_v6(a, b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue