MMX: pack without saturation?
- From: Jens Gruschel <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 16:39:44 +0200
I have a value like this in mm0: FFBF FFCF 00DF 00EF
And I want to turn it into this using MMX: BF CF DF EF (00 00 00 00) (packing the lower bytes of the words)
Currently I'm using packuswb, but this transforms it into: 00 00 DF EF
Of course I could and mm0 with 00FF 00FF 00FF 00FF before using packuswb, but is there a smarter way of packing the lower bytes of the words without saturation? IMO it's a more simple transformation, but I don't know whether MMX does support it somehow. There is packsswb, but I cannot find an instruction without saturation, just ignoring the higher bytes of the words.
Jens
-- Jens Gruschel http://www.pegtop.net .
- Prev by Date: Re: Potential FastCode speed increase?
- Next by Date: Re: Count Leading Zeros (cntlzw)
- Previous by thread: Re: I am unable to edit tcxdbextlookupcombobox
- Next by thread: Fastcode PosIEx B&V 0.4
- Index(es):