[PATCH] D139640: clang: Add __builtin_elementwise canonicalize and copysign

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 9 15:56:59 PST 2022


fhahn added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:644
                                              magnitude than x
+ T__builtin_elementwise_canonicalize(T x)  return the platform specific canonical encoding of a floating-point number             floating point types
+
----------------
I think this needs re-flowing , otherwise the table won't be rendered properly? Same for the next line


================
Comment at: clang/docs/LanguageExtensions.rst:646
+
+ T__builtin_elementwise_copysign(T x, T y)   return the magnitude of T with the sign of Y.             floating point types
  T __builtin_elementwise_max(T x, T y)       return x or y, whichever is larger                               integer and floating point types
----------------
`T` -> `x`? Also, the argument `y` is lowercase, so `Y` -> `y`?


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

https://reviews.llvm.org/D139640



More information about the cfe-commits mailing list