mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
GC stress fixes and other bugfixes; classpath progress
This commit is contained in:
77
classpath/java/lang/Math.java
Normal file
77
classpath/java/lang/Math.java
Normal file
@ -0,0 +1,77 @@
|
||||
package java.lang;
|
||||
|
||||
public final class Math {
|
||||
private Math() { }
|
||||
|
||||
public static int abs(int v) {
|
||||
return (v < 0 ? -v : v);
|
||||
}
|
||||
|
||||
public static long round(double v) {
|
||||
return (long) (v + 0.5);
|
||||
}
|
||||
|
||||
public static int round(float v) {
|
||||
return (int) (v + 0.5);
|
||||
}
|
||||
|
||||
public static double floor(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double ceil(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double exp(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double log(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double cos(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double sin(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double tan(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double acos(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double asin(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double atan(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double sqrt(double v) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double pow(double v, double e) {
|
||||
// todo
|
||||
return 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user