Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the cubic_spline_interpolation macro with a generic function #11605

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

Kanabenki
Copy link
Contributor

Objective

  • Address a TODO item in bevy_animation.

Solution

  • Replace the cubic_spline_interpolation macro with a function.

The function isn't marked as #[inline(always)] but from what I checked with cargo asm it gets inlined (even in debug, unless I explicitly add #[inline(never)]), so this should be identical to the macro. If needed I can add the attribute.

@Kanabenki Kanabenki added C-Code-Quality A section of code that is hard to understand or change A-Animation Make things move and change over time labels Jan 29, 2024
@james7132 james7132 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jan 29, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 29, 2024
Merged via the queue into bevyengine:main with commit e94297f Jan 29, 2024
26 checks passed
tjamaan pushed a commit to tjamaan/bevy that referenced this pull request Feb 6, 2024
bevyengine#11605)

# Objective

- Address a `TODO` item in `bevy_animation`.

## Solution

- Replace the `cubic_spline_interpolation` macro with a function.

The function isn't marked as `#[inline(always)]` but from what I checked
with `cargo asm` it gets inlined (even in debug, unless I explicitly add
`#[inline(never)]`), so this should be identical to the macro. If needed
I can add the attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants