Blame include/pemagine/pe_inline_asm.h

ff22b1
#ifndef _PE_INLINE_ASM_H_
ff22b1
#define _PE_INLINE_ASM_H_
ff22b1
ff22b1
#include "pe_api.h"
ff22b1
ff22b1
#ifdef  _MSC_VER
ff22b1
ff22b1
/* visual studio: begin */
ff22b1
#ifdef  _M_IX86
ff22b1
#ifndef __SIZEOF_POINTER__
ff22b1
#define __SIZEOF_POINTER__ 4
ff22b1
#endif
ff22b1
#endif
ff22b1
ff22b1
#ifdef _M_X64
ff22b1
#ifndef __SIZEOF_POINTER__
ff22b1
#define __SIZEOF_POINTER__ 8
ff22b1
#endif
ff22b1
#endif
ff22b1
ff22b1
#if (__SIZEOF_POINTER__ == 4)
feffc7
#include "bits/nt32/pe_inline_asm__msvc.h"
feffc7
#endif
feffc7
ff22b1
#if (__SIZEOF_POINTER__ == 8)
feffc7
#include "bits/nt64/pe_inline_asm__msvc.h"
feffc7
#endif
ff22b1
/* visual studio: end */
ff22b1
ff22b1
#else
ff22b1
ff22b1
/* all other compilers: begin */
ff22b1
#if (__SIZEOF_POINTER__ == 4)
ff22b1
#include "bits/nt32/pe_inline_asm__common.h"
ff22b1
#endif
ff22b1
ff22b1
#if (__SIZEOF_POINTER__ == 8)
ff22b1
#include "bits/nt64/pe_inline_asm__common.h"
ff22b1
#endif
ff22b1
/* all other compilers: end */
ff22b1
feffc7
#endif
feffc7
feffc7
/* trivial */
feffc7
static __inline__ void * pe_va_from_rva(const void * base, intptr_t offset)
feffc7
{
feffc7
        return (void *)((intptr_t)base + offset);
feffc7
}
ff22b1
ff22b1
#endif