Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e818024
commit 0e60d26
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -349,6 +349,12 @@ void cod3_set32() | |
|
||
for (unsigned i = 0x80; i < 0x90; i++) | ||
inssize2[i] = W|T|6; | ||
|
||
#if TARGET_OSX | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
alexrp
Member
|
||
STACKALIGN = 16; // 16 for OSX because OSX uses SIMD | ||
#else | ||
STACKALIGN = 4; | ||
#endif | ||
} | ||
|
||
/******************************** | ||
|
@@ -378,6 +384,8 @@ void cod3_set64() | |
|
||
for (unsigned i = 0x80; i < 0x90; i++) | ||
inssize2[i] = W|T|6; | ||
|
||
STACKALIGN = 16; // 16 rather than 8 because of SIMD alignment | ||
} | ||
|
||
/********************************* | ||
|
2 comments
on commit 0e60d26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with what exactly STACKALIGN
is used for, but if it is what I think it is, it probably should be 16 for all 64-bit targets...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and it is!
@WalterBright I meant here, or is this code only triggered for OS X or something?