Git Product home page Git Product logo

neon_example_code's Introduction

Neon_EXAMPLE_code

this is a Neon example code for rookie, the contents included in this project are list below:

Load&Store(take FP32 for example)

函数 含义 备注
vld1q_f32 从内存加载float数据到128位的neon寄存器,一次加载4个float
vld1q_lane_f32 从内存加载一个数据到neon寄存器中,根据index替换原来寄存器对应index的数据
vld1q_dup_f32 从内存加载一个数据a到neon寄存器中 , 将该neon寄存器中所有位置的值变为a
vld1q_f32_x2 从内存中加载8个数据,按照顺序依次填充到2个neon寄存器中
vld2q_f32 从内存加载8个数据,按照顺序交叉存储到2个neon寄存器中
vld2q_lane_f32 从内存中加载两个数据,根据index,分别存储到2个Neon寄存器中索引为index的位置
vld2q_dup_f32 从内存中加载两个数据,分别填充满2个Neon寄存器
vgetq_lane_f32 根据index从Neon寄存器中获取对应的值

算术计算(take s8 and f32 for example)

  • vaddq_s8
  • vmulq_s8
  • vsubq_s8
  • vpaddq_s8
  • vmulq_n_f32
  • vmulq_laneq_f32
  • vfmaq_n_f32
  • vrsqrteq_f32
  • vrecpeq_f32
  • vrecpsq_f32

vectir manipulation(take u32 for example)

  • vcombine_u32
  • vget_low_u32
  • vget_high_u32
  • vextq_u32
  • vrev64q_u32
  • vsetq_lane_u32
  • vtrnq_u32
  • vzipq_u32

Bit Manipulation(take u8 for example)

  • vclzq_u8
  • vcntq_u8
  • vbicq_u8(it makes some error)
  • vbslq_u8

compare(take u8 for example)

  • vceqq_u8
  • vcgeq_u8
  • vcleq_u8
  • vcgtq_u8
  • vcltq_u8

logical(take u8 for example)

  • vnegq_s8

  • vmvnq_u8

  • vandq_u8

  • vorrq_u8

neon_example_code's People

Contributors

kkchenlight avatar

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.