mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some g++ compiler warnings
This commit is contained in:
parent
35facc3656
commit
9b687968db
19 changed files with 198 additions and 280 deletions
|
|
@ -198,7 +198,7 @@ struct SIMDNativeOps<int8_t>
|
|||
const int8_t* lo_ptr = reinterpret_cast<const int8_t*> (&lo);
|
||||
const int8_t* hi_ptr = reinterpret_cast<const int8_t*> (&hi);
|
||||
|
||||
return lo_ptr[0] + hi_ptr[0] + lo_ptr[16] + hi_ptr[16];
|
||||
return (int8_t) (lo_ptr[0] + hi_ptr[0] + lo_ptr[16] + hi_ptr[16]);
|
||||
}
|
||||
|
||||
static forcedinline __m256i JUCE_VECTOR_CALLTYPE mul (__m256i a, __m256i b)
|
||||
|
|
@ -257,7 +257,7 @@ struct SIMDNativeOps<uint8_t>
|
|||
const uint8_t* lo_ptr = reinterpret_cast<const uint8_t*> (&lo);
|
||||
const uint8_t* hi_ptr = reinterpret_cast<const uint8_t*> (&hi);
|
||||
|
||||
return lo_ptr[0] + hi_ptr[0] + lo_ptr[16] + hi_ptr[16];
|
||||
return (uint8_t) (lo_ptr[0] + hi_ptr[0] + lo_ptr[16] + hi_ptr[16]);
|
||||
}
|
||||
|
||||
static forcedinline __m256i JUCE_VECTOR_CALLTYPE mul (__m256i a, __m256i b)
|
||||
|
|
@ -308,7 +308,7 @@ struct SIMDNativeOps<int16_t>
|
|||
tmp = _mm256_hadd_epi16 (tmp, tmp);
|
||||
tmp = _mm256_hadd_epi16 (tmp, tmp);
|
||||
int16_t* ptr = reinterpret_cast<int16_t*> (&tmp);
|
||||
return ptr[0] + ptr[8];
|
||||
return (int16_t) (ptr[0] + ptr[8]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -351,7 +351,7 @@ struct SIMDNativeOps<uint16_t>
|
|||
tmp = _mm256_hadd_epi16 (tmp, tmp);
|
||||
tmp = _mm256_hadd_epi16 (tmp, tmp);
|
||||
uint16_t* ptr = reinterpret_cast<uint16_t*> (&tmp);
|
||||
return ptr[0] + ptr[8];
|
||||
return (uint16_t) (ptr[0] + ptr[8]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue