Alright, I have attached some C code that I would like a fast assembly version of. Also, for using inline assembly in C, I'd use __asm {...}, correct? I know very little assembly. I know jmp and jne jump and mul and imul multiply but I don't know when to use one or how to even start an assembly program. I know about registers (eax-edx) somewhat. If you won't write it could you give me a good starters tutorial? This code will be used for realtime video blending (part of supersampling). I really think though if someone can give me a framework, I can get the hang of it and finish it myself. What I actually need to do is take the average of a bunch of values, but I'm going to try and modify it to do it by myself.
I also have another side question. For the for loop, I want to use i<640 and not i<=640 because the array starts at 0, right? Also I hope I'm right in my assumption that this program will take the data that's in the matrix location, take half of it and take the ceiling if it ends up as floating point. The total memory allocation of the rgb matrix would be 1 byte (8-bit int)*640*480 also, correct? Is the ceiling of 1.0 still 1.0?
Thanks in advance.
I also have another side question. For the for loop, I want to use i<640 and not i<=640 because the array starts at 0, right? Also I hope I'm right in my assumption that this program will take the data that's in the matrix location, take half of it and take the ceiling if it ends up as floating point. The total memory allocation of the rgb matrix would be 1 byte (8-bit int)*640*480 also, correct? Is the ceiling of 1.0 still 1.0?
Thanks in advance.