glibc floating point math functions provide slightly different results between RHEL major releases

Solution Verified - Updated -

Issue

  • exp2f() provides different results in RHEL 7 and RHEL 8
  • We have identified a difference in behavior in libm provided by glibc between the version on RHEL 7 (glibc 2.17) and the version on RHEL8 (glibc-2.28). It's a small difference in precision of the exp2f() function; it's so small that it's within the limit of precision of glibc, so it's not an error.
  • glibc EXP function calculates a different result between RH7 and RH8 and back again in RH9

Environment

  • Red Hat Enterprise Linux
  • Red Hat Enterprise Linux
  • GNU C Library glibc floating point math functions in libm

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content