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

AP_Math: move zeroing to header, use memset, reuse in identity #28423

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

peterbarker
Copy link
Contributor

this method is in ITCM memory on STM32 - which makes small optimisations worthwhile

Board                    AP_Periph  blimp  bootloader  copter  heli  iofirmware  plane  rover  sub
CubeOrange-periph-heavy  *                                                                     
CubeRedPrimary                      -72    *           -72     -64               -72    -72    -64
Durandal                            -64    *           -64     -64               -64    -64    -64
Hitec-Airspeed           *                                                                     
KakuteH7-bdshot                     -64    *           -64     -64               -64    -64    -64
MatekF405                           -48    *           -40     -48               -40    -32    -40
Pixhawk1-1M-bdshot                  -40                -40     -48               -40    -40    -48
f103-QiotekPeriph        *                                                                     
f303-Universal           *                                                                     
iomcu                                                                *                         
revo-mini                           -40    *           -40     -40               -48    -40    -48
skyviper-v2450                                         -48                                     

this method is in ITCM memory on STM32 - which makes small optimisations worthwhile
Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the improvement coming from the memset, the use of zero or just the removal of the templating ?

@peterbarker
Copy link
Contributor Author

I assumed it was the memset - but didn't check.

Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tridge tridge merged commit dc62483 into ArduPilot:master Nov 4, 2024
98 checks passed
@peterbarker peterbarker deleted the pr/matrix-zero branch November 6, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants