On 8/14/23 06:51, Jin Ma wrote:


This code is great and completely different from the way I implemented it.
I'm not sure which one is better, but my idea is that the fli instruction
corresponds to three tables (HF, SF and DF), all of which represent
specific values. the library in gcc's real.h can very well convert
the corresponding values into the values in the table, so it is only
necessary to perform a simple binary search to look up the tables.
Yea, I was kindof amazed at how Tsukasa implemented that code. But I think the tables are easier to understand, so I'd tend to prefer them.

I'm still evaluating, but in general it looks like your implementation is (functionally) a superset of what Tsukasa has done. I've still got some testing to do with Tsukasa's tests to verify, but my inclination is to go with your v10 patch right now.

Jeff

Reply via email to