Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Modules/_sre/sre.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,8 @@ static unsigned int sre_toupper(unsigned int ch) {

/* -------------------------------------------------------------------- */

#if defined(_MSC_VER)
# if defined(__clang__)
# pragma optimize("", on)
# else
# pragma optimize("gt", on) /* doesn't seem to make much difference... */
# endif
#if defined(_MSC_VER) && !defined(__clang__)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much simpler - just ignore __clang__ and keep agtw for MSVC.

#pragma optimize("agtw", on) /* doesn't seem to make much difference... */
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
/* fastest possible local call under MSVC */
#define LOCAL(type) static __inline type __fastcall
Expand Down
Loading