limitToCheckCount.h
Go to the documentation of this file.
00001 /* limitToCheckCount.h
00002  */
00003 #ifndef OSL_LIMITTOCHECKCOUNT_H
00004 #define OSL_LIMITTOCHECKCOUNT_H
00005 #include "osl/misc/carray.h"
00006 #include <cstdlib>
00007 namespace osl
00008 {
00009   namespace checkmate
00010   {
00011     inline size_t limitToCheckCount(int limit)
00012     { 
00013       assert(limit >= 0);
00014       extern CArray<size_t,32> LimitToCheckCountTable;
00015       return LimitToCheckCountTable[limit>>7];
00016     }
00017   }
00018 }
00019 
00020 #endif /* _LIMITTOCHECKCOUNT_H */
00021 // ;;; Local Variables:
00022 // ;;; mode:c++
00023 // ;;; c-basic-offset:2
00024 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines