Update defs.h
parent
f0298a95a9
commit
9c4c8c6fe1
15
defs.h
15
defs.h
|
@ -28,6 +28,21 @@
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
#ifndef IDA_GARBAGE
|
#ifndef IDA_GARBAGE
|
||||||
#define 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 __int64 ll;
|
||||||
typedef unsigned __int64 ull;
|
typedef unsigned __int64 ull;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue