[all-commits] [llvm/llvm-project] 3ecfdc: [APFloat] Overload unary operator-

jayfoad via All-commits all-commits at lists.llvm.org
Fri Mar 6 01:11:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ecfdc70cfb9823960aa4a43aaec2eb4eaab2241
      https://github.com/llvm/llvm-project/commit/3ecfdc70cfb9823960aa4a43aaec2eb4eaab2241
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

  Changed paths:
    M llvm/include/llvm/ADT/APFloat.h
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  [APFloat] Overload unary operator-

Summary:
We already have overloaded binary arithemetic operators so you can write
A+B etc. This patch lets you write -A instead of neg(A).

Subscribers: hiraditya, dexonsmith, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list