Changeset 1298 for cpp/common/nonstd_math.cpp
- Timestamp:
- 03/29/24 23:30:34 (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_math.cpp
r1280 r1298 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 3Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2024 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 8 8 #include <sstream> 9 9 #include <algorithm> // std::min() 10 #include <common/log.h> 11 12 13 unsigned int rndUint(int limit_exclusive) 14 { 15 if (limit_exclusive < 0) 16 { 17 logPrintf("", "rndUint", LOG_ERROR, "rndUint(negative: %d)", limit_exclusive); 18 return 0; 19 } 20 else return rndUint((unsigned int)limit_exclusive); 21 } 22 10 23 11 24 RandomGenerator &rndGetInstance() … … 125 138 #include <fenv.h> 126 139 140 #ifdef __CYGWIN__ //since my cygwin update in 2024 (g++ (GCC) 11.4.0), these two are no longer found: 141 #define feenableexcept(x) 142 #define fedisableexcept(x) 143 #endif 144 127 145 namespace fpExcept 128 146 { … … 203 221 204 222 #endif 223
Note: See TracChangeset
for help on using the changeset viewer.