summaryrefslogtreecommitdiffstats
path: root/src/common/x64/emitter.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-08-21 23:09:30 +0200
committerLioncash <mathew1800@gmail.com>2015-08-21 23:09:33 +0200
commit78e7c77ff55123c144f2344e03535af7d677aa12 (patch)
tree9e3b97c1fed3c278e39087dc126967f6ac16dbc5 /src/common/x64/emitter.h
parentMerge pull request #1056 from lioncash/emitter (diff)
downloadyuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar.gz
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar.bz2
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar.lz
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar.xz
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.tar.zst
yuzu-78e7c77ff55123c144f2344e03535af7d677aa12.zip
Diffstat (limited to 'src/common/x64/emitter.h')
-rw-r--r--src/common/x64/emitter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h
index 86f4a1fff..3d6eeb564 100644
--- a/src/common/x64/emitter.h
+++ b/src/common/x64/emitter.h
@@ -359,10 +359,10 @@ private:
void ABI_CalculateFrameSize(u32 mask, size_t rsp_alignment, size_t needed_frame_size, size_t* shadowp, size_t* subtractionp, size_t* xmm_offsetp);
protected:
- void Write8(u8 value) {*code++ = value;}
- void Write16(u16 value) {*(u16*)code = (value); code += 2;}
- void Write32(u32 value) {*(u32*)code = (value); code += 4;}
- void Write64(u64 value) {*(u64*)code = (value); code += 8;}
+ void Write8(u8 value);
+ void Write16(u16 value);
+ void Write32(u32 value);
+ void Write64(u64 value);
public:
XEmitter() { code = nullptr; flags_locked = false; }