Intrinsics for divideUnsigned/remainderUnsigned

David Lloyd david.lloyd at redhat.com
Mon Apr 20 15:07:56 UTC 2020


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?)
>


-- 
- DML



More information about the compiler-dev mailing list