GC stress fixes and other bugfixes; classpath progress

This commit is contained in:
Joel Dice
2007-07-29 17:32:23 -06:00
parent d5a00c4556
commit a2bd7d0668
27 changed files with 463 additions and 75 deletions

View 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;
}
}