Changeset 52290 in vbox for trunk/include/iprt
- Timestamp:
- Aug 6, 2014 10:14:47 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95402
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/bignum.h
r51770 r52290 38 38 39 39 /** The big integer number element type. */ 40 #if ARCH_BITS == 64 41 typedef uint64_t RTBIGNUMELEMENT; 42 #else 40 43 typedef uint32_t RTBIGNUMELEMENT; 44 #endif 41 45 /** The size (in bytes) of one array element. */ 42 #define RTBIGNUM_ELEMENT_SIZE 4 46 #if ARCH_BITS == 64 47 # define RTBIGNUM_ELEMENT_SIZE 8 48 #else 49 # define RTBIGNUM_ELEMENT_SIZE 4 50 #endif 43 51 /** The number of bits in one array element. */ 44 52 #define RTBIGNUM_ELEMENT_BITS (RTBIGNUM_ELEMENT_SIZE * 8) 45 53 /** Returns the bitmask corrsponding to given bit number. */ 46 #define RTBIGNUM_ELEMENT_BIT(iBit) RT_BIT_32(iBit) 54 #if ARCH_BITS == 64 55 # define RTBIGNUM_ELEMENT_BIT(iBit) RT_BIT_64(iBit) 56 #else 57 # define RTBIGNUM_ELEMENT_BIT(iBit) RT_BIT_32(iBit) 58 #endif 47 59 48 60 /**
Note:
See TracChangeset
for help on using the changeset viewer.