Re: SSE builtins for ia32

2005-08-24 Thread Paul Koning
> "Richard" == Richard Henderson <[EMAIL PROTECTED]> writes: Richard> On Tue, Aug 23, 2005 at 04:32:42PM -0400, Paul Koning wrote: >> 1. Why do _builtin_ia32_paddusb and similar functions take signed >> vector arguments, when the hardware primitive is defined to >> operate on unsigned vect

Re: SSE builtins for ia32

2005-08-23 Thread Richard Henderson
On Tue, Aug 23, 2005 at 04:32:42PM -0400, Paul Koning wrote: > 1. Why do _builtin_ia32_paddusb and similar functions take signed >vector arguments, when the hardware primitive is defined to operate >on unsigned vectors? Because the interface you're actually supposed to be using is _mm_adds

SSE builtins for ia32

2005-08-23 Thread Paul Koning
Two things I'm wondering about: 1. Why do _builtin_ia32_paddusb and similar functions take signed vector arguments, when the hardware primitive is defined to operate on unsigned vectors? 2. Why are there no sse equivalents of those functions, ones that operate on 128 bit values (i.e., pa