[all-commits] [llvm/llvm-project] dba148: [libc][NFC] Make few maths functions buildable out...

Siva Chandra via All-commits all-commits at lists.llvm.org
Tue Feb 16 09:15:51 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dba14814a69143a8763ed4276a38fa9509b5973d
      https://github.com/llvm/llvm-project/commit/dba14814a69143a8763ed4276a38fa9509b5973d
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M libc/test/src/math/RoundToIntegerTest.h
    M libc/utils/FPUtil/CMakeLists.txt
    M libc/utils/FPUtil/NearestIntegerOperations.h

  Log Message:
  -----------
  [libc][NFC] Make few maths functions buildable outside of LLVM libc build.

Few math functions manipulate errno. They assumed that LLVM libc's errno
is available. However, that might not be the case when these functions
are used in a libc which does not use LLVM libc's errno. This change
switches such uses of LLVM libc's errno to the normal public errno macro.
This does not affect LLVM libc's build because the include order ensures
we get LLVM libc's errno. Also, the header check rule ensures we are only
including LLVM libc's errno.h.




More information about the All-commits mailing list