#include <dcl/Config.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <dcl/Thread.h>
#include "LibState.h"
Go to the source code of this file.
◆ __DCL_ASSERT_N
| #define __DCL_ASSERT_N |
( |
| expr | ) |
|
◆ __strcpy
| #define __strcpy |
( |
| d, |
|
|
| s ) |
◆ __strlen
◆ __strncpy
| #define __strncpy |
( |
| d, |
|
|
| s, |
|
|
| n ) |
◆ __TRACE_THIS
◆ DCLGetNextPrimNumber()
| DCLCAPI size_t DCLGetNextPrimNumber |
( |
size_t | _n | ) |
|
|
extern |
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)