Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] State of eigen support for small integers(16 bit, signed/unsigned)
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Thu, 20 Aug 2009 23:28:04 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wfeTo3hv3cDRWpte48JF+o6OjDjNaaZ0iWgB/3IXl6Q=; b=O/2WE9InhBVOTH6Xs/oetxOZNxn8d3N5D6ToydiOC7j38nPG2ZxfJlzoAkbIlSvJTn EzditmDAmqSkkibOKWkYmr8FIHTuUDDtFKcCyRcW+VNTCNVriKPJp6/E84Xsizq6+pqI ugFTuI8Ck9YK76AJdJYy1IU0H7YTQPWtm6Rc8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=h3/SqE+sGImPEho0P8cIEirjIrdvv3IE7kGdN31x1z4I3wS8mem47o+Fc2+qqML5Ke P7eAq/hYswzdlqBJMVulKSvSXNuwpiNzm4uIIRbDPda2KITZWXj2BuRUD8d5IZ/cLIEL CFyeR/6lKoiASo2D2Fw9HaMLACXilUd0F8glg=
> There's one thing that scares me. In ei_unpacket_traits, we make the
> assumption that the scalar type (e.g. int) can be deduced back from
> the packet type (e.g. Packet4i which is __m128i). That assumption will
> be broken if small integer types ever share the same packet type, like
> __m128i, I don't know. If that happens, we'll have to reorganize that
> code a little.
Yes, int and short do share an sse type. :(
Now what?
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay