Lines Matching refs:LoadBytes
1028 /// LoadIntFromMemory - Loads the integer stored in the LoadBytes bytes starting
1030 static void LoadIntFromMemory(APInt &IntVal, uint8_t *Src, unsigned LoadBytes) {
1031 assert((IntVal.getBitWidth()+7)/8 >= LoadBytes && "Integer too small!");
1038 memcpy(Dst, Src, LoadBytes);
1044 while (LoadBytes > sizeof(uint64_t)) {
1045 LoadBytes -= sizeof(uint64_t);
1047 memcpy(Dst, Src + LoadBytes, sizeof(uint64_t));
1051 memcpy(Dst + sizeof(uint64_t) - LoadBytes, Src, LoadBytes);
1060 const unsigned LoadBytes = getDataLayout()->getTypeStoreSize(Ty);
1066 LoadIntFromMemory(Result.IntVal, (uint8_t*)Ptr, LoadBytes);