Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
checkmate
limitToCheckCount.h
Go to the documentation of this file.
1
/* limitToCheckCount.h
2
*/
3
#ifndef OSL_LIMITTOCHECKCOUNT_H
4
#define OSL_LIMITTOCHECKCOUNT_H
5
#include "
osl/misc/carray.h
"
6
#include <cstdlib>
7
namespace
osl
8
{
9
namespace
checkmate
10
{
11
inline
size_t
limitToCheckCount
(
int
limit
)
12
{
13
assert(limit >= 0);
14
extern
CArray<size_t,32>
LimitToCheckCountTable
;
15
return
LimitToCheckCountTable[limit>>7];
16
}
17
}
18
}
19
20
#endif
/* _LIMITTOCHECKCOUNT_H */
21
// ;;; Local Variables:
22
// ;;; mode:c++
23
// ;;; c-basic-offset:2
24
// ;;; End:
Generated on Sun Jul 21 2013 13:37:24 by
1.8.4