libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_numeric.h File Reference

Go to the source code of this file.

Macros

#define M_PI
 
#define M_E
 
#define gblPow2Next(X)
 

Functions

uint8_t gblPow2Next_u8 (uint8_t n)
 
uint16_t gblPow2Next_u16 (uint16_t n)
 
uint32_t gblPow2Next_u32 (uint32_t n)
 
uint64_t gblPow2Next_u64 (uint64_t n)
 
GblBool gblPow2Check (size_t n)
 
int gblFibonacci (int n)
 
int gblGcd (int u, int v)
 
int gblLcm (int u, int v)
 
uint32_t gblNtohl (uint32_t n)
 
uint32_t gblHtonl (uint32_t x)
 
int gblParity (uint8_t n)
 
size_t gblAlignedAllocSizeDefault (size_t bytes)
 
size_t gblAlignedAllocSize (size_t size, size_t align)
 
uint32_t gblPrimeNextDouble (uint32_t number)
 
GblBool gblPrimeCheck (int n)
 
unsigned long gblBinomialCoeff (unsigned n, unsigned k)
 
unsigned long gblCatalan (unsigned n)
 
GblBool gblFloatEquals (double a, double b, double e)
 
float gblDegToRadf (float degrees)
 
float gblRadToDegf (float radians)
 

Detailed Description

General numeric constants and computations.

Author
Shirobon
Falco Girgis

Definition in file gimbal_numeric.h.

Macro Definition Documentation

◆ M_PI

#define M_PI

Definition at line 18 of file gimbal_numeric.h.

◆ M_E

#define M_E

Definition at line 22 of file gimbal_numeric.h.

◆ gblPow2Next

#define gblPow2Next (   X)

Definition at line 25 of file gimbal_numeric.h.