[libc-commits] [libc] [libc][math][c23] Add {totalorder, totalordermag}f16 C23 math functions (PR #95014)

via libc-commits libc-commits at lists.llvm.org
Mon Jun 10 16:43:25 PDT 2024


================
@@ -240,6 +240,57 @@ LIBC_INLINE int canonicalize(T &cx, const T &x) {
   return 0;
 }
 
+template <typename T>
+LIBC_INLINE cpp::enable_if_t<cpp::is_floating_point_v<T>, bool>
+totalorder(const T *x, const T *y) {
----------------
lntue wrote:

just pass by values

https://github.com/llvm/llvm-project/pull/95014


More information about the libc-commits mailing list