Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150708161914.GA14728@openwall.com>
Date: Wed, 8 Jul 2015 19:19:14 +0300
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: extend SIMD intrinsics

On Wed, Jul 08, 2015 at 06:08:15PM +0200, magnum wrote:
> BTW do we even have to use intrinsics for simple things like add and 
> sub? Wouldn't the compiler do it for us?
> 
> 	vtype va, vb = 1, vc = 2, vd = 3;
> 
> 	va = vb + vc - vd;
> 
> I haven't tried that.

Depending on how vtype is declared, gcc can do it, yes (except for the
assignments of scalar constants in your example).  However, then we'd
have difficulty using intrinsics on that vector type, and not every
operation we need has a direct C equivalent.  And I'm not aware of a
feature like this in compilers other than gcc.  So it's not a universal
solution we could use.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.