[cute_sound] CUTE_SOUND_SCALAR_MODE unreachable
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- c
- Domain
- audio-video-rtc
Research direction
The two preprocessor conditions named in the issue are at about lines 444 and 469 of the cute_sound header in this repo. Add parentheses around the NEON and SSE defined(...) groups so the !defined(CUTE_SOUND_SCALAR_MODE) check applies to all of them. Done when compiling with CUTE_SOUND_SCALAR_MODE defined takes the scalar path without errors on x86 and ARM builds.
Written by the indexing model from the issue text.
Description
Hi Randy,
cute_sound v3.00 contains the CUTE_SOUND_SCALAR_MODE flag, which helps with compatibility in some cases. However, this flag is checked with broken logic that fails the GCC preprocessor's order of operations.
Line 444
#if !defined(CUTE_SOUND_SCALAR_MODE) && defined(__ARM_NEON) || defined(__ARM_NEON__)
Should be
#if !defined(CUTE_SOUND_SCALAR_MODE) && (defined(__ARM_NEON) || defined(__ARM_NEON__))
Line 469
#elif !defined(CUTE_SOUND_SCALAR_MODE) && defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__) || defined(__SSE4_1__) || defined(__SSE4_2__)
Should be
#elif !defined(CUTE_SOUND_SCALAR_MODE) && (defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__) || defined(__SSE4_1__) || defined(__SSE4_2__))
This allows the scalar mode to compile.
- Dominant language
- C
- Stars
- 5.1k
- Forks
- 316
- Avg merge
- 28m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RandyGaul/cute_headers
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RandyGaul/cute_headers#456 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
RandyGaul/cute_headers#458 ·
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
RandyGaul/cute_headers#457 ·
-
chunk errorOpen
Difficulty 3/5 Half a day Newbie friendliness 25/100
RandyGaul/cute_headers#446 ·
-
[cute_aseprite] Missing tag directionPossibly taken @Pituivan claimed this 73 days ago. Open
Difficulty 2/5 Under an hour Newbie friendliness 20/100
RandyGaul/cute_headers#443 ·
All issues in RandyGaul/cute_headers
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: services kind: bug preview-effort: small priority: low
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new-compilers request
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
compiler-explorer/compiler-explorer#9640 ·
Maintainers usually reply within 1 day
-
Brain server leaks its session tables when it stops or cannot list the dump folderPossibly taken @marinelay claimed this today. Opentype: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day