Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
350 stars 133 forks source link

Add support for RISC-V FPU ops #28

Closed bradenkell closed 1 year ago

bradenkell commented 1 year ago

Add support for getting/setting FPU state on RISC-V. Disabling denormals is not supported by RISC-V and is left as a no-op here.

Maratyszcza commented 1 year ago

As suppressing subnormals on RISC-V is not supported, there's no need to support saving/restoring FPU state either, and this functionality is only used in combination with suppressing subnormals. The suggested change would result in needless saving and restoring of FPU state without any other effects.