Here you can find the source of toLongUnsigned(int intValue)
Parameter | Description |
---|---|
intValue | signed integer value to convert |
public static long toLongUnsigned(int intValue)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { /**/*from w w w . j a va 2 s. c om*/ * Convert a signed int to a unsigned value in a long * @param intValue signed integer value to convert * @return the unsigned value in a long */ //=================================================================== public static long toLongUnsigned(int intValue) { long mask = 0x7fffffff; mask += (long) 1 << 31; return (intValue & mask); } }