Commit a7e07c8
sync: Remove streflop library and all associated dead code
streflop is no longer needed: the four atan2 calls that affected
sync-logged game state now use deterministicAtan2Deg() (previous
commit), and the remaining streflop uses (fabs, floor, sqrt) are
inherently deterministic under IEEE 754.
Source file cleanup
-------------------
Every #ifdef USE_STREFLOP / streflop:: / #else / stdlib / #endif block
is collapsed to the stdlib branch:
unit_updater.cpp - floor() for range checks
map_preview.cpp - sqrtf() distance, fabs() gradient
particle.cpp - fabsf/sinf/cosf/sqrtf/fmod/cos/sin/atan2
(all rendering-only, no sync impact)
vec.h - std::sqrt() in Vec2/Vec3::length()
main.cpp - remove STREFLOP mode/enabled log prints
math_wrapper.h - unconditional #include <cmath>
lua_script.cpp: remove Lua_STREFLOP_Wrapper class and all ~25
instances. The class toggled streflop precision around Lua calls to
avoid FPU state corruption; with streflop gone it is a no-op.
platform_main.h
---------------
- Remove --disable-streflop-checks CLI arg and GAME_ARG enum value
- Remove the SSE capability runtime check (was only needed to
validate streflop's SSE mode requirement)
- Remove streflop_init<streflop::Simple>() startup call
CMakeLists.txt
--------------
- Remove WANT_USE_STREFLOP and FORCE_STREFLOP_SOFTWRAPPER options
- Remove the STREFLOP_SSE/X87/SOFT detection and ADD_DEFINITIONS block
source/shared_lib/CMakeLists.txt
---------------------------------
- Remove pkg_search_module(STREFLOP …) discovery
- Remove ADD_SUBDIRECTORY(sources/streflop) and link step
- Remove ${STREFLOP_PROPERTIES} from compile flags
- Remove ${MG_STREFLOP} from Windows link libraries
Deleted files
-------------
source/shared_lib/sources/streflop/ (~70 .cpp files)
source/shared_lib/include/streflop/ (~20 .h files)
source/shared_lib/include/platform/common/streflop_cond.h
source/tests/shared_lib/streflop/ (OOS regression test)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 08ebc27 commit a7e07c8
115 files changed
Lines changed: 1 addition & 21084 deletions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 265 | | |
300 | 266 | | |
301 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4364 | 4364 | | |
4365 | 4365 | | |
4366 | 4366 | | |
4367 | | - | |
4368 | | - | |
4369 | | - | |
4370 | | - | |
4371 | | - | |
4372 | | - | |
4373 | | - | |
4374 | | - | |
4375 | | - | |
4376 | | - | |
4377 | | - | |
4378 | | - | |
4379 | | - | |
4380 | | - | |
4381 | | - | |
4382 | | - | |
4383 | | - | |
4384 | | - | |
4385 | | - | |
4386 | | - | |
4387 | | - | |
4388 | 4367 | | |
4389 | | - | |
4390 | 4368 | | |
4391 | 4369 | | |
4392 | 4370 | | |
| |||
4923 | 4901 | | |
4924 | 4902 | | |
4925 | 4903 | | |
4926 | | - | |
4927 | | - | |
4928 | | - | |
4929 | 4904 | | |
4930 | | - | |
4931 | 4905 | | |
4932 | 4906 | | |
4933 | 4907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3490 | 3490 | | |
3491 | 3491 | | |
3492 | 3492 | | |
3493 | | - | |
3494 | | - | |
3495 | | - | |
3496 | 3493 | | |
3497 | | - | |
3498 | 3494 | | |
3499 | 3495 | | |
3500 | 3496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 8 | | |
30 | | - | |
31 | 9 | | |
32 | 10 | | |
33 | 11 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 12 | | |
46 | 13 | | |
47 | 14 | | |
| |||
266 | 233 | | |
267 | 234 | | |
268 | 235 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | 236 | | |
278 | 237 | | |
279 | 238 | | |
| |||
466 | 425 | | |
467 | 426 | | |
468 | 427 | | |
469 | | - | |
| 428 | + | |
470 | 429 | | |
471 | 430 | | |
472 | 431 | | |
| |||
517 | 476 | | |
518 | 477 | | |
519 | 478 | | |
520 | | - | |
521 | 479 | | |
522 | 480 | | |
523 | 481 | | |
| |||
530 | 488 | | |
531 | 489 | | |
532 | 490 | | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | 491 | | |
537 | 492 | | |
538 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 231 | | |
235 | 232 | | |
236 | | - | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
| |||
422 | 418 | | |
423 | 419 | | |
424 | 420 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | 421 | | |
429 | 422 | | |
430 | | - | |
431 | 423 | | |
432 | 424 | | |
433 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 15 | | |
23 | 16 | | |
24 | | - | |
25 | | - | |
26 | 17 | | |
27 | 18 | | |
28 | 19 | | |
Lines changed: 0 additions & 74 deletions
This file was deleted.
0 commit comments