This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [AArch64] Add precision choices for the reciprocal square root approximation


On 04/01/16 08:47, Wilco Dijkstra wrote:
Evandro Menezes wrote:
Ping^1
I haven't seen a newer version that incorporates my feedback. To recap what
I'd like to see is a more general way to select approximations based on mode.
I don't believe that looking at the inner mode works in general, and it doesn't
make sense to add internal tune flags for all possible combinations.

To give an idea what I mean, it would be easiest to add a single field to the CPU
tuning structure that contains a mask for all the combinations. Then we call a
single function with approximation kind ie. sqrt, rsqrt, div (x/y), recip (1/x) and
mode which uses the CPU tuning field to decide whether it should be inlined.

I think that I have a better idea of what you meant.

Thank you,

--
Evandro Menezes


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]