Changeset 46c20c8 in mainline for uspace/app/sbi/src/bigint_t.h
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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. - File:
-
- 1 moved
-
uspace/app/sbi/src/bigint_t.h (moved) (moved from uspace/lib/libc/arch/ia64/include/istate.h ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/bigint_t.h
rfb150d78 r46c20c8 27 27 */ 28 28 29 /** @addtogroup libcsparc64 30 * @{ 31 */ 32 /** @file 33 */ 34 35 #ifndef LIBC_ia64_ISTATE_H_ 36 #define LIBC_ia64_ISTATE_H_ 29 #ifndef BIGINT_T_H_ 30 #define BIGINT_T_H_ 37 31 38 32 #include <sys/types.h> 33 #include <stdint.h> 39 34 40 /** Interrupt context. 35 typedef uint8_t bigint_word_t; 36 typedef uint16_t bigint_dword_t; 37 38 #define BIGINT_BASE ((bigint_dword_t) 256UL) 39 40 /** Big integer. 41 41 * 42 * This is a copy of the kernel definition with which it must be kept in sync.42 * Used to implement Sysel @c int type. 43 43 */ 44 typedef struct istate{45 /* TODO*/46 } istate_t;44 typedef struct bigint { 45 /** Number of non-zero digits in the @c digit array. */ 46 size_t length; 47 47 48 static inline uintptr_t istate_get_pc(istate_t *istate) 49 { 50 /* TODO */ 51 return 0; 52 } 48 /** Sign. */ 49 bool_t negative; 53 50 54 static inline uintptr_t istate_get_fp(istate_t *istate) 55 { 56 /* TODO */ 57 return 0; 58 } 51 /** Digits starting from the least significant. */ 52 bigint_word_t *digit; 53 } bigint_t; 59 54 60 55 #endif 61 62 /** @}63 */
Note:
See TracChangeset
for help on using the changeset viewer.
