MCPcopy Create free account
hub / github.com/acl-dev/acl / GetMovlGp

Method GetMovlGp

lib_fiber/cpp/src/detours/disasm.cpp:2147–2167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2145}
2146
2147UINT64 DETOUR_IA64_BUNDLE::GetMovlGp() const
2148{
2149 UINT64 raw = (
2150 // 0x0000000000000070
2151 ((wide[1] & 0x000007f000000000) >> 36) |
2152 // 0x000000000000ff80
2153 ((wide[1] & 0x07fc000000000000) >> 43) |
2154 // 0x00000000001f0000
2155 ((wide[1] & 0x0003e00000000000) >> 29) |
2156 // 0x0000000000200000
2157 ((wide[1] & 0x0000100000000000) >> 23) |
2158 // 0x000000ffffc00000
2159 ((wide[0] & 0xffffc00000000000) >> 24) |
2160 // 0x7fffff0000000000
2161 ((wide[1] & 0x00000000007fffff) << 40) |
2162 // 0x8000000000000000
2163 ((wide[1] & 0x0800000000000000) << 4)
2164 );
2165
2166 return (INT64)raw;
2167}
2168
2169VOID DETOUR_IA64_BUNDLE::SetMovlGp(UINT64 gp)
2170{

Callers 2

DetourDetachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected