using SSE2 in kernel C code (improving AES-NI module)

Konstantin Belousov kostikbel at gmail.com
Tue Oct 23 14:54:26 UTC 2012


On Tue, Oct 23, 2012 at 08:34:20AM -0400, John Baldwin wrote:
> On Tuesday, October 23, 2012 3:04:17 am John-Mark Gurney wrote:
> > Konstantin Belousov wrote this message on Sun, Oct 21, 2012 at 09:10 +0300:
> > > Most likely, you can put the ${CFLAGS} on the command line, followed
> > > by -msse -msse2.
> > 
> > I can't use CFLAGS because it removes access to the xmmintrin.h header
> > file...  It looks like an option is to use:
> > -fpic ${OPTFLAGS:C/^-O2$/-O3/} ${DEBUG}
> 
> Err, shouldn't later options override new ones?  If you have
> "${CFLAGS} -msse -msse2 -maes" does that not work?  
It is -nostdinc which cause issue for John-Mark. The header probably still
shall not be used.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20121023/fb8176ab/attachment.sig>


More information about the freebsd-arch mailing list