1
0
Fork 0

Update defs.h

pull/9/head
galaxyhaxz 2018-06-10 20:02:30 -05:00 committed by GitHub
parent f0298a95a9
commit 9c4c8c6fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
defs.h
View File

@ -28,6 +28,21 @@
/////////////////////////////////////////////////////////////////////////
#ifndef IDA_GARBAGE
#define IDA_GARBAGE
// note to self: only works for x86, originally used this way by the devs
inline void memset32(void *s, unsigned int i, size_t n)
{
__asm {
mov ecx, n
mov eax, i
mov edi, s
rep stosd
}
//for(x = 0; x < n; x++)
// (DWORD)s[x] = i;
}
typedef __int64 ll;
typedef unsigned __int64 ull;