[vector] restrict bit shifting and rotation to int and long

Paul Sandoz paul.sandoz at oracle.com
Fri May 18 00:03:09 UTC 2018


Hi,

This patch restricts the bit shifting and rotation to int and long.This makes it easier to conform to Java shift/rotate semantics. We may revisit byte/short later on, but at the moment it could be composed from explicit up and down casts.

  http://cr.openjdk.java.net/~psandoz/panama/shift-rotate-int-long/webrev/ <http://cr.openjdk.java.net/~psandoz/panama/shift-rotate-int-long/webrev/>

(based off http://cr.openjdk.java.net/~psandoz/panama/abstract-operations/webrev/ <http://cr.openjdk.java.net/~psandoz/panama/abstract-operations/webrev/>) 

A follow on patch will reimplement the bit rotation in terms of shifting and or’ing.

Paul.


More information about the panama-dev mailing list