File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ //===-- lib/Evaluate/wrappers.c -------------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+
19#include <complex.h>
210
3- void csqrtf_wrapper (const float x [2 ], float res [2 ])
4- {
11+ void csqrtf_wrapper (const float x [2 ], float res [2 ]) {
512 float complex c = x [0 ] + I * x [1 ];
613 float complex r = csqrtf (c );
714 res [0 ] = crealf (r );
815 res [1 ] = cimagf (r );
916}
1017
11- void csqrt_wrapper (const double x [2 ], double res [2 ])
12- {
18+ void csqrt_wrapper (const double x [2 ], double res [2 ]) {
1319 double complex c = x [0 ] + I * x [1 ];
1420 double complex r = csqrt (c );
1521 res [0 ] = creal (r );
You can’t perform that action at this time.
0 commit comments