Adding packed bytes/words using MMX instructions

So let's say that we have two registers that contain the following hexadecimal values: AB0890C2, 4598EE50. What would be the result of adding them using MMX instructions:

a. for packed byte
b. for packed word

Assuming saturation arithmetic is not used?

From my understanding, if you add the two hex values normally, you get F0A17F12, but how would I add this using MMX instruction for both the packed byte and word?


I am assuming that you can get them into MMX registers.

This adds them as if they were double numbers

paddd mm0, mm1

This adds them as if they were bytes

paddb mm0, mm1

Need Your Help

java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

java classcastexception apache-storm runtimeexception

While running a storm topology I am getting this error.The topology runs perfectly for 5mins without any error then it fails.I am using

Login failed for user '...' in ASP.NET WebAPI sql-server iis

The client application and the sql server instance are on separate machines. I'm working with Entity Framework and have created the Data Model for the database. Locally the application works fine w...