Changeset a24df004 in mainline


Ignore:
Timestamp:
2018-03-18T13:05:53Z (6 years ago)
Author:
GitHub <noreply@…>
Parents:
973be387 (diff), c6a1768 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jakub Jermář <jakub@…> (2018-03-18 13:05:53)
git-committer:
GitHub <noreply@…> (2018-03-18 13:05:53)
Message:

Merge c6a17685590f909689510889f37768281dff86e6 into 973be38782462a672111ff6833f8dbb40d2a44bf

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r973be387 ra24df004  
    238238        $(USPACE_PATH)/lib/label/test-liblabel \
    239239        $(USPACE_PATH)/lib/posix/test-libposix \
     240        $(USPACE_PATH)/lib/softint/test-libsoftint \
    240241        $(USPACE_PATH)/lib/uri/test-liburi \
    241242        $(USPACE_PATH)/drv/bus/usb/xhci/test-xhci \
  • uspace/lib/pcut/include/pcut/asserts.h

    r973be387 ra24df004  
    186186#define PCUT_ASSERT_INT_EQUALS(expected, actual) \
    187187        do {\
    188                 long pcut_expected_eval = (expected); \
    189                 long pcut_actual_eval = (actual); \
     188                long long pcut_expected_eval = (expected); \
     189                long long pcut_actual_eval = (actual); \
    190190                if (pcut_expected_eval != pcut_actual_eval) { \
    191                         PCUT_ASSERTION_FAILED("Expected <%ld> but got <%ld> (%s != %s)", \
     191                        PCUT_ASSERTION_FAILED("Expected <%lld> but got <%lld> (%s != %s)", \
    192192                                pcut_expected_eval, pcut_actual_eval, \
    193193                                #expected, #actual); \
  • uspace/lib/softint/Makefile

    r973be387 ra24df004  
    3939        generic/shift.c
    4040
     41TEST_SOURCES = \
     42        test/main.c \
     43        test/multiplication.c
     44
    4145include $(USPACE_PREFIX)/Makefile.common
  • uspace/lib/softint/generic/multiplication.c

    r973be387 ra24df004  
    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

    r973be387 ra24df004  
    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.