5 /** algorithm library version string */
6 public static final String VERSION
;
8 System
.loadLibrary("a");
13 static final native void clinit();
16 * square root of an unsigned integer
18 * @param x independent variable
19 * @return calculated result
21 public static final native int isqrt(int x
);
24 * square root of an unsigned integer
26 * @param x independent variable
27 * @return calculated result
29 public static final native int isqrt(long x
);
32 * reciprocal of square-root
34 * @param x independent variable
35 * @return calculated result
37 public static final native float rsqrt(float x
);
40 * reciprocal of square-root
42 * @param x independent variable
43 * @return calculated result
45 public static final native double rsqrt(double x
);
48 * a hash function whose prime number is 131
50 * @param block block to be processed
51 * @param value initial value
54 public static final native int hash_bkdr(byte[] block
, int value
);
57 * a hash function whose prime number is 65599
59 * @param block block to be processed
60 * @param value initial value
63 public static final native int hash_sdbm(byte[] block
, int value
);