Skip to content

Commit d5219a9

Browse files
committed
Add copyright note and fix format
1 parent 1742f2a commit d5219a9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

flang/lib/Evaluate/wrappers.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
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);

0 commit comments

Comments
 (0)