Skip to content

Commit 5ff34d2

Browse files
author
Yuqi Gu
committed
Macro 64-bit for Arm Neon
Change-Id: If44e59356a644997c18bf513c8acd3bf83b69630 Signed-off-by: Yuqi Gu <guyuqi@apache.com>
1 parent f96a3c6 commit 5ff34d2

10 files changed

+20
-0
lines changed

include/xsimd/types/xsimd_neon_double.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ namespace xsimd
580580
return vbslq_f64(cond, a, b);
581581
}
582582

583+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
583584
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
584585
{
585586
return vzip1q_f64(lhs, rhs);
@@ -589,6 +590,7 @@ namespace xsimd
589590
{
590591
return vzip2q_f64(lhs, rhs);
591592
}
593+
#endif
592594

593595
static batch_bool_type isnan(const batch_type& x)
594596
{

include/xsimd/types/xsimd_neon_float.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ namespace xsimd
639639
return vbslq_f32(cond, a, b);
640640
}
641641

642+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
642643
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
643644
{
644645
return vzip1q_f32(lhs, rhs);
@@ -648,6 +649,7 @@ namespace xsimd
648649
{
649650
return vzip2q_f32(lhs, rhs);
650651
}
652+
#endif
651653

652654
static batch_bool_type isnan(const batch_type& x)
653655
{

include/xsimd/types/xsimd_neon_int16.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ namespace xsimd
345345
return vbslq_s16(cond, a, b);
346346
}
347347

348+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
348349
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
349350
{
350351
return vzip1q_s16(lhs, rhs);
@@ -354,6 +355,7 @@ namespace xsimd
354355
{
355356
return vzip2q_s16(lhs, rhs);
356357
}
358+
#endif
357359
};
358360
}
359361

include/xsimd/types/xsimd_neon_int32.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ namespace xsimd
425425
return vbslq_s32(cond, a, b);
426426
}
427427

428+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
428429
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
429430
{
430431
return vzip1q_s32(lhs, rhs);
@@ -434,6 +435,7 @@ namespace xsimd
434435
{
435436
return vzip2q_s32(lhs, rhs);
436437
}
438+
#endif
437439
};
438440
}
439441

include/xsimd/types/xsimd_neon_int64.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ namespace xsimd
440440
return vbslq_s64(cond, a, b);
441441
}
442442

443+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
443444
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
444445
{
445446
return vzip1q_s64(lhs, rhs);
@@ -449,6 +450,7 @@ namespace xsimd
449450
{
450451
return vzip2q_s64(lhs, rhs);
451452
}
453+
#endif
452454
};
453455
}
454456

include/xsimd/types/xsimd_neon_int8.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ namespace xsimd
346346
return vbslq_s8(cond, a, b);
347347
}
348348

349+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
349350
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
350351
{
351352
return vzip1q_s8(lhs, rhs);
@@ -355,6 +356,7 @@ namespace xsimd
355356
{
356357
return vzip2q_s8(lhs, rhs);
357358
}
359+
#endif
358360
};
359361
}
360362

include/xsimd/types/xsimd_neon_uint16.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ namespace xsimd
319319
return vbslq_u16(cond, a, b);
320320
}
321321

322+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
322323
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
323324
{
324325
return vzip1q_u16(lhs, rhs);
@@ -328,6 +329,7 @@ namespace xsimd
328329
{
329330
return vzip2q_u16(lhs, rhs);
330331
}
332+
#endif
331333
};
332334
}
333335

include/xsimd/types/xsimd_neon_uint32.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ namespace xsimd
416416
return vbslq_u32(cond, a, b);
417417
}
418418

419+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
419420
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
420421
{
421422
return vzip1q_u32(lhs, rhs);
@@ -425,6 +426,7 @@ namespace xsimd
425426
{
426427
return vzip2q_u32(lhs, rhs);
427428
}
429+
#endif
428430
};
429431

430432
inline batch<uint32_t, 4> shift_left(const batch<uint32_t, 4>& lhs, int32_t n)

include/xsimd/types/xsimd_neon_uint64.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ namespace xsimd
468468
return vbslq_u64(cond, a, b);
469469
}
470470

471+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
471472
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
472473
{
473474
return vzip1q_u64(lhs, rhs);
@@ -477,6 +478,7 @@ namespace xsimd
477478
{
478479
return vzip2q_u64(lhs, rhs);
479480
}
481+
#endif
480482
};
481483

482484
inline batch<uint64_t, 2> shift_left(const batch<uint64_t, 2>& lhs, int32_t n)

include/xsimd/types/xsimd_neon_uint8.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ namespace xsimd
320320
return vbslq_u8(cond, a, b);
321321
}
322322

323+
#if XSIMD_ARM_INSTR_SET >= XSIMD_ARM8_64_NEON_VERSION
323324
static batch_type zip_lo(const batch_type& lhs, const batch_type& rhs)
324325
{
325326
return vzip1q_u8(lhs, rhs);
@@ -329,6 +330,7 @@ namespace xsimd
329330
{
330331
return vzip2q_u8(lhs, rhs);
331332
}
333+
#endif
332334
};
333335
}
334336

0 commit comments

Comments
 (0)