Posted on 2004-11-04
Last Modified: 2010-05-18

SSE2 has added packed instructions for integers.
Does this make the use of mmx obslete?

When should i use mmx or sse2?

Thank you.
Question by:hengck23
    LVL 22

    Accepted Solution

    Obviously, use them where they're going to do some good.

    You also have to consider, do you want your program limited to run on only the newer machines that have the extra instructions?

    First your program should check for the presence of MMX and/or SSE2, and/or their AMD equivalents.
    The CPUID instruction returns a bunch of useful info about the current CPUs capabilities.

    Then your program should mull over whether it can best do the hard inner loops using one or the other.

    LVL 11

    Expert Comment

    In addition to grg99's answer, I would like to tell that
    in contrast to MMX that is using existing CPU resources, SSE adds 8 independent 128-bit registers: XMM0 - XMM7.
    And it allows you to solve MMX problems - you do not need commands like EMMS for switching modes.
    Also SSe has additional 32-bit control/status register MXCSR.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now