On Tue, Dec 12, 2017 at 8:45 AM, David Lloyd <david.ll...@redhat.com> wrote:
> On Mon, Dec 11, 2017 at 9:03 PM, mandy chung <mandy.ch...@oracle.com> > wrote: > > On 12/11/17 6:31 PM, Martin Buchholz wrote: > >> Java has an unsigned 16 bit type. Could bci be of type "char" ? > > > > Yes but I think keeping it short is fine. > > Call me strange if you like, but I never liked using char as anything > other than a UTF-16 character. Anyway one expects that the '0xffff' > forms should be optimized fairly easily. > It's optimized - just changes the width of the load. There's Short::toUnsignedInt (added in Java 8) if you want code reuse :). > > > -- > - DML >