GNU C Library 2.40 Released With New C23 Features & New Performance Tunables

Written by Michael Larabel in GNU on 22 July 2024 at 08:30 AM EDT. 6 Comments
GNU
GNU C Library "glibc" 2.40 is now available with more C23 features being enabled as well as some new performance tunables on x86_64 and AArch64 along with other improvements to this widely used libc implementation.

Glibc 2.40 was tagged on Sunday and brings with it many new features. Some of the GNU C Library 2.40 highlights include:

- Glibc now supports a feature test macro _ISOC23_SOURCE to enable features from the ISO C23 standard.

- The ISO C23 function families are now supported in the math.h header file. The families include functions for float, double, long double, _FloatN and _FloatNx, and a type-generic macro in tgmath.h.

- The new tunable "glibc.rtld.enable_secure" can be used to run a program as if it were a setuid process.

- The fortify functionality has been improved for building programs with Clang against the GNU C Library.

- Many new functions for the vector library on AArch64: acosh, asinh, atanh, cbrt, cosh, erf, erfc, hypot, pow, sinh, tanh.

- Glibc on x86_64 can now use non-temporal stores to improve the performance of large writes when enabled via the new x86_memset_non_temporal_threshold tunable.

- Many bug fixes along with several security fixes.

- Glibc tuning for Qualcomm's Oryon CPU core.

For those building Glibc from source can grab the new GNU C Library 2.40 version from
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week