mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
f3aec1a0d9
This code still needs clipping, but the basic concept works. It was disabled since before the kernel had floating point support.
99 lines
1.1 KiB
C++
99 lines
1.1 KiB
C++
#include <LibC/assert.h>
|
|
#include <LibM/math.h>
|
|
|
|
extern "C" {
|
|
|
|
double cos(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double sin(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double pow(double x, double y)
|
|
{
|
|
(void)x;
|
|
(void)y;
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double ldexp(double, int exp)
|
|
{
|
|
(void)exp;
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double tanh(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double tan(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double sqrt(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double sinh(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double log10(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double log(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double fmod(double, double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double exp(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double cosh(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double atan2(double, double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double atan(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double asin(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double acos(double)
|
|
{
|
|
ASSERT_NOT_REACHED();
|
|
}
|
|
|
|
double fabs(double value)
|
|
{
|
|
return value < 0 ? -value : value;
|
|
}
|
|
|
|
}
|