aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/dclib-numeric.h
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2022-05-13 19:22:13 +0200
committerWiimm <wiimm@wiimm.de>2022-05-13 19:22:13 +0200
commit568365f5bdd4dc71a156ca963d89ac002f405a34 (patch)
tree730d0311536d8fd46a56b74e2c8cac028e778243 /project/dclib/dclib-numeric.h
parent9ae8841ec4720e74173e2f72fac33f0848bbf435 (diff)
SZS v2.27a
Diffstat (limited to '')
-rw-r--r--project/dclib/dclib-numeric.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/project/dclib/dclib-numeric.h b/project/dclib/dclib-numeric.h
index dc4ccef..5ab36ef 100644
--- a/project/dclib/dclib-numeric.h
+++ b/project/dclib/dclib-numeric.h
@@ -14,16 +14,16 @@
* *
***************************************************************************
* *
- * Copyright (c) 2012-2021 by Dirk Clemens <wiimm@wiimm.de> *
+ * Copyright (c) 2012-2022 by Dirk Clemens <wiimm@wiimm.de> *
* *
***************************************************************************
* *
- * This program is free software; you can redistribute it and/or modify *
+ * This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * This program is distributed in the hope that it will be useful, *
+ * This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
@@ -819,7 +819,7 @@ static inline s64 double2int64 ( double d ) { return (s64) trunc (d+0.5); }
///////////////////////////////////////////////////////////////////////////////
-// all values are multiple of 26*26*100 = 67600 = 0x10810
+// all values are multiple of 26*26*100 = 67600 = 0x00010810
#define GOOD_MAX_NICE4_5 67600 // 1 * 67600
#define GOOD_MAX_NICE4_6 946400 // 14 * 67600
#define GOOD_MAX_NICE4_7 9937200 // 147 * 67600
@@ -830,6 +830,28 @@ static inline s64 double2int64 ( double d ) { return (s64) trunc (d+0.5); }
ccp PrintNiceID4 ( uint nice_gid );
char * ScanNiceID4 ( int * res, ccp arg );
+///////////////////////////////////////////////////////////////////////////////
+
+// all values are multiple of 26*26*1000 = 676000 = 0x000a50a0
+#define GOOD_MAX_NICE5_6 676000 // 1 * 676000
+#define GOOD_MAX_NICE5_7 9464000 // 14 * 676000
+#define GOOD_MAX_NICE5_8 99372000 // 147 * 676000
+#define GOOD_MAX_NICE5_9 999804000 // 1479 * 676000
+#define GOOD_MAX_NICE5 4294628000 // 6353 * 676000 = 0xfffad2a0 = -339296
+
+ccp PrintNiceID5 ( uint nice_gid );
+char * ScanNiceID5 ( int * res, ccp arg );
+
+///////////////////////////////////////////////////////////////////////////////
+
+// all values are multiple of 26*26*26*1000 = 17576000 = 0x010c3040
+#define GOOD_MAX_NICE6_8 87880000 // 5 * 17576000
+#define GOOD_MAX_NICE6_9 984256000 // 56 * 17576000
+#define GOOD_MAX_NICE6 4288544000 // 244 * 17576000 = 0xff9dfd00 = -6423296
+
+ccp PrintNiceID6 ( uint nice_gid );
+char * ScanNiceID6 ( int * res, ccp arg );
+
//
///////////////////////////////////////////////////////////////////////////////
/////////////// E N D ///////////////