MMX code in C++

I am involved in a project the aim of which is to demonstrate the effectiveness of MMX for image manipulation. For this project I need to write some MMX code in C++ (MS Visual C++ 5) to simulate how MMX could improve the performance of filters such as Blur, Gaussian Blur, and Unsharp.

I am unsure where to start and would be very grateful for any example source code or advice.

For the most part, the actual machine instructions generated by C and C++ code are determined by the compiler. You have no control over this from your C and C++ language statements. You would need a compiler that had an option to enable these instructions. (They would not be enabled by default, because any code compiled that way would not run on older Pentiums.) Even then, it may not implement them in a way that would demonstrate what your program is trying to show.

The only other hope is if you can use inline assembler. VC++ 5 supports inline assembler, but I’m not sure it supports MMX instructions. I’m also wondering if you are prepared to write your demo using inline assembler.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS