aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-10-21 15:55:07 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-10-21 15:55:07 +0800
commit8f53a5dd0024cfa377386dd3ddaf8c9d7b083ffa (patch)
tree9c78c29b3b25acdc8c5392993fcb846c83e1b6e7 /src
parentc6796d12425fdd3878891b09f2ed435e0c73f074 (diff)
downloadtangerine-mcl-8f53a5dd0024cfa377386dd3ddaf8c9d7b083ffa.tar.gz
tangerine-mcl-8f53a5dd0024cfa377386dd3ddaf8c9d7b083ffa.tar.zst
tangerine-mcl-8f53a5dd0024cfa377386dd3ddaf8c9d7b083ffa.zip
support gcc-4.8
Diffstat (limited to 'src')
-rw-r--r--src/xbyak/xbyak.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xbyak/xbyak.h b/src/xbyak/xbyak.h
index 42974e3..47494ef 100644
--- a/src/xbyak/xbyak.h
+++ b/src/xbyak/xbyak.h
@@ -617,6 +617,12 @@ struct RegRip {
const Label* label_;
bool isAddr_;
explicit RegRip(sint64 disp = 0, const Label* label = 0, bool isAddr = false) : disp_(disp), label_(label), isAddr_(isAddr) {}
+ friend const RegRip operator+(const RegRip& r, int disp) {
+ return RegRip(r.disp_ + disp, r.label_, r.isAddr_);
+ }
+ friend const RegRip operator-(const RegRip& r, int disp) {
+ return RegRip(r.disp_ - disp, r.label_, r.isAddr_);
+ }
friend const RegRip operator+(const RegRip& r, sint64 disp) {
return RegRip(r.disp_ + disp, r.label_, r.isAddr_);
}