(git:b77b4be)
Loading...
Searching...
No Matches
grpp_factorial.c File Reference
#include "grpp_factorial.h"
#include <assert.h>
#include <stdint.h>

Go to the source code of this file.

Functions

double libgrpp_factorial (int n)
 
double libgrpp_factorial_ratio (int n, int m)
 
double libgrpp_double_factorial (int n)
 

Variables

static uint64_t pretabulated_factorials []
 
static uint64_t pretabulated_double_factorials []
 

Function Documentation

◆ libgrpp_factorial()

double libgrpp_factorial ( int  n)

Definition at line 42 of file grpp_factorial.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ libgrpp_factorial_ratio()

double libgrpp_factorial_ratio ( int  n,
int  m 
)

Definition at line 58 of file grpp_factorial.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ libgrpp_double_factorial()

double libgrpp_double_factorial ( int  n)

Definition at line 107 of file grpp_factorial.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ pretabulated_factorials

uint64_t pretabulated_factorials[]
static
Initial value:
= {1,
1,
2,
6,
24,
120,
720,
5040,
40320,
362880,
3628800,
39916800,
479001600,
6227020800,
87178291200,
1307674368000,
20922789888000,
355687428096000,
6402373705728000,
121645100408832000,
2432902008176640000}

Definition at line 20 of file grpp_factorial.c.

◆ pretabulated_double_factorials

uint64_t pretabulated_double_factorials[]
static

Definition at line 73 of file grpp_factorial.c.