jerpelea opened a new pull request, #21279: URL: https://github.com/apache/nuttx/pull/21279
## Summary Previously, truncl() aborted the kernel with PANIC() on architectures where long double is not equal to double and LDBL_MANT_DIG != 64 (such as IEEE-754 binary128 quad-precision on RISC-V 64, AArch64, or SPARC with LDBL_MANT_DIG == 113). This commit: 1. Extends the musl bit-level branch to support LDBL_MANT_DIG == 113 (IEEE-754 quad-precision binary128) with proper big- and little-endian ldshape layouts. 2. Replaces PANIC() in the #else block with an IEEE-754 compliant mathematical fallback using copysignl((x >= 0.0) ? floorl(x) : ceill(x), x), guaranteeing that truncl() never crashes on any architecture. 3. Removes the unused assert.h include and adds endian.h in alphabetical order. Fixes: #18351 ## Impact RELEASE ## Testing CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
