intel / Immintrin-debug

immintrin_dbg.h is an include file, a wrapper around immintrin.h. It implements most of AVX, AVX2, AVX-512 vector intrinsics to enable source level debug of vector code.
BSD 3-Clause "New" or "Revised" License
57 stars 8 forks source link

Stupid compiler warning #9

Closed rosbif closed 4 years ago

rosbif commented 4 years ago

In the function _mm_extract_epi32_dbg() why not replace the switch with simply: return a_vec[imm8 & 0x3]; ? (I prefer simplicity ;-) )

The also avoids the stupid compiler throwing an erroneous warning about a missing return value. (I don't like compiler warnings ;-) )