Intrinsics for divideUnsigned/remainderUnsigned
    Maurizio Cimadamore 
    maurizio.cimadamore at oracle.com
       
    Mon Apr 20 14:59:49 UTC 2020
    
    
  
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