215 lines
4.1 KiB
C++
215 lines
4.1 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
#include "java_lang_Math.h"
|
|
#include <stdio.h>
|
|
|
|
extern "C" {
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : sin
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_sin(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_sin() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : cos
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_cos(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_cos() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : tan
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_tan(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_tan() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : asin
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_asin(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_asin() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : acos
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_acos(float64);
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : atan
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_atan(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_atan() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : exp
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_exp(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_exp() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : log
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_log(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_log() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : sqrt
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_sqrt(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_sqrt() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : IEEEremainder
|
|
* Signature : (DD)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_IEEEremainder(float64, float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_IEEEremainder() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : ceil
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_ceil(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_ceil() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : floor
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_floor(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_floor() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : rint
|
|
* Signature : (D)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_rint(float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_rint() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : atan2
|
|
* Signature : (DD)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_atan2(float64, float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_atan2() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* Class : java/lang/Math
|
|
* Method : pow
|
|
* Signature : (DD)D
|
|
*/
|
|
NS_EXPORT NS_NATIVECALL(float64)
|
|
Netscape_Java_java_lang_Math_pow(float64, float64)
|
|
{
|
|
printf("Netscape_Java_java_lang_Math_pow() not implemented");
|
|
return 0;
|
|
}
|
|
|
|
|
|
} /* extern "C" */
|
|
|