fix bad uses of do_div in sysbits.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@306 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
366f16f44f
commit
cd843ac559
@ -314,7 +314,8 @@ cputime (void)
|
|||||||
unsigned long long int t =
|
unsigned long long int t =
|
||||||
*(unsigned long long int *)&UserTime -
|
*(unsigned long long int *)&UserTime -
|
||||||
*(unsigned long long int *)&StartOfTimes;
|
*(unsigned long long int *)&StartOfTimes;
|
||||||
return((Int)do_div(t,10000));
|
do_div(t,10000);
|
||||||
|
return((Int)t);
|
||||||
#endif
|
#endif
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
LONG_INTEGER t = *(LONG_INTEGER *)&UserTime - *(LONG_INTEGER *)&StartOfTimes;
|
LONG_INTEGER t = *(LONG_INTEGER *)&UserTime - *(LONG_INTEGER *)&StartOfTimes;
|
||||||
@ -337,8 +338,10 @@ void cputime_interval(Int *now,Int *interval)
|
|||||||
unsigned long long int t2 =
|
unsigned long long int t2 =
|
||||||
*(unsigned long long int *)&UserTime -
|
*(unsigned long long int *)&UserTime -
|
||||||
*(unsigned long long int *)&last_time;
|
*(unsigned long long int *)&last_time;
|
||||||
*now = (Int)do_div(t1,10000);
|
do_div(t1,10000);
|
||||||
*interval = (Int)do_div(t2,10000);
|
*now = (Int)t1;
|
||||||
|
do_div(t2,10000);
|
||||||
|
*interval = (Int)t2;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
LONG_INTEGER t1 = *(LONG_INTEGER *)&UserTime - *(LONG_INTEGER *)&StartOfTimes;
|
LONG_INTEGER t1 = *(LONG_INTEGER *)&UserTime - *(LONG_INTEGER *)&StartOfTimes;
|
||||||
|
Reference in New Issue
Block a user