Prevent implicit conversion of float to double to avoid precision error on i686. https://github.com/Maratyszcza/FP16/issues/20 Taken from Debian: https://salsa.debian.org/deeplearning-team/fp16/-/blob/master/debian/patches/ftbfs-i386.patch Index: fp16/include/fp16/fp16.h =================================================================== --- fp16.orig/include/fp16/fp16.h +++ fp16/include/fp16/fp16.h @@ -228,7 +228,8 @@ static inline uint16_t fp16_ieee_from_fp const float scale_to_inf = fp32_from_bits(UINT32_C(0x77800000)); const float scale_to_zero = fp32_from_bits(UINT32_C(0x08800000)); #endif - float base = (fabsf(f) * scale_to_inf) * scale_to_zero; + const volatile float base_inf = fabsf(f) * scale_to_inf; + float base = base_inf * scale_to_zero; const uint32_t w = fp32_to_bits(f); const uint32_t shl1_w = w + w; Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/slang.scm
AgeCommit message (Expand)Author
2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès
2021-11-26gnu: slang: Really fix the array tests on 32 bit architectures....This is a follow up to efb0a04ee05f43e86b3c1fcda867a123d8ed021a. * gnu/packages/slang.scm (slang)[phases]{reduce-array-test-size}: Further reduce the array size. Maxim Cournoyer
2021-11-25gnu: slang: Fix build on 32 bit systems....* gnu/packages/slang.scm (slang)[phases]{reduce-array-test-size}: New phase. Maxim Cournoyer