Ugly Bit-Wise Arithmetic

I just had a WTF moment today. If I ever see code like this again I swear I will go postal:

answer = new long[(size + 0x3F) >>> 6];

one simpler ways to write this would be:

answer = new long[size/64 + 1];

This is java by the way, not C.

Tags: 

Comments

Arithmatic rules are actually the universal rules which are usually implemented every where and give the same results due to their universal applicability all around. Learning about arithmatic rules and take suggestions from essay writers are both handled with care in order to learn something from them.

Add new comment