This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Division with NEON

Note: This was originally posted on 30th September 2011 at http://forums.arm.com

Hi.

I have 4 unsigned 16bit values into a Dn register (or 8 into a Qn register)

[v1] [v2] [v3] [v4]

I'm looking for the code to finaly have

[65536 / v1] [65536 / v2] [65536 / v3] [65536 / v4]

into another (or the same) Dn (or Qn) register...
Thank's

Etienne
Parents
  • Note: This was originally posted on 5th October 2011 at http://forums.arm.com


    Glad that's working out for you. Out of curiosity, does this work?


            vcvt.f32.u32            q0, q0
            vrecpe.f32        q0, q0
            vcvt.u32.f32            q0, q0, #16



    I'll ckeck this evening but it should work !!!
    Thank's for this usefull optimisation !
Reply
  • Note: This was originally posted on 5th October 2011 at http://forums.arm.com


    Glad that's working out for you. Out of curiosity, does this work?


            vcvt.f32.u32            q0, q0
            vrecpe.f32        q0, q0
            vcvt.u32.f32            q0, q0, #16



    I'll ckeck this evening but it should work !!!
    Thank's for this usefull optimisation !
Children
No data