Skip to content

Speed improvement with regards to SINT16 and SINT24#1

Open
sszymanski wants to merge 2 commits intoNeurobotics:masterfrom
sszymanski:patch-1
Open

Speed improvement with regards to SINT16 and SINT24#1
sszymanski wants to merge 2 commits intoNeurobotics:masterfrom
sszymanski:patch-1

Conversation

@sszymanski
Copy link

Small change to quickly read UINT16 numbers instead of using the flipBits function. Also, you get rid of one conditional statement. In critical loop, it's important. Enjoy!

Small change to quickly read UINT16 numbers instead of using the flipBits function. Also, you get rid of one conditional statement. In critical loop, it's important. Enjoy!
Updated 3-byte case and switched addition to logical sum as it's easier operation on cpu and it this case it will suffice.
@sszymanski sszymanski changed the title Speed improvement with regards to UINT16 Speed improvement with regards to SINT16 and SINT24 Mar 13, 2021
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.

1 participant