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

CLZ optimization #63

Merged
merged 1 commit into from
Mar 13, 2022
Merged

CLZ optimization #63

merged 1 commit into from
Mar 13, 2022

Conversation

mactcp
Copy link

@mactcp mactcp commented Mar 10, 2022

Optimize the selected SCSI ID code to use __builtin_clz to find the first selected bit. This compiles to the ARM CLZ instruction, which is supported on the STM32F103.

@erichelgeson
Copy link
Owner

Hey, thanks for the PR! I've not see __builtin_clz before, will read up and give it a test this weekend. (Also Eudora is my favorite/first email client :D )

@erichelgeson
Copy link
Owner

Saves 256 bytes of flash - Tested on an SE and seemed to work fine. I'll test a few more scenarios this evening before merging. Thanks again.

@erichelgeson erichelgeson merged commit 5f5053b into erichelgeson:main Mar 13, 2022
erichelgeson pushed a commit that referenced this pull request Nov 4, 2022
Patches from
============
Improve filename handling (#62, #63)
80228b6c01aa6e95e0060c07e3308f6217021996

GD32: fix reading of very last SD card sector
3c41957068ae87582e3ac65fd4e2a28beebe2b68

Fix spurious read error messages due to prefetch when image is at end…
cb6d102435c5c599ed110cb40875626f829699e8

Narrow down error for spec 1.x sd cards
7ed375d8e30f08226703d781b13a9c06777b6042
to
786dffd3476b64882c11f0525b24087354ebc6d6
skipping
e7c8fe7293276957b494ffa533fe4c7c2e954ff2

Remove boot flag check from SdFat
d004cc3d862a9b2cc7b8575c5833581c65308254
erichelgeson pushed a commit that referenced this pull request Nov 4, 2022
RP2040: Add support for SCSI-1 single initiator mode (#61)
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.

2 participants