Changes in / [a24df004:973be387] in mainline
- Files:
-
- 2 deleted
- 5 edited
-
boot/Makefile.common (modified) (1 diff)
-
uspace/lib/pcut/include/pcut/asserts.h (modified) (1 diff)
-
uspace/lib/softint/Makefile (modified) (1 diff)
-
uspace/lib/softint/generic/multiplication.c (modified) (1 diff)
-
uspace/lib/softint/include/multiplication.h (modified) (1 diff)
-
uspace/lib/softint/test/main.c (deleted)
-
uspace/lib/softint/test/multiplication.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
ra24df004 r973be387 238 238 $(USPACE_PATH)/lib/label/test-liblabel \ 239 239 $(USPACE_PATH)/lib/posix/test-libposix \ 240 $(USPACE_PATH)/lib/softint/test-libsoftint \241 240 $(USPACE_PATH)/lib/uri/test-liburi \ 242 241 $(USPACE_PATH)/drv/bus/usb/xhci/test-xhci \ -
uspace/lib/pcut/include/pcut/asserts.h
ra24df004 r973be387 186 186 #define PCUT_ASSERT_INT_EQUALS(expected, actual) \ 187 187 do {\ 188 long longpcut_expected_eval = (expected); \189 long longpcut_actual_eval = (actual); \188 long pcut_expected_eval = (expected); \ 189 long pcut_actual_eval = (actual); \ 190 190 if (pcut_expected_eval != pcut_actual_eval) { \ 191 PCUT_ASSERTION_FAILED("Expected <%l ld> but got <%lld> (%s != %s)", \191 PCUT_ASSERTION_FAILED("Expected <%ld> but got <%ld> (%s != %s)", \ 192 192 pcut_expected_eval, pcut_actual_eval, \ 193 193 #expected, #actual); \ -
uspace/lib/softint/Makefile
ra24df004 r973be387 39 39 generic/shift.c 40 40 41 TEST_SOURCES = \42 test/main.c \43 test/multiplication.c44 45 41 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/softint/generic/multiplication.c
ra24df004 r973be387 64 64 } 65 65 66 long __muldi3(long a, long b)67 {68 return (long) __multi3(a, b);69 }70 71 66 /** Emulate multiplication of two 64-bit long long integers. 72 67 * 73 68 */ 74 long long __mul ti3(long long a, long long b)69 long long __muldi3 (long long a, long long b) 75 70 { 76 71 char neg = 0; -
uspace/lib/softint/include/multiplication.h
ra24df004 r973be387 37 37 #define __SOFTINT_MULTIPLICATION_H__ 38 38 39 extern long __muldi3(long, long);40 41 39 /* 64 bit multiplication */ 42 extern long long __mul ti3(long long, long long);40 extern long long __muldi3(long long, long long); 43 41 44 42 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
