Changeset e6d670f in mainline


Ignore:
Timestamp:
2018-03-17T17:42:06Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
c6a1768
Parents:
e59627e
Message:

Rename muldi3 to multi3 and add muldi3

muldi3 is supposed to take two longs and return long, while multi3
takes two long longs and returns long long. So the old muldi3 was in
fact
multi3 and the actualmuldi3 can be conveniently implemented
using the new
multi3.

Location:
uspace/lib/softint
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softint/generic/multiplication.c

    re59627e re6d670f  
    6464}
    6565
     66long __muldi3(long a, long b)
     67{
     68        return (long) __multi3(a, b);
     69}
     70
    6671/** Emulate multiplication of two 64-bit long long integers.
    6772 *
    6873 */
    69 long long __muldi3 (long long a, long long b)
     74long long __multi3(long long a, long long b)
    7075{
    7176        char neg = 0;
  • uspace/lib/softint/include/multiplication.h

    re59627e re6d670f  
    3737#define __SOFTINT_MULTIPLICATION_H__
    3838
     39extern long __muldi3(long, long);
     40
    3941/* 64 bit multiplication */
    40 extern long long __muldi3(long long, long long);
     42extern long long __multi3(long long, long long);
    4143
    4244#endif
Note: See TracChangeset for help on using the changeset viewer.