diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-05-28 18:20:02 +0700 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-05-29 14:07:25 +0000 |
commit | 0d49f47aeb5a38273c4a356dc4780e3819747d60 (patch) | |
tree | 70cb2852a4044ef0fcb799e1187411e225045102 /include/osmocom/vty/vty.h | |
parent | b51d51b29c647584d95cc62dbe88f869ba5bf5d5 (diff) |
core/conv: do not mix up AVX and SSE code
According to GCC's wiki:
If you specify command-line switches such as -msse, the compiler
could use the extended instruction sets even if the built-ins are
not used explicitly in the program. For this reason, applications
that perform run-time CPU detection must compile separate files
for each supported architecture, using the appropriate flags. In
particular, the file containing the CPU detection code should be
compiled without these options.
So, this change introduces a separate Viterbi implementation,
which is almost the same as previous one, but is being compiled
with -mavx2. This implementation will be only used by CPUs with
both SSE and AVX support:
SSE3 and AVX2: viterbi_sse_avx.c
SSE3 only: viterbi_sse.c
Generic: viterbi_generic.c
Change-Id: I042cc76258df7e4c6c90a73af3d0a6e75999b2b0
Diffstat (limited to 'include/osmocom/vty/vty.h')
0 files changed, 0 insertions, 0 deletions