-
Notifications
You must be signed in to change notification settings - Fork 7
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
Known-small memcpy-s are still libcalls? #86
Comments
The relevant bits of
and then
Relative to upstream (BLAKE2/libb2@643decf), I have the following local changes to get things compiling:
|
The first reason this happens is because of the compiler flag Once that flag is dropped, a second reason comes into play: we're declaring |
With #90 this works properly when |
Continuing from #85 and looking at the
NATIVE_LITTLE_ENDIAN
option afforded by BLAKE2s's portable implementation (https://github.com/BLAKE2/libb2/blob/643decfbf8ae600c3387686754d74c84144950d1/src/blake2-impl.h#L32-L36),load32
now uses amemcpy
to read four bytes.And we dutifully turn that into an actual library call, rather than crushing it down into a
clw
instruction:This, too, then fails to get inlined at
-Oz
and everything's still a bit sad.The text was updated successfully, but these errors were encountered: