On 25 October 2011 13:38, Andrew Dalke <da...@dalkescientific.com> wrote:

> On Oct 25, 2011, at 10:27 AM, nls...@users.sourceforge.net wrote:
> > Java Bit-Shifting with bytes is a bit strange. The expression b>>4
> > does not always shift zeros into the leftmost position (the value
> > depends on the sign of the byte).
>
> Interesting. What about b/16?
>

There is signed >> and unsigned >>> shift.

http://download.oracle.com/javase/tutorial/java/nutsandbolts/op3.html

Regards,
Nina


>
> In any case, there's only 256 elements so an array lookup
> would also work.
>
>
>                                Andrew
>                                da...@dalkescientific.com
>
>
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Cdk-user mailing list
> Cdk-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to