コード例 #1
0
ファイル: base.hpp プロジェクト: AdLantis/opencv
inline int32x2_t cv_vrnd_s32_f32(float32x2_t v)
{
    static int32x2_t v_sign = vdup_n_s32(1 << 31),
        v_05 = vreinterpret_s32_f32(vdup_n_f32(0.5f));

    int32x2_t v_addition = vorr_s32(v_05, vand_s32(v_sign, vreinterpret_s32_f32(v)));
    return vcvt_s32_f32(vadd_f32(v, vreinterpret_f32_s32(v_addition)));
}
コード例 #2
0
ファイル: vands32.c プロジェクト: crathish/chipKIT-cxx
void test_vands32 (void)
{
  int32x2_t out_int32x2_t;
  int32x2_t arg0_int32x2_t;
  int32x2_t arg1_int32x2_t;

  out_int32x2_t = vand_s32 (arg0_int32x2_t, arg1_int32x2_t);
}
コード例 #3
0
ファイル: vtransform.hpp プロジェクト: 007Indian/opencv
inline   int32x2_t vand(const int32x2_t   & v0, const int32x2_t   & v1) { return vand_s32(v0, v1); }
コード例 #4
0
ファイル: aarch64-neon-3v.c プロジェクト: ADonut/LLVM-GPGPU
int32x2_t test_vand_s32(int32x2_t a, int32x2_t b) {
  // CHECK-LABEL: test_vand_s32
  return vand_s32(a, b);
  // CHECK: and {{v[0-9]+}}.8b, {{v[0-9]+}}.8b, {{v[0-9]+}}.8b
}