Git Product home page Git Product logo

Comments (1)

ameares avatar ameares commented on June 28, 2024

make test
rm -f obj/arm_rt_dsp.o obj/suite1.o obj/suite2.o obj/test_main.o arm_rt_dsp rt_dsp_test_runner
rm -f obj/.gcda obj/.gcno obj/*.gcov
mkdir -p obj
gcc -Wall -Wextra -std=c11 -I./include -fprofile-arcs -ftest-coverage -c tests/suite1.c -o obj/suite1.o
In file included from tests/suite1.c:8:
tests/suite1.c: In function ‘test_mulsat_q15’:
./include/arm_rt_dsp.h:70:16: warning: overflow in conversion from ‘int’ to ‘short int’ changes value from ‘-2147483648’ to ‘0’ [-Woverflow]
70 | #define Q31(x) ((q31_t)((x) < 1 ? ((x) >= -1 ? (x)*0x80000000 : 0x80000000) : 0x7FFFFFFF))
| ^
tests/suite1.c:156:64: note: in expansion of macro ‘Q31’
156 | q15_t test_data_x[] = {Q15(0.5), Q15(-0.5), Q15(0.5), Q31(-1.0)};
| ^~~
./include/arm_rt_dsp.h:70:16: warning: overflow in conversion from ‘int’ to ‘short int’ changes value from ‘-2147483648’ to ‘0’ [-Woverflow]
70 | #define Q31(x) ((q31_t)((x) < 1 ? ((x) >= -1 ? (x)*0x80000000 : 0x80000000) : 0x7FFFFFFF))
| ^
tests/suite1.c:157:65: note: in expansion of macro ‘Q31’
157 | q15_t test_data_y[] = {Q15(0.5), Q15(-0.5), Q15(-0.5), Q31(-1.0)};
| ^~~
./include/arm_rt_dsp.h:70:16: warning: overflow in conversion from ‘int’ to ‘short int’ changes value from ‘2147483647’ to ‘-1’ [-Woverflow]
70 | #define Q31(x) ((q31_t)((x) < 1 ? ((x) >= -1 ? (x)*0x80000000 : 0x80000000) : 0x7FFFFFFF))
| ^
tests/suite1.c:158:67: note: in expansion of macro ‘Q31’
158 | q15_t expected_results[] = {Q15(0.25), Q15(0.25), Q15(-0.25), Q31(1.0)};

from arm-rt-dsp.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.