setzero functions for i8 and i16

This commit is contained in:
Anton Mitrokhin
2014-10-30 18:36:39 +04:00
parent 1f2079f2a8
commit e2249365f3
2 changed files with 8 additions and 16 deletions

View File

@@ -442,22 +442,20 @@ template <> FORCEINLINE __vec16_i1 __undef_i1<__vec16_i1>() {
// int8
///////////////////////////////////////////////////////////////////////////
/*
TODO
*/
template <class RetVecType> static RetVecType __setzero_i8();
template <> FORCEINLINE __vec16_i8 __setzero_i8<__vec16_i8>() {
return __vec16_i8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
///////////////////////////////////////////////////////////////////////////
// int16
///////////////////////////////////////////////////////////////////////////
/*
TODO
*/
template <class RetVecType> static RetVecType __setzero_i16();
template <> FORCEINLINE __vec16_i16 __setzero_i16<__vec16_i16>() {
return __vec16_i16(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
///////////////////////////////////////////////////////////////////////////
// int32