• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libunwind-35.3/src/

Lines Matching refs:from

44 //		get16()			read a 16-bit number from an E endian struct
46 // get32() read a 32-bit number from an E endian struct
48 // get64() read a 64-bit number from an E endian struct
51 // getBits() read a bit field from an E endian struct (bitCount=number of bits in field, firstBit=bit index of field)
54 // getBitsRaw() read a bit field from a struct with native endianness
55 // setBitsRaw() write a bit field from a struct with native endianness
61 static uint16_t get16(const uint16_t& from) INLINE { return OSReadBigInt16(&from, 0); }
64 static uint32_t get32(const uint32_t& from) INLINE { return OSReadBigInt32(&from, 0); }
67 static uint64_t get64(const uint64_t& from) INLINE { return OSReadBigInt64(&from, 0); }
70 static uint32_t getBits(const uint32_t& from,
71 uint8_t firstBit, uint8_t bitCount) INLINE { return getBitsRaw(get32(from), firstBit, bitCount); }
75 static uint32_t getBitsRaw(const uint32_t& from,
76 uint8_t firstBit, uint8_t bitCount) INLINE { return ((from >> (32-firstBit-bitCount)) & ((1<<bitCount)-1)); }
90 static uint16_t get16(const uint16_t& from) INLINE { return OSReadLittleInt16(&from, 0); }
93 static uint32_t get32(const uint32_t& from) INLINE { return OSReadLittleInt32(&from, 0); }
96 static uint64_t get64(const uint64_t& from) INLINE { return OSReadLittleInt64(&from, 0); }
99 static uint32_t getBits(const uint32_t& from,
100 uint8_t firstBit, uint8_t bitCount) INLINE { return getBitsRaw(get32(from), firstBit, bitCount); }
104 static uint32_t getBitsRaw(const uint32_t& from,
105 uint8_t firstBit, uint8_t bitCount) INLINE { return ((from >> firstBit) & ((1<<bitCount)-1)); }
123 static uint64_t getP(const uint_t& from) INLINE { return _E::get32(from); }
135 static uint64_t getP(const uint_t& from) INLINE { return _E::get64(from); }