mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibM: Add ilogb and logb
This commit is contained in:
parent
190952675e
commit
352b383280
2 changed files with 60 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <limits.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
|
@ -128,6 +129,15 @@ float ldexpf(float, int exp) NOEXCEPT;
|
|||
double pow(double x, double y) NOEXCEPT;
|
||||
float powf(float x, float y) NOEXCEPT;
|
||||
|
||||
#define FP_ILOGB0 INT_MIN
|
||||
#define FP_ILOGNAN INT_MAX
|
||||
|
||||
int ilogbl(long double) NOEXCEPT;
|
||||
int ilogb(double) NOEXCEPT;
|
||||
int ilogbf(float) NOEXCEPT;
|
||||
long double logbl(long double) NOEXCEPT;
|
||||
double logb(double) NOEXCEPT;
|
||||
float logbf(float) NOEXCEPT;
|
||||
double log2(double) NOEXCEPT;
|
||||
float log2f(float) NOEXCEPT;
|
||||
long double log2l(long double) NOEXCEPT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue