Skip to content

Commit

Permalink
[port] Remove MMX test altogether
Browse files Browse the repository at this point in the history
The `_may_i_use_cpu_feature()` intrinsic is not available in MSVC, so
remove the whole check, which is only used during init to check for
CPU support for MMX instructions (which all modern intel CPUs support)
and MMX instructions are being removed from AVS anyway.
  • Loading branch information
grandchild committed Oct 6, 2024
1 parent 535aad9 commit bf2332a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions avs/vis_avs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,6 @@ static int init(struct winampVisModule* this_mod) {
}
#endif

#ifndef NO_MMX
extern int is_mmx(void);
if (!is_mmx()) {
MessageBox(this_mod->hwndParent,
"NO MMX SUPPORT FOUND - CANNOT RUN AVS - GET THE NON-MMX VERSION.",
"AVS ERROR",
MB_OK | MB_ICONSTOP);
return 1;
}
#endif

#ifdef WA3_COMPONENT
strcat(g_path, "\\wacs\\data");
#endif
Expand Down
4 changes: 0 additions & 4 deletions avs/vis_avs/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "wa_ipc.h"
#include "wnd.h"

#include <immintrin.h>

int is_mmx(void) { return _may_i_use_cpu_feature(_FEATURE_MMX); }

void Render_Init() {
timingInit();

Expand Down

0 comments on commit bf2332a

Please sign in to comment.