mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 10:10:52 +00:00
Merge with develop
This commit is contained in:
commit
f67d79de61
4 changed files with 10 additions and 10 deletions
|
@ -47,13 +47,13 @@
|
|||
#endif
|
||||
|
||||
#ifdef NL_DEBUG_H
|
||||
#define tlerror(toolLogger, path, error, ...) nlwarning(error, __VA_ARGS__), toolLogger.writeError(NLMISC::ERROR, path, error, __VA_ARGS__)
|
||||
#define tlwarning(toolLogger, path, error, ...) nlwarning(error, __VA_ARGS__), toolLogger.writeError(NLMISC::WARNING, path, error, __VA_ARGS__)
|
||||
#define tlmessage(toolLogger, path, error, ...) nlinfo(error, __VA_ARGS__), toolLogger.writeError(NLMISC::MESSAGE, path, error, __VA_ARGS__)
|
||||
#define tlerror(toolLogger, path, error, ...) nlwarning(error, __VA_ARGS__), toolLogger.writeError(NLMISC::ERROR, path, error, ## __VA_ARGS__)
|
||||
#define tlwarning(toolLogger, path, error, ...) nlwarning(error, __VA_ARGS__), toolLogger.writeError(NLMISC::WARNING, path, error, ## __VA_ARGS__)
|
||||
#define tlmessage(toolLogger, path, error, ...) nlinfo(error, __VA_ARGS__), toolLogger.writeError(NLMISC::MESSAGE, path, error, ## __VA_ARGS__)
|
||||
#else
|
||||
#define tlerror(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::ERROR, path, error, __VA_ARGS__)
|
||||
#define tlwarning(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::WARNING, path, error, __VA_ARGS__)
|
||||
#define tlmessage(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::MESSAGE, path, error, __VA_ARGS__)
|
||||
#define tlerror(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::ERROR, path, error, ## __VA_ARGS__)
|
||||
#define tlwarning(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::WARNING, path, error, ## __VA_ARGS__)
|
||||
#define tlmessage(toolLogger, path, error, ...) toolLogger.writeError(NLMISC::MESSAGE, path, error, ## __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
namespace NLMISC {
|
||||
|
|
|
@ -463,7 +463,7 @@ typedef uint16 ucchar;
|
|||
|
||||
// To define a 64bits constant; ie: UINT64_CONSTANT(0x123456781234)
|
||||
#ifdef NL_COMP_VC
|
||||
# if (NL_COMP_VC_VERSION >= 120)
|
||||
# if (NL_COMP_VC_VERSION >= 100)
|
||||
# define INT64_CONSTANT(c) (c##LL)
|
||||
# define SINT64_CONSTANT(c) (c##LL)
|
||||
# define UINT64_CONSTANT(c) (c##ULL)
|
||||
|
|
|
@ -45,7 +45,7 @@ inline uint64 wangHash64Inv(uint64 key)
|
|||
key = key^tmp >> 28;
|
||||
|
||||
// Invert key *= 21
|
||||
key *= 14933078535860113213u;
|
||||
key *= UINT64_CONSTANT(14933078535860113213);
|
||||
|
||||
// Invert key = key ^ (key >> 14)
|
||||
tmp = key^key >> 14;
|
||||
|
@ -54,7 +54,7 @@ inline uint64 wangHash64Inv(uint64 key)
|
|||
key = key^tmp >> 14;
|
||||
|
||||
// Invert key *= 265
|
||||
key *= 15244667743933553977u;
|
||||
key *= UINT64_CONSTANT(15244667743933553977);
|
||||
|
||||
// Invert key = key ^ (key >> 24)
|
||||
tmp = key^key >> 24;
|
||||
|
|
|
@ -103,6 +103,6 @@ private:
|
|||
|
||||
};
|
||||
|
||||
#endif NL_SCENE_META_H
|
||||
#endif /* NL_SCENE_META_H */
|
||||
|
||||
/* end of file */
|
||||
|
|
Loading…
Reference in a new issue