[all-commits] [llvm/llvm-project] 87bf0b: [libc] Add a class called NormalFloat which repres...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Aug 20 09:00:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 87bf0b0ee986078a2c9e9bca02cf7a4c42012925
      https://github.com/llvm/llvm-project/commit/87bf0b0ee986078a2c9e9bca02cf7a4c42012925
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2020-08-20 (Thu, 20 Aug 2020)

  Changed paths:
    M libc/utils/FPUtil/CMakeLists.txt
    M libc/utils/FPUtil/ManipulationFunctions.h
    A libc/utils/FPUtil/NormalFloat.h

  Log Message:
  -----------
  [libc] Add a class called NormalFloat which represents normalized floats.

This class helps in dealing with normal and subnormal numbers uniformly.
Moreover, since this class has been designed to handle all floating
formats across platforms, it helps implement floating point functions in
a uniform manner.

The implementations of frexp and logb have been switched to use this new
class as it allows us to use just one implementation across all
different floating point formats.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D86241




More information about the All-commits mailing list