Interest in support for saturated casts?

Clemens Eisserer linuxhippy at gmail.com
Mon Jan 12 04:57:15 PST 2009


Hi,

Support for unsigned integer arithmetic sounds quite useful, I also
have written some quirks to deal with unsigned data previously.
Looking foreward to fix this code :)

> Perhaps there could also be methods for saturating conversions,
> Integer.toSaturatedShort(int)
> The presence of such standard methods would make it easier for HotSpot to
> intrinsify them on platforms with direct hardware support.

Would be great if those methods could be added as part of that work :)

Thanks, Clemens



More information about the hotspot-compiler-dev mailing list