math.c
来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· C语言 代码 · 共 107 行
C
107 行
/* * java.lang.Math.c * * Copyright (c) 1996, 1997 * Transvirtual Technologies, Inc. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. */#include "config.h"#include "config-std.h"#include <native.h>#include <math.h>#include "config-math.h"#include "java_lang_Math.h"doublejava_lang_Math_sin(double v){ return (sin(v));}doublejava_lang_Math_cos(double v){ return (cos(v));}doublejava_lang_Math_tan(double v){ return (tan(v));}doublejava_lang_Math_asin(double v){ return (asin(v));}doublejava_lang_Math_acos(double v){ return (acos(v));}doublejava_lang_Math_atan(double v){ return (atan(v));}doublejava_lang_Math_exp(double v){ return (exp(v));}doublejava_lang_Math_log(double v){ return (log(v));}doublejava_lang_Math_sqrt(double v){ return (sqrt(v));}doublejava_lang_Math_IEEEremainder(double v1, double v2){ return (IEEERemainder(v1, v2));}doublejava_lang_Math_ceil(double v){ return (ceil(v));}doublejava_lang_Math_floor(double v){ return (floor(v));}doublejava_lang_Math_rint(double v){ return (rint(v));}doublejava_lang_Math_atan2(double v1, double v2){ return (atan2(v1, v2));}doublejava_lang_Math_pow0(double v1, double v2){ return (pow(v1, v2));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?