diff options
author | Harald Koerfgen <hkoerfg@web.de> | 2000-07-05 17:25:09 +0000 |
---|---|---|
committer | Harald Koerfgen <hkoerfg@web.de> | 2000-07-05 17:25:09 +0000 |
commit | bf09792f49c756e48a4642d2af2a92abdca4d4a6 (patch) | |
tree | 34944f23224d5dd0451abc6e7ff6cfaf3fd53605 /include | |
parent | 60c17b8232c5e3e8e832bb194af31710f357b771 (diff) |
multu for HZ_TO_STD fixed
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/param.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/asm-mips/param.h b/include/asm-mips/param.h index 86ab4fd57..618570482 100644 --- a/include/asm-mips/param.h +++ b/include/asm-mips/param.h @@ -20,12 +20,11 @@ */ # define QUOTIENT ((1UL << (32 - LOG_2_HZ)) * 100) # define HZ_TO_STD(a) \ - ({ int __res; \ - __asm__( \ - "multu\t%0,%2\n\t" \ - "mfhi\t%0" \ - : "=r" (__res): "0" (a), "r" (QUOTIENT) \ - : "hi", "lo" ); \ + ({ unsigned int __res; \ + unsigned long lo; \ + __asm__("multu\t%2,%3\n\t" \ + :"=h" (__res), "=l" (lo) \ + :"r" (a),"r" (QUOTIENT)); \ __res;}) #else # define HZ 100 |