Changeset 41455a22 in mainline for uspace/lib/softint/include
- Timestamp:
- 2012-04-07T17:56:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 44c1a48, f3378ba
- Parents:
- 6bb169b5 (diff), 88d5c1e (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. - Location:
- uspace/lib/softint/include
- Files:
-
- 5 edited
-
comparison.h (modified) (1 diff)
-
division.h (modified) (3 diffs)
-
lltype.h (modified) (1 diff)
-
multiplication.h (modified) (2 diffs)
-
shift.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softint/include/comparison.h
r6bb169b5 r41455a22 38 38 39 39 /* Signed comparison (a < b => 0, a == b => 1, a > b => 2). */ 40 int __cmpdi2 (long long a, long long b);40 extern int __cmpdi2(long long, long long); 41 41 42 42 /* Unsigned comparison (a < b => 0, a == b => 1, a > b => 2). */ 43 int __ucmpdi2 (unsigned long long a, unsigned long long b);43 extern int __ucmpdi2(unsigned long long, unsigned long long); 44 44 45 45 #endif -
uspace/lib/softint/include/division.h
r6bb169b5 r41455a22 29 29 /** @addtogroup softint 30 30 * @{ 31 */ 31 */ 32 32 /** 33 33 * @file … … 37 37 #define __SOFTINT_DIVISION_H__ 38 38 39 extern int __divsi3(int, int); 40 extern long long __divdi3(long long, long long); 39 41 40 /* 32bit integer division */ 41 int __divsi3(int a, int b);42 extern unsigned int __udivsi3(unsigned int, unsigned int); 43 extern unsigned long long __udivdi3(unsigned long long, unsigned long long); 42 44 43 /* 64bit integer division */ 44 long long __divdi3(long long a, long long b);45 extern int __modsi3(int, int); 46 extern long long __moddi3(long long, long long); 45 47 46 /* 32bit unsigned integer division */ 47 unsigned int __udivsi3(unsigned int a, unsigned int b);48 extern unsigned int __umodsi3(unsigned int, unsigned int); 49 extern unsigned long long __umoddi3(unsigned long long, unsigned long long); 48 50 49 /* 64bit unsigned integer division */ 50 unsigned long long __udivdi3(unsigned long long a, unsigned long long b);51 extern int __divmodsi3(int, int, int *); 52 extern unsigned int __udivmodsi3(unsigned int, unsigned int, unsigned int *); 51 53 52 /* 32bit remainder of the signed division */ 53 int __modsi3(int a, int b); 54 55 /* 64bit remainder of the signed division */ 56 long long __moddi3(long long a, long long b); 57 58 /* 32bit remainder of the unsigned division */ 59 unsigned int __umodsi3(unsigned int a, unsigned int b); 60 61 /* 64bit remainder of the unsigned division */ 62 unsigned long long __umoddi3(unsigned long long a, unsigned long long b); 63 64 unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b, unsigned long long *c); 54 extern long long __divmoddi3(long long, long long, long long *); 55 extern unsigned long long __udivmoddi3(unsigned long long, unsigned long long, 56 unsigned long long *); 65 57 66 58 #endif … … 68 60 /** @} 69 61 */ 70 -
uspace/lib/softint/include/lltype.h
r6bb169b5 r41455a22 39 39 #include <stdint.h> 40 40 41 #define HALF_BIT_CNT (sizeof(int32_t) * sizeof(char))42 #define WHOLE_BIT_CNT (sizeof(int64_t) * sizeof(char))41 #define HALF_BIT_CNT (sizeof(int32_t) * sizeof(char)) 42 #define WHOLE_BIT_CNT (sizeof(int64_t) * sizeof(char)) 43 43 44 44 #ifdef __BE__ -
uspace/lib/softint/include/multiplication.h
r6bb169b5 r41455a22 29 29 /** @addtogroup softint 30 30 * @{ 31 */ 31 */ 32 32 /** 33 33 * @file … … 38 38 39 39 /* 64 bit multiplication */ 40 long long __muldi3(long long a, long long b);40 extern long long __muldi3(long long, long long); 41 41 42 42 #endif -
uspace/lib/softint/include/shift.h
r6bb169b5 r41455a22 38 38 39 39 /* Arithmetic/logical shift left. */ 40 long long __ashldi3 (long long val, int shift);40 extern long long __ashldi3(long long, int); 41 41 42 42 /* Arithmetic shift right. */ 43 long long __ashrdi3 (long long val, int shift);43 extern long long __ashrdi3(long long, int); 44 44 45 45 /* Logical shift right. */ 46 long long __lshrdi3 (long long val, int shift);46 extern long long __lshrdi3(long long, int); 47 47 48 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
