aboutsummaryrefslogtreecommitdiff
path: root/src/utils/math.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2026-04-06Make the project build with Microsoft's broken C compiler.Sebastiano Tronto1-3/+3
MSVC is not fully C11-compliant, even when compiling with /std:c11. Some changes were needed to make the codebase compatible. Notably, the notation a[static N] and a[n] for function parameters of array type is not supported, so that had to be hidden behind a macro. Atomic types are also an experimental feature, apparently, but at least they work with the correct compiler flag. One thing that MSVC does well, however, is warning on integer conversions on /W4 level. I am not sure if Clang and GCC have something similar, so I took this chance to fix some of these.
2025-07-29All coordinates unsignedSebastiano Tronto1-19/+20
2025-07-29Optimized some coordinatesSebastiano Tronto1-10/+12
2025-07-28Tiny cleanupSebastiano Tronto1-1/+1
2025-07-28Turns checks into assertions in utils/math.hSebastiano Tronto1-53/+20
2025-07-28Hardcoded factorial constantsSebastiano Tronto1-25/+4
2025-05-27Removed VLA notation from function parameters.Sebastiano Tronto1-12/+12
I found out that this gives undefined behavior when then size is 0. Better not to have it at all, it is confusing for other developers anyway.
2025-04-19Improved logging, especially for solveSebastiano Tronto1-2/+2
2025-04-08Some minor changes to the interface.Sebastiano Tronto1-2/+2
- Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments.
2025-03-29Optimize genptable for coordinate solve (20x speedup)Sebastiano Tronto1-0/+14
2025-03-22Some safety with move arrays, small refactor appendcharSebastiano Tronto1-33/+32
2024-09-05More renamingSebastiano Tronto1-4/+4
2024-09-05Rename constants from _underscore to CAPSSebastiano Tronto1-26/+26
2024-08-30Added tool for checking new tables (and they are wrong)Sebastiano Tronto1-0/+1
2024-08-18Reorganized folder structureSebastiano Tronto1-0/+0
2024-07-18Converted set to mapSebastiano Tronto1-0/+2
2024-07-05Finished getcubeSebastiano Tronto1-2/+4
2024-07-05Added more math utilitiesSebastiano Tronto1-1/+57
2024-07-04(almost) added getcubeSebastiano Tronto1-0/+125

Generated with cgit - Back to sebastiano.tronto.net