python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why doesn't gcc zero the upper values of an XMM register when only using the lower value with SS/SD instructions?
For example with such function,
int fb(char a, char b, char c, char d) {
return (a + b) - (c + d);
}
gcc's assembly output is,
fb:
movsx esi, sil
movsx edi, dil
movsx ...
xiver77
Votes: 0
Answers: 1
Is there a way to cast integers to bytes, knowing these ints are in range of bytes. Using SSE?
In an xmm register I have 3 integers with values less than 256. I want to cast these to bytes, and save them to memory. I don't know how to approach it.
I was thinking about getting those numbers from...
thomas113412
Votes: 0
Answers: 1
IF condition is TRUE, then CHANGE to VALUE function for XMM / SIMD
I'm currently doing a SIMD task for Assembly.
.data
minValue real4 0.0, 0.0, 0.0, 0.0
ChangeValue PROC
;Here is another code, not important right now
movups xmm0, [minValue]
;XMM1 = 00000...
Przemyslaw Beskosty
Votes: 0
Answers: 0
Converting bytes to floats using simd
I've got array of bytes and I want to cast them to float and do some arithmetic with them. I've got idea, but I am not sure, if it has right to work. Maybe its not perfect, but if its possible to make...
thomas113412
Votes: 0
Answers: 1