-
Notifications
You must be signed in to change notification settings - Fork 41
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
assembler instruction in endian.h not working #12
Comments
@skye-AL Make sure dspal/include is NOT in your path when building ARM binaries. It can ONLY be included when building HEXAGON binaries. Otherwise you will pick up the wrong version of endian.h |
@mcharleb Thank you for the prompt answer. I was just testing it with the dspal tester and added the following lines at the beginning of
and added |
@skye-AL Did you resolve the issue you were having? |
@mcharleb Hey Mark, thank you for coming back to me. Unfortunately I haven't yet solved this issue:
And as I understand this I only build hexagon binaries here, if I'm not wrong? |
Somehow you are building ARM assembly (bic instruction) which means you are picking up the wrong header files somewhere that provide ARM versions of assembly macros. |
@skye-AL Are you still having an issue or has this been resolved? |
@mcharleb I appreciate that you ask again. Unfortunately, I couldn't solve this issue at the time and did not follow up as using the workaround described in the first comment would just be fine. Do you not experience this problem when using e.g. __htonl(x) on the dsp (e.g. as explained in the second comment)? |
@skye-AL Closing the issue since it sounded like you found a workaround and this is not something that anyone else seems to be experiencing. Please feel free to re-open an issue if this is a continued problem. |
@mcharleb, @jywilson
using the inline functions defined in dspal/include/endian.h, e.g.
__htonl(x)
, leads to errorsunfortunately I don't know anything about assembler instructions, so I don't know really how to fix it, but a workaround is to use something like this instead:
can you confirm this issue?
The text was updated successfully, but these errors were encountered: