Quantcast
Channel: BlogoSfera » unique
Viewing all articles
Browse latest Browse all 13

Creating a unique integer based on 3 different integers

$
0
0

I’d like to create an int called hash in Java, from the coordinates x, y and w. The values of x and y are signed and often negative. The size of an int is 32 bits. I’d like to assign 4 bits to w (or 3 if the most significant bit isn’t usable), 14 bits […]

The post Creating a unique integer based on 3 different integers appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 13

Trending Articles