RFR: 8282711: Accelerate Math.signum function for AVX and AVX512 target. [v2]
Jatin Bhateja
jbhateja at openjdk.java.net
Tue Mar 8 16:43:05 UTC 2022
On Tue, 8 Mar 2022 14:09:54 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:
>> Same responses as above.
>
> I don't fully understand what you mean by "same as above". The logic here is using `src` to blend `one` and `minus_one` so that every positive will get `one` and every negative will get `minus_one`, the others are `zero` and `Nan` will make the unordered comparison with zero return true, thus the final blend will result in the correct output.
> Thanks.
Good, I recall using this in one of my previous patch
http://hg.openjdk.java.net/jdk/jdk/rev/ff399127078a#l5.245
-------------
PR: https://git.openjdk.java.net/jdk/pull/7717
More information about the hotspot-compiler-dev
mailing list