Skip to content

Commit 1b5253d

Browse files
committed
Add comments
1 parent 83e3cf6 commit 1b5253d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Evaluate/intrinsics-library.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ template <typename HostT>
293293
static std::complex<HostT> CSqrt(const std::complex<HostT> &x) {
294294
std::complex<HostT> res;
295295
#ifdef _AIX
296+
// On AIX, the implementation of csqrt[f] and std::sqrt is different,
297+
// use csqrt[f] in folding.
296298
if constexpr (std::is_same_v<HostT, float>) {
297299
float _Complex c;
298300
reinterpret_cast<HostT(&)[2]>(c)[0] = x.real();

0 commit comments

Comments
 (0)