c - Compiling half float neon instructions for iOS -


the issue having neon instructions believe supported on arm7 architecture. using default compiler (apple llvm 5.0), recognises other neon instructions although not half-float instruction.

here code:

vcvt.f32.f16, q0, d1 

this has compiled on gcc although apple compiler not instruction , gives error: instruction requires: half-float

is there compiler flag can give xcode? can't find out how enable half float instructions googling around.

thanks!

the half-float format not supported on arm v7 implementations. see arm manual here. it's required vfp4, if chip supports that, that's start. in general recommend using run-time detection , dispatching. enable instruction in general, need use 1 of several floating point support options, in general "fp16" keyword, example:

-mfpu=neon-fp16 if sure target supports neon. couldn't find of examples llvm either, think compatible gcc options, found in gcc manual.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -