Forums

Where is "uint16x8_t" defined?

Started by Unknown January 24, 2014
On 24/01/14 23:27, rxjwg98@gmail.com wrote:
> On Friday, January 24, 2014 4:50:22 PM UTC-5, robert...@yahoo.com > wrote: >> On Fri, 24 Jan 2014 13:43:18 -0800 (PST), rxjwg98@gmail.com wrote: >> >> >> >>> Hi, >> >>> I program on Ubuntu 12.04, 32bit for some ARM projects. On >>> Ubuntu, a Linaro toolchain works well for some time. Recently, I >>> begin to write NEON code. Some on line code uses uint16x8_t, >>> uint32x4_t etc. Although the project can build, the eclipse >>> complains these variables unresolved. I have tried many settings >>> on eclipse, but I fail. >> >>> >> >>> One on line snippet uses header <stdint.h> with those uint >>> variables. But on my Ubuntu, I do not find those declarations in >>> several stdint.h files. I am working on a Cortex-A8 project. >>> Could you help me to solve this problem? >> >> >> You probably need to compile with -mfpu=neon and include >> arm_neon.h > > The weird thing is that there are many similar variables in > arm_neon.h, see below please. But it has no clue where those > variables declared. Do you have some ideas? > > > Below are excerpt from arm_neon.h: >
Go to the base directory for your header files and type "grep -r uint16x8_t * | less" to see everywhere that string occurs. The chances are quite high that you can spot where it is defined.
On Saturday, January 25, 2014 6:59:36 AM UTC-5, David Brown wrote:
> On 24/01/14 23:27, rxjwg98@gmail.com wrote: > > > On Friday, January 24, 2014 4:50:22 PM UTC-5, robert...@yahoo.com > > > wrote: > > >> On Fri, 24 Jan 2014 13:43:18 -0800 (PST), rxjwg98@gmail.com wrote: > > >> > > >> > > >> > > >>> Hi, > > >> > > >>> I program on Ubuntu 12.04, 32bit for some ARM projects. On > > >>> Ubuntu, a Linaro toolchain works well for some time. Recently, I > > >>> begin to write NEON code. Some on line code uses uint16x8_t, > > >>> uint32x4_t etc. Although the project can build, the eclipse > > >>> complains these variables unresolved. I have tried many settings > > >>> on eclipse, but I fail. > > >> > > >>> > > >> > > >>> One on line snippet uses header <stdint.h> with those uint > > >>> variables. But on my Ubuntu, I do not find those declarations in > > >>> several stdint.h files. I am working on a Cortex-A8 project. > > >>> Could you help me to solve this problem? > > >> > > >> > > >> You probably need to compile with -mfpu=neon and include > > >> arm_neon.h > > > > > > The weird thing is that there are many similar variables in > > > arm_neon.h, see below please. But it has no clue where those > > > variables declared. Do you have some ideas? > > > > > > > > > Below are excerpt from arm_neon.h: > > > > > > > Go to the base directory for your header files and type "grep -r > > uint16x8_t * | less" to see everywhere that string occurs. The chances > > are quite high that you can spot where it is defined.
Thanks all of you. After I realized that the definition is included in arm_neon.h., I add the following to the source .c file. Then, eclipse found the header file. More interestingly, it remembered that path even I commented out the definition later. The key point of the problem to me is to get confirmed that it were an eclipse setting and which header file problems. #define __ARM_NEON__