DCL 4.0
Loading...
Searching...
No Matches
HashFun.cpp File Reference
#include <dcl/Object.h>
#include <dcl/HashFun.h>

Go to the source code of this file.

Functions

DCLCAPI size_t DCLGetNextPrimNumber (size_t _n)

Function Documentation

◆ DCLGetNextPrimNumber()

DCLCAPI size_t DCLGetNextPrimNumber ( size_t _n)

Definition at line 23 of file HashFun.cpp.

24{
25 size_t n = __countof(__prim_numbers, size_t);
26 for(size_t i = 0; i < n; i++)
27 {
28 if (_n < __prim_numbers[i])
29 return __prim_numbers[i];
30 }
31 return __prim_numbers[n - 1];
32}
#define __countof(array, type)
Definition Config.h:365
void CharsetConvertException *size_t n
Definition SQLField.cpp:253