sfan5
a00b9cab36
Fix operator[] for vector2d and vector3d being potentially UB ( #15977 )
...
We don't have a C++ expert on hand, but taking a pointer to one member
and expecting to access another by an offset is very fishy:
- for one, there could theoretically be padding
- the compiler might assume that we are only writing to that first member
The new code has shown to be free for constant parameter values.
Non-constant ones cause the assembly to have branches (why?), but we don't
use that much.
2025-04-08 22:25:45 +02:00
..
2024-10-09 16:25:02 +02:00
2024-12-29 14:36:30 +01:00
2024-12-14 17:03:08 +01:00
2024-12-29 14:36:30 +01:00
2024-10-18 10:58:32 +02:00
2024-12-14 17:03:08 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2025-01-04 12:40:14 +01:00
2024-03-26 21:39:02 +01:00
2025-04-08 22:24:37 +02:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-18 12:18:28 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-08-31 11:44:30 +02:00
2024-03-26 21:39:02 +01:00
2024-10-18 10:58:32 +02:00
2024-10-18 10:58:32 +02:00
2024-10-10 21:39:57 +02:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-12-06 18:03:44 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-10-31 19:24:43 +01:00
2025-03-30 18:17:19 +02:00
2024-03-26 21:39:02 +01:00
2024-08-17 19:49:11 +02:00
2024-12-31 14:47:46 +01:00
2025-01-04 12:39:34 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2025-01-04 12:39:34 +01:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-12-23 12:49:47 +01:00
2024-12-23 12:49:47 +01:00
2025-01-04 12:39:34 +01:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-08 13:53:33 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2025-04-08 22:24:37 +02:00
2024-10-18 10:58:32 +02:00
2024-10-18 10:58:32 +02:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-10-18 10:58:32 +02:00
2024-03-26 21:39:02 +01:00
2024-09-02 14:50:30 +02:00
2024-09-02 21:50:13 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-12-29 14:36:30 +01:00
2025-02-22 16:19:04 +01:00
2024-03-26 21:39:02 +01:00
2024-10-18 10:58:32 +02:00
2024-12-14 17:03:08 +01:00
2024-12-04 18:20:34 +01:00
2024-09-18 12:19:40 +02:00
2024-12-20 15:04:08 +01:00
2024-04-10 15:31:59 +02:00
2024-11-15 12:21:30 +01:00
2025-03-16 20:35:34 +01:00
2025-04-08 22:24:37 +02:00
2024-03-26 21:39:02 +01:00
2024-10-04 10:45:09 +02:00
2025-04-08 22:25:45 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2025-01-04 12:40:14 +01:00
2025-03-04 19:53:01 +01:00
2024-03-26 21:39:02 +01:00
2025-04-08 22:24:37 +02:00
2024-03-26 21:39:02 +01:00
2024-10-18 10:58:32 +02:00
2025-04-08 22:24:37 +02:00
2024-03-26 21:39:02 +01:00
2025-03-16 20:35:34 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2025-02-27 12:31:04 +01:00
2024-12-04 18:20:34 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-11-29 12:00:09 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-12-29 14:36:30 +01:00
2024-03-26 21:39:02 +01:00
2024-12-04 18:20:34 +01:00
2024-10-22 23:04:46 +02:00
2024-04-15 17:48:33 +02:00
2024-12-29 14:36:30 +01:00
2025-03-30 18:17:19 +02:00
2025-01-12 14:49:25 +01:00
2024-12-29 14:36:30 +01:00
2024-10-18 10:58:32 +02:00
2024-09-18 12:18:28 +02:00
2024-12-29 14:36:30 +01:00
2024-10-18 10:58:32 +02:00
2024-10-18 10:58:32 +02:00
2024-12-29 14:36:30 +01:00
2025-04-08 22:25:45 +02:00
2025-04-08 22:25:45 +02:00