[all-commits] [llvm/llvm-project] 03d453: [libc][math] Fix FP add/sub for signed-zero operan...

Hanliang Xu (Leon) via All-commits all-commits at lists.llvm.org
Thu Mar 5 15:31:04 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03d453a51aa221c9f00b7d5bce9b2e5d9e7f7191
      https://github.com/llvm/llvm-project/commit/03d453a51aa221c9f00b7d5bce9b2e5d9e7f7191
  Author: Hanliang Xu (Leon) <hxu110 at jh.edu>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M libc/src/__support/FPUtil/generic/add_sub.h
    M libc/test/src/math/smoke/AddTest.h
    M libc/test/src/math/smoke/SubTest.h

  Log Message:
  -----------
  [libc][math] Fix FP add/sub for signed-zero operands (#183243)

(-0.0) + (-0.0) and (-0.0) - (+0.0) returned +0.0 instead of -0.0.

Ensure these cases comply with IEEE 754 ยง6.3 rule.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list