From: SourceForge.net <no...@so...> - 2010-09-20 06:53:49
|
Bugs item #3071698, was opened at 2010-09-20 08:53 Message generated for change (Tracker Item Submitted) made by ravriel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=622063&aid=3071698&group_id=98788 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Daemons (Windows) Group: v0.7.x (release) Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ron Avriel (ravriel) Assigned to: Nobody/Anonymous (nobody) Summary: Inaccurate co_div64() Initial Comment: co_div64() is inaccurate. For example, co_div64(0x100000000,0x10000000) returns 15 instead of 16. co_div64(0x1000000000000,0x10000000) returns 983055 instead of 1048576. As an alternative, I suggest using http://www.linuxhq.com/kernel/v2.5/75/lib/div64.c that returns both the result and the remainder, both needed in time calculation. Another option is to use Windows native divide operator. Why do we need to implement it if it already exists? Thanks, Ron ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=622063&aid=3071698&group_id=98788 |