Skip to content

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Oct 15, 2025

This contains the last unmerged part of #21018

I added a fast path for finite n and p so that those special cases do not have that much effect on performance.

@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player labels Oct 15, 2025
kjarosh and others added 2 commits October 15, 2025 16:25
Instead of going through all checks, if n and p are finite, Math.pow
goes straight into executing regular powf. This is the most common case
of calling Math.pow.
@kjarosh kjarosh merged commit fc95636 into ruffle-rs:master Oct 15, 2025
26 checks passed
@kjarosh kjarosh deleted the math-pow branch October 15, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants