libnyquist icon indicating copy to clipboard operation
libnyquist copied to clipboard

/arch:AVX causes a crash on some older CPU models

Open Malacath-92 opened this issue 2 years ago • 1 comments

With this instruction set the MSVC emits unconditional usage of the instructions vpxor and vmovdqu when constructing a std::shared_ptr. On older CPU models that don't support the AVX instruction set this will result in a crash. It was quite frustrating to figure this out given that less than 1% of my users appear to be affected. Maybe this instruction set could not be unconditionally applied to libnyquist when built from CMake? Or maybe the usage of std::shared_ptr can be reduced. Given that all decoders are stateless and 1-byte large there's next to not good reason to use std::shared_ptr for their storage. Although it has been a while since I worked with C++11, maybe something prevents you from avoid that.

Malacath-92 avatar Aug 17 '21 20:08 Malacath-92

This project had changes since this issue was reported. It's a tiny change that doesn't warrant a PR. Is anyone gonna fix it or are you just gonna leave the responsibility of it on your users?

Malacath-92 avatar Jun 26 '22 08:06 Malacath-92