Files
test2/source/blender/blenlib/intern
Hans Goudey b87ccedd75 BLI: Add bit span operations and bounded bit spans
Most of this patch is by Jacques Lucke, from the simulation branch.

This commit adds generic expression evaluation for bit spans, helping
to generalize the optimizations that avoid processing a single bit
at a time. Operations like "for each 1 index", "or", and "and" are
already implemented in this pull request. Bits in full integers are
processed 64 at a time, then remaining bits are processed all at once.
The operations allow implementing a `copy_from` method for bit spans.

Currently this optimized evaluation is only implemented for simpler
bounded bit spans. Bounded bit spans have constraints on their bit
ranges that make them more efficient to process. Large spans must start
at the beginning of the first int, and small spans must start and end
within the first int.

Knowing these constraints at compile time reduces the number of edge
cases in the operations, but mainly allows skipping alignment between
multiple spans with different offsets.

Pull Request: https://projects.blender.org/blender/blender/pulls/107408
2023-04-28 15:43:34 +02:00
..
2022-10-07 22:55:03 +11:00
2023-02-03 12:41:01 +11:00
2023-03-29 14:17:32 +11:00
2023-02-11 14:04:35 +11:00
2023-04-28 12:23:29 +10:00
2022-02-11 09:14:36 +11:00
2022-11-08 15:50:49 +01:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2023-04-18 12:53:45 -07:00
2022-10-07 22:55:03 +11:00
2022-10-07 22:55:03 +11:00
2023-03-09 18:15:22 +01:00
2022-10-07 22:55:03 +11:00
2023-02-27 21:51:57 +11:00
2023-04-21 23:27:21 +10:00
2022-02-11 09:14:36 +11:00
2023-04-19 08:02:42 +10:00