diff options
Diffstat (limited to 'softint/mul.c')
-rw-r--r-- | softint/mul.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/softint/mul.c b/softint/mul.c deleted file mode 100644 index 1907dba..0000000 --- a/softint/mul.c +++ /dev/null @@ -1,22 +0,0 @@ - -#include <stdint.h> - -long softint_mul( long x, long y ) -{ - - int i; - long result = 0; - - for (i = 0; i < (sizeof(long) << 3); i++) { - if ((x & 0x1) == 1) - result = result + y; - - x = x >> 1; - y = y << 1; - } - - return result; - -} - - |