Browse Source

Update defs.h

pull/4/head
galaxyhaxz 8 years ago committed by GitHub
parent
commit
9c4c8c6fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      defs.h

15
defs.h

@ -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;

Loading…
Cancel
Save