Module: xenomai-head
Branch: master
Commit: c5d56749f9758df5cc2da30d4a49ab5f90534442
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c5d56749f9758df5cc2da30d4a49ab5f90534442

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jun  2 22:14:46 2009 +0200

Fix xnarch_divrem_billion not to use rthal_ullmul.

The count of seconds may not fit on 32 bits, so, we need the full 64 bits
multiplication.

---

 include/asm-generic/bits/timeconv.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/bits/timeconv.h 
b/include/asm-generic/bits/timeconv.h
index c2635fc..7d823f7 100644
--- a/include/asm-generic/bits/timeconv.h
+++ b/include/asm-generic/bits/timeconv.h
@@ -62,7 +62,7 @@ unsigned long long xnarch_divrem_billion(unsigned long long 
value,
 {
        unsigned long long r;
        r = xnarch_nodiv_ullimd(value, bln_frac.frac, bln_frac.integ);
-       *rem = value - xnarch_ullmul(r, 1000000000);
+       *rem = value - r * 1000000000;
        return r;
 }
 #else /* !XNARCH_HAVE_NODIV_LLIMD */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to