Skip to content

Commit 2fdd422

Browse files
committed
indeed, the method was useless
1 parent 3ec0da8 commit 2fdd422

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/main/java/de/tilman_neumann/jml/base/Uint128.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -350,28 +350,6 @@ public static Uint128 square64(long a) {
350350
return new Uint128(r_hi, r_lo);
351351
}
352352

353-
/**
354-
* Computes the low part of the product of two unsigned 64 bit integers.
355-
*
356-
* Overflows of the "middle term" are not interesting here because they'ld only
357-
* affect the high part of the multiplication result.
358-
*
359-
* @param a
360-
* @param b
361-
* @return (a*b) & 0xFFFFFFFFL
362-
*/
363-
// XXX a*b should give the same result !?
364-
public static long mul64_getLow(long a, long b) {
365-
final long a_hi = a >>> 32;
366-
final long b_hi = b >>> 32;
367-
final long a_lo = a & 0xFFFFFFFFL;
368-
final long b_lo = b & 0xFFFFFFFFL;
369-
final long lo_prod = a_lo * b_lo;
370-
final long med_term = a_hi * b_lo + a_lo * b_hi;
371-
final long r_lo = ((med_term & 0xFFFFFFFFL) << 32) + lo_prod;
372-
return r_lo;
373-
}
374-
375353
/**
376354
* Multiplication of two unsigned 128 bit integers.
377355
*

0 commit comments

Comments
 (0)