P99

◆ p99_small_primes()

P99_CONST_FUNCTION uint8_t p99_small_primes ( size_t  p00_x)
inline

Return a small prime number or 0 if x is too big.

This is a function implementing a `‘static inline’' case table

Default value if p00_x is out of range is 0 .

The table values are 2, 3, 5, 7, 11, 13, 17, 19, 23, 31, 37, 41, 43, 47, 53, 57, 59, 61, 67, 71 .

Parameters
p00_xindicates the value to choose, it must be compatible with size_t.

Definition at line 55 of file p99_choice.h.