LibM: Implement tanf() in terms of tan() with casts
Lazy, but it works for now. :^)
This commit is contained in:
parent
115e8f5977
commit
caa8f3d3bf
Notes:
sideshowbarker
2024-07-18 21:23:41 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/caa8f3d3bfe Pull-request: https://github.com/SerenityOS/serenity/pull/5765 Reviewed-by: https://github.com/BenWiederhake Reviewed-by: https://github.com/awesomekling
1 changed files with 5 additions and 0 deletions
|
@ -445,6 +445,11 @@ double tan(double angle) NOEXCEPT
|
|||
return ampsin(angle) / ampsin(M_PI_2 + angle);
|
||||
}
|
||||
|
||||
float tanf(float angle) NOEXCEPT
|
||||
{
|
||||
return (float)tan((double)angle);
|
||||
}
|
||||
|
||||
double sqrt(double x) NOEXCEPT
|
||||
{
|
||||
double res;
|
||||
|
|
Loading…
Add table
Reference in a new issue