Re: [dev] [st] [PATCH 3/5] Do not use floating point to calculate timeout
> - drawtimeout.tv_nsec = (1000/xfps) * 1E6;
> + drawtimeout.tv_nsec = 1000000000 / xfps;
I like the patch, but not the comment. In the original code there is no
floating point calculation at all; the division is integer, but is true
that there is accuary lost. Maybe the best option is:
drawtimeout.tv_nsec = (1000*1E6) / xfps;
Regards,
Received on Mon Apr 20 2015 - 09:08:58 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 20 2015 - 09:12:07 CEST