All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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: