From bdcdd763fe37c8f78860987812f354b0c5c18232 Mon Sep 17 00:00:00 2001 From: Sintendo Date: Mon, 13 Jan 2020 00:15:10 +0100 Subject: [PATCH] x64Emitter: Remove unused macros No users, and one them seems to do the same as stddef.h's offsetof() already used elsewhere. --- Source/Core/Common/x64Emitter.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/Core/Common/x64Emitter.h b/Source/Core/Common/x64Emitter.h index 314f263012..45c1e15f1d 100644 --- a/Source/Core/Common/x64Emitter.h +++ b/Source/Core/Common/x64Emitter.h @@ -313,11 +313,6 @@ inline u32 PtrOffset(const void* ptr, const void* base = nullptr) return (u32)distance; } -// usage: int a[]; ARRAY_OFFSET(a,10) -#define ARRAY_OFFSET(array, index) ((u32)((u64) & (array)[index] - (u64) & (array)[0])) -// usage: struct {int e;} s; STRUCT_OFFSET(s,e) -#define STRUCT_OFFSET(str, elem) ((u32)((u64) & (str).elem - (u64) & (str))) - struct FixupBranch { enum class Type