~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41fb235
)
math/mpx-mul4-amd64-sse2.S: Fix stack-argument offset for 64-bit Windows.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 16 Nov 2018 12:49:42 +0000
(12:49 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 24 Nov 2018 20:14:14 +0000
(20:14 +0000)
I failed to account for either the 160 bytes of saved XMM registers
(because the stupid ABI demands that XMM6--XMM15 be preserved across
calls), or for the daft 32-byte shadow space between the return address
and the stacked arguments.
math/mpx-mul4-amd64-sse2.S
patch
|
blob
|
blame
|
history
diff --git
a/math/mpx-mul4-amd64-sse2.S
b/math/mpx-mul4-amd64-sse2.S
index
2d78a99
..
098de45
100644
(file)
--- a/
math/mpx-mul4-amd64-sse2.S
+++ b/
math/mpx-mul4-amd64-sse2.S
@@
-1308,7
+1308,7
@@
ENDFUNC
# define ARG6 STKARG(2)
# define ARG7 STKARG(3)
# define ARG8 STKARG(4)
-# define STKARG_OFFSET
40
+# define STKARG_OFFSET
224
#endif
#define STKARG(i) [rsp + STKARG_OFFSET + 8*(i)]