public class Calculator extends Object
| Constructor and Description |
|---|
Calculator() |
| Modifier and Type | Method and Description |
|---|---|
static long |
div(long val,
int bits)
divide by shift
|
static long |
mod(long val,
int bits)
mod by shift
|
static long |
mul(long val,
int bits)
multiply by shift
|
public static long mod(long val,
int bits)
val - value to modbits - number of bits to shiftpublic static long mul(long val,
int bits)
val - value to multiplybits - number of bits to shiftpublic static long div(long val,
int bits)
val - value to dividebits - number of bits to shiftCopyright © 2020. All rights reserved.