Lines Matching refs:bytesToMove
320 size_t bytesToMove = SIZE_OF_RELJUMP; in InsertTrampoline32() local
332 bytesToMove = strlen(pattern)/2-1; // The last byte matching the pattern must not be copied in InsertTrampoline32()
333 __TBB_ASSERT_RELEASE( bytesToMove >= SIZE_OF_RELJUMP, "Incorrect bytecode pattern?" ); in InsertTrampoline32()
342 memcpy(*storedAddr, codePtr, bytesToMove); in InsertTrampoline32()
348 *(UCHAR*)(trampAddr+bytesToMove) = 0xE9; in InsertTrampoline32()
349 memcpy((UCHAR*)(trampAddr+bytesToMove+1), &offset32, sizeof(offset32)); in InsertTrampoline32()
361 for( unsigned i=SIZE_OF_RELJUMP; i<bytesToMove; i++ ){ in InsertTrampoline32()
375 size_t bytesToMove = SIZE_OF_INDJUMP; in InsertTrampoline64() local
394 bytesToMove = strlen(pattern)/2-1; // The last byte matching the pattern must not be copied in InsertTrampoline64()
395 __TBB_ASSERT_RELEASE( bytesToMove >= SIZE_OF_INDJUMP, "Incorrect bytecode pattern?" ); in InsertTrampoline64()
404 memcpy(*storedAddr, codePtr, bytesToMove); in InsertTrampoline64()
410 *(UCHAR*)(trampAddr+bytesToMove) = 0xE9; in InsertTrampoline64()
411 memcpy((UCHAR*)(trampAddr+bytesToMove+1), &offset32, sizeof(offset32)); in InsertTrampoline64()
422 for( unsigned i=SIZE_OF_INDJUMP; i<bytesToMove; i++ ){ in InsertTrampoline64()