aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2012-09-07 22:30:49 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2012-09-07 22:30:49 -0700
commitdd32a44bc07fe36d8c777e745b0b509ce2e55a2c (patch)
treea81d5b7ec230f99176fb4ca04d95a1fd454d1134
parentd6a522404a38405ecfad78839d4c29bf5cb02e9b (diff)
downloadriscv-pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.zip
riscv-pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.tar.gz
riscv-pk-dd32a44bc07fe36d8c777e745b0b509ce2e55a2c.tar.bz2
Fixed bug with mul.c
-rw-r--r--softint/mul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/softint/mul.c b/softint/mul.c
index 45cff00..1907dba 100644
--- a/softint/mul.c
+++ b/softint/mul.c
@@ -7,7 +7,7 @@ long softint_mul( long x, long y )
int i;
long result = 0;
- for (i = 0; i < sizeof(long); i++) {
+ for (i = 0; i < (sizeof(long) << 3); i++) {
if ((x & 0x1) == 1)
result = result + y;