Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SSE

Name: Anonymous 2007-01-01 5:45

i have a problem regarding SSE asm. code snippet is like this:

//det contains 4 single-pres floating-point no.
//andmask is 7fffffff 7fffffff 7fffffff 7fffffff
  .
  .
  movaps  xmm1,det;
  andps   xmm1,andmask;
  .
  .

basically i want to turn all the SP FP in xmm1 into positive by zero-ing the sign bit.but the code didn't give me what i want.
am i missing something here?

Name: Anonymous 2007-01-03 1:14

barrelroll xmm1,det;

Name: Anonymous 2007-01-03 9:08

What does it give you?

Name: Anonymous 2007-01-03 10:29

Maybe your andmask is in the wrong byte order? I remember reading that SSE had some rather strange ideas about how those packed floating-point bits are stored in memory.

That's why I really dislike x86, actually -- something halfway decent like SSE was developed for the Katmai P3s, and therefore was designed with the Katmai core's particular unorthogonalities in mind. Guess what though, Intel got son-of-Katmai out a year later, when some of the things could've been done better, but noooooooo... we're still stuck in 8 SSE regs and "aligned vs. non-aligned load and store" land.

It's no fucking wonder Altivec owns so much. Now if there was a good mainstream processor that implemented it... I mean, the G4 macs do get a kick out of those optimizations, but who the fuck has a G4 anyway? (besides little ol' powerpc fetishist me.)

Name: Anonymous 2007-01-03 10:31

On a more serious note, isn't it a better idea to do SSE routines using the intrinsics? Just xmmintrin.h and you're good to go. Might want to get emmintrin.h and possibly pmmintrin.h too. No more byte order snags, and you get loop unrolling and register allocation courtesy of the compiler too.

Also, GCC 4.1 does _some_ (not much) vector optimization if you know how to tickle it.

Name: Anonymous 2009-08-03 8:12

>>5
worked thanks

Name: Anonymous 2010-12-17 1:23

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Sgt.Kabu캿ꬮkimanἱ톍 2012-05-28 21:27

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List