Page MenuHomeFreeBSD

lib/msun amd64: use AVX FMA instructions for fma(3) and fmaf(3) when available
Needs ReviewPublic

Authored by kib on Sun, Sep 6, 6:02 AM.
Tags
None
Referenced Files
F170888364: D59462.id186085.diff
Mon, Sep 7, 8:17 AM
F170881617: D59462.id185992.diff
Mon, Sep 7, 6:42 AM
F170876026: D59462.id186076.diff
Mon, Sep 7, 5:30 AM
F170832784: D59462.diff
Sun, Sep 6, 10:13 PM
Unknown Object (File)
Sun, Sep 6, 7:09 PM
Unknown Object (File)
Sun, Sep 6, 6:30 PM
Unknown Object (File)
Sun, Sep 6, 5:05 PM
Subscribers

Details

Reviewers
emaste
dim
kfv
fuz

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Sun, Sep 6, 6:02 AM
This revision is now accepted and ready to land.Sun, Sep 6, 3:31 PM

There could be some performance issues related to the SSE/AVX transition state machine, but checking the Intel Software Optimization Manual, it seems like executing 128 bit AVX instructions seems unproblematic in any steady-state scenario.

Brilliant work. Thanks!

Put added symbols into private namespace.
It does not matter for shared library, but helps static linking.

This revision now requires review to proceed.Sun, Sep 6, 9:17 PM

Switch to use libc/amd64/string ARCHLEVEL infra to control the selection.