Skip to content

Commit 3670d79

Browse files
committed
WIP: fix formatting
1 parent bda7bce commit 3670d79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/include/complex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ _LIBCPP_HIDE_FROM_ABI complex<_Tp> sqrt(const complex<_Tp>& __x) {
10741074

10751075
// exp
10761076

1077-
#if _LIBCPP_HAS_C99_COMPLEX
1077+
# if _LIBCPP_HAS_C99_COMPLEX
10781078
_LIBCPP_HIDE_FROM_ABI inline _Complex float __cexp(_Complex float __v) { return __builtin_cexpf(__v); }
10791079
_LIBCPP_HIDE_FROM_ABI inline _Complex double __cexp(_Complex double __v) { return __builtin_cexp(__v); }
10801080
_LIBCPP_HIDE_FROM_ABI inline _Complex long double __cexp(_Complex long double __v) { return __builtin_cexpl(__v); }
@@ -1083,7 +1083,7 @@ template <class _Tp>
10831083
_LIBCPP_HIDE_FROM_ABI complex<_Tp> exp(const complex<_Tp>& __x) {
10841084
return complex<_Tp>(__from_builtin_tag(), std::__cexp(__x.__builtin()));
10851085
}
1086-
#else
1086+
# else
10871087
template <class _Tp>
10881088
_LIBCPP_HIDE_FROM_ABI complex<_Tp> exp(const complex<_Tp>& __x) {
10891089
_Tp __i = __x.imag();
@@ -1100,14 +1100,14 @@ _LIBCPP_HIDE_FROM_ABI complex<_Tp> exp(const complex<_Tp>& __x) {
11001100
return complex<_Tp>(__x.real(), __i);
11011101
}
11021102
}
1103+
_Tp __e = std::exp(__x.real());
11031104
if (std::isinf(__e)) {
11041105
_Tp __e2 = std::exp(__x.real() * _Tp(0.5));
11051106
return complex<_Tp>(__e2 * std::cos(__i) * __e2, __e2 * std::sin(__i) * __e2);
11061107
}
1107-
_Tp __e = std::exp(__x.real());
11081108
return complex<_Tp>(__e * std::cos(__i), __e * std::sin(__i));
11091109
}
1110-
#endif
1110+
# endif
11111111

11121112
// pow
11131113

0 commit comments

Comments
 (0)