aboutsummaryrefslogtreecommitdiff
path: root/src/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable arch on windowsSebastiano Tronto2026-03-011-12/+4
|
* Better ifdefs yetSebastiano Tronto2026-03-011-10/+8
|
* Better macrosSebastiano Tronto2026-03-011-41/+42
|
* Fix fixSebastiano Tronto2026-03-011-0/+1
|
* fix ifdefsSebastiano Tronto2026-03-011-43/+55
|
* C11 threads!Sebastiano Tronto2026-03-011-2/+11
|
* C11 threads?Sebastiano Tronto2026-03-011-7/+26
|
* Improve performance of H48 solver with prefetchingSebastiano Tronto2026-01-122-0/+16
| | | | | | | | | With this commit we re-structure how the node expansion in the H48 solution search works to allow prefetching of pruning values, showing performance improvements in the range of 30-45% on x86, depending on table size and solution length. A small bug fix related to appending solutions is included in this commit.
* Correct OS detection for sleep functionSebastiano Tronto2025-08-131-1/+3
|
* Some generic fixes, mainly for building on WindowsSebastiano Tronto2025-08-123-2/+16
|
* Wrapped pthread use in custom APISebastiano Tronto2025-08-112-0/+38
|
* Added CPEPE coordinate in preparation of full DRFIN solverSebastiano Tronto2025-08-011-0/+1
|
* All coordinates unsignedSebastiano Tronto2025-07-292-28/+29
|
* Optimized some coordinatesSebastiano Tronto2025-07-291-10/+12
|
* Tiny cleanupSebastiano Tronto2025-07-281-1/+1
|
* Turns checks into assertions in utils/math.hSebastiano Tronto2025-07-281-53/+20
|
* Make failed assert exit immediatelySebastiano Tronto2025-07-281-3/+3
|
* Hardcoded factorial constantsSebastiano Tronto2025-07-282-25/+20
|
* Removed VLA notation from function parameters.Sebastiano Tronto2025-05-271-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.
* Do all loggin in main threadSebastiano Tronto2025-05-231-0/+2
| | | | | | | | | | | | | | | | | Before this committ, the solver (via the generic solution-appender routines in src/solve/solutions.h) and the H48 data generator did some logging in the worker threads, without using any locks. This was not nice, but in practice it did not cause any problem, because the log messages were rare. However, this turned out to be a problem when building to WASM, because web workers do not have access to the main JS memory, and therefore they cannot call functions from the main JS. This includes not only the callback functions for logging, but also those for polling the status of the solver (run / pause / stop). This commit fixes this at the cost or being somewhat inelegant: the solutions are not logged as they are found, but only every 500ms.
* Added stop / pause / resume solve to APISebastiano Tronto2025-04-292-0/+49
|
* ProgressSebastiano Tronto2025-04-221-361/+2
|
* Improved logging, especially for solveSebastiano Tronto2025-04-191-2/+2
|
* Better logging functionSebastiano Tronto2025-04-151-4/+5
| | | | | | | Now it is possible to provide some data together with the logging function. This is useful for example in C++, where I can now provide an arbitrary callable object as data, and a simple wrapper function that call the callable object as logging function.
* FixSebastiano Tronto2025-04-141-1/+1
|
* Some minor changes to the interface.Sebastiano Tronto2025-04-082-4/+21
| | | | | | | | | - 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.
* Added dreo coordinate solverSebastiano Tronto2025-04-021-0/+4
|
* simplified allowedmoves logicSebastiano Tronto2025-04-011-1/+20
|
* Optimize genptable for coordinate solve (20x speedup)Sebastiano Tronto2025-03-291-0/+14
|
* DR coordinate solverSebastiano Tronto2025-03-281-0/+7
|
* Big cleanup for appendsolution()Sebastiano Tronto2025-03-241-2/+2
| | | | | | | | | | With this PR the appendsolution routine is extracted from the h48 solver and the new coordinate solver and made generic. This has many advantages: - less repetition (even if the two versions are different enough that *for now* it was not a big deal) - smaller h48/solve.h file, which is already a big beast - easier to test the appendsolution() routine separately
* Some safety with move arrays, small refactor appendcharSebastiano Tronto2025-03-222-33/+34
|
* More progress on coordinate solverSebastiano Tronto2025-03-071-0/+4
|
* Begin work for coordinate solverSebastiano Tronto2025-03-041-0/+2
|
* Fixed constant that I rarely used until todaySebastiano Tronto2024-12-151-1/+1
|
* Merge the "solver-experiments" branch that I have been working on forSebastiano Tronto2024-12-071-6/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a few weeks. This include mainly three things: 1. Various tweaks for a total performance gain of around 30%. 2. Take into account symmetries and avoid repeated work. This required a re-work of the splitting into tasks before the solve. 3. Add a second fallback table (eoesep). This gives huge performance gains for particular scrambles (e.g. superflip). After merging this commit, remove and re-generate all pruning tables. Squashed commit of the following: commit 60f0705d2d69050e6a30581a2810f686d6f69b80 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 16:06:48 2024 +0100 Fix indentation commit cc5d489a251812b6188c0ba264ac6cb2236f1afe Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 15:56:19 2024 +0100 Updated documentation commit a3f605dd628546e52564f82b139feb473b0725f3 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 14:01:11 2024 +0100 use eoesep table as second fallback commit c75e43c9116c64f97e92b0fe038be8a032925a72 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Dec 6 16:13:23 2024 +0100 First commit for gendata_eoesep commit fea7688ab8bdc5ae0c3480622e2510a3bcd39248 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:31:00 2024 +0100 Add scramble to tool commit 66866cb71dea4ca8278ecb9e90ff4295771feb42 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:22:59 2024 +0100 Added tool to check multiple solutions commit ef65611c772c3996bddca8d181da3538e0af1674 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:16:20 2024 +0100 Write all solutions for symmetric positions commit e3ded26db7d7d4ae7c0e2488151ed14f581f7b8e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Nov 26 09:14:54 2024 +0100 Added symmetry filter (TODO: print excluded solutions) commit 864c437a9751c58d58562650ca9eba4a9e6ad3eb Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Nov 25 14:51:13 2024 +0100 Improved task split commit b88926d36d7ab0c64c5fe3bb954fd15d41267fba Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Nov 22 19:06:41 2024 +0100 Reworked tasks for multi-threading in view of symmetry filter commit 26fa653f97df8cd601aecb80eaf89f0a00e9ba9f Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 15:37:43 2024 +0100 Added transform move commit 19f655ef94d658eaa2fefb5cea3c167a3ec58db6 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 09:29:15 2024 +0100 Clarified doc commit 3b0fe1e5ef8b628854e30f0f0067300e2763c954 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:36:58 2024 +0100 Handle solved cube correctly commit 57705cbc4982e3abe97a36ed64871738d4f721c0 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:24:30 2024 +0100 Close file commit fc7d462b58bcf3d3a3fbf26c1f3bd04c640a4898 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:05:48 2024 +0100 Removed stats tool commit 359bf7cb49ef405ee76ed662207d47cb2abcc5a9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:01:51 2024 +0100 Updated theory doc commit 39c315af562bc4ce896f41004388a4c34d475d37 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 14:51:40 2024 +0100 Remove unused constants commit 57a5d24538aa59a4df9221dad2f99e9f0286bd9d Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 10:20:38 2024 +0100 Add tool to solve scrambles from file commit 07e2918c216636891b1fa6adecc9756086a901e9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 17:00:00 2024 +0100 Add make table to tool commit f5e5266c654eb027a5a35c57cc618555246f5e5e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 09:35:49 2024 +0100 Remove old solver, other small things commit a1ec78025b7959dbb845213f7f4e6851ecebc204 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sun Oct 27 02:00:29 2024 +0200 Improvements commit 8eea23dbe888d923e662e24ae969130e2c67b999 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Oct 26 12:24:19 2024 +0200 Makefile fix commit 3fc3927beacc78971cefeb42da8d71fe6c015fc1 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 18:25:09 2024 +0200 More performance gains commit 7b4efa1f9af9722de1ab9ccfc27899825a0d12c4 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 15:53:20 2024 +0200 Alternative solver implementation, small performance gain
* Neon uint8x8_t corners and minor fixesenricotenuti2024-10-151-4/+4
|
* 8 bit tablesSebastiano Tronto2024-09-101-1/+1
|
* More renamingSebastiano Tronto2024-09-051-4/+4
|
* Rename constants from _underscore to CAPSSebastiano Tronto2024-09-053-295/+291
|
* Moved stuff aroundSebastiano Tronto2024-09-031-0/+7
|
* Added tool for checking new tables (and they are wrong)Sebastiano Tronto2024-08-301-0/+1
|
* Reorganized folder structureSebastiano Tronto2024-08-184-0/+499

Generated with cgit - Back to sebastiano.tronto.net