Intrinsics for divideUnsigned/remainderUnsigned
Joe Darcy
joe.darcy at oracle.com
Mon Apr 20 17:40:52 UTC 2020
The divideUnsigned methods in question are not marked with the
@HotSpotIntrinsicCandidate annotation so it doesn't look like there are
currently intrinsics.
Cheers,
-Joe
On 4/20/2020 8:07 AM, David Lloyd wrote:
> Yes, I did, sorry about that.
>
> On Mon, Apr 20, 2020 at 10:02 AM Maurizio Cimadamore
> <maurizio.cimadamore at oracle.com> wrote:
>> Hi David,
>> did you mean to write to hotspot compiler (CCed) ?
>>
>> Maurizio
>>
>> On 20/04/2020 15:38, David Lloyd wrote:
>>> Am I correct in understanding that there are no compiler intrinsics
>>> for Long.divideUnsigned/remainderUnsigned?
>>>
>>> The implementation seems pretty expensive for an operation that is, if
>>> I understand correctly, a single instruction on many CPU
>>> architectures. But maybe these methods are not very frequently used?
>>> (My clue was a comment in the source referencing an algorithm from
>>> Hacker's Delight that could be used - if such an algorithm exists, but
>>> wasn't implemented, presumably demand is low?)
>
More information about the hotspot-compiler-dev
mailing list