mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
minor fixes
This commit is contained in:
parent
fd2eabd071
commit
4589f1742e
@ -420,8 +420,9 @@ m128 load_m128_from_u64a(const u64a *p) {
|
|||||||
|
|
||||||
static really_inline u32 extract32from128(const m128 in, unsigned imm) {
|
static really_inline u32 extract32from128(const m128 in, unsigned imm) {
|
||||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||||
if (__builtin_constant_p(b)) {
|
if (__builtin_constant_p(imm)) {
|
||||||
return vgetq_lane_u32((uint32x4_t) in, imm);
|
return vgetq_lane_u32((uint32x4_t) in, imm);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
switch (imm) {
|
switch (imm) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -444,8 +445,9 @@ static really_inline u32 extract32from128(const m128 in, unsigned imm) {
|
|||||||
|
|
||||||
static really_inline u64a extract64from128(const m128 in, unsigned imm) {
|
static really_inline u64a extract64from128(const m128 in, unsigned imm) {
|
||||||
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
#if defined(HAVE__BUILTIN_CONSTANT_P)
|
||||||
if (__builtin_constant_p(b)) {
|
if (__builtin_constant_p(imm)) {
|
||||||
return vgetq_lane_u64((uint64x2_t) in, imm);
|
return vgetq_lane_u64((uint64x2_t) in, imm);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
switch (imm) {
|
switch (imm) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user