Skip to content

Commit

Permalink
Unify storage buffers for atomic mode and normal
Browse files Browse the repository at this point in the history
Now that atomic mode is proving to be a good solution and normal mode has switched to storage buffers, we can unify the two and delete the hacky back door we were using before for atomic storage buffers.

Diffs=
af2f2d632 Unify storage buffers for atomic mode and normal (#6449)

Co-authored-by: Chris Dalton <[email protected]>
  • Loading branch information
csmartdalton and csmartdalton committed Jan 13, 2024
1 parent ee7a0ae commit 46cec57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dcbe806b0485977a4c968e93eefcc7e6e01a4460
af2f2d632619ec298e58ec54c4a9b6a66f9d27dc
3 changes: 3 additions & 0 deletions include/rive/math/math_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ RIVE_ALWAYS_INLINE static uint32_t msb(uint32_t x)
#endif
}

// Attempt to generate a "rotate-left" (rotl) assembly instruction.
constexpr static uint32_t rotl(uint32_t x, int shift) { return (x << shift) | (x >> (32 - shift)); }

// Returns x rounded up to the next multiple of N.
// If x is already a multiple of N, returns x.
template <size_t N> RIVE_ALWAYS_INLINE constexpr size_t round_up_to_multiple_of(size_t x)
Expand Down

0 comments on commit 46cec57

Please sign in to comment.