[libc-commits] [PATCH] D92626: [libc] Add [l|ll]abs implementation.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Dec 10 00:17:46 PST 2020


sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libc/src/stdlib/abs_utils.h:14
+
+template <typename T> static inline T _abs(T n) {
+  if (n < 0)
----------------
Nit: May be give it a name `integer_abs` and avoid the `_` prefix.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92626/new/

https://reviews.llvm.org/D92626



More information about the libc-commits mailing list