Skip to content

Commit 36782ba

Browse files
authored
Merge pull request #593 from ThePortlandGroup/nv_stage
Pull 2018-09-17T07-16 Recent NVIDIA Changes
2 parents 936fcb9 + 97ae616 commit 36782ba

File tree

21 files changed

+132
-832
lines changed

21 files changed

+132
-832
lines changed

runtime/flang/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ SET(FTN_INTRINSICS_DESC_INDEP
3535
besy03f.c
3636
besy13f.c
3737
besyn3f.c
38-
cdexp.c
3938
chdir3f.c
4039
chmod3f.c
4140
commitqq3f.c

runtime/flang/cdexp.c

Lines changed: 0 additions & 21 deletions
This file was deleted.

runtime/flangrti/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ SET(PGC_SRC_FILES
6565
memalign.c
6666
iostdinit.c
6767
tempnam.c
68-
round.c
6968
s_erf.c
7069
trace_lin.c
7170
trace.c

runtime/flangrti/bessel_tjn.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,9 +15,11 @@
1515
*
1616
*/
1717

18-
/* bessel_tjn.c - implement float F2008 bessel_jn transformational intrinsic */
19-
#include "mthdecls.h"
20-
#include "stdioInterf.h"
18+
/* bessel_tjn.c implements float F2008 bessel_jn transformational intrinsic */
19+
20+
float __mth_i_bessel_j0(float arg);
21+
float __mth_i_bessel_j1(float arg);
22+
float __mth_i_bessel_jn(int n, float arg);
2123

2224
void
2325
f90_bessel_jn(float *rslts, int *n1, int *n2, float *x)
@@ -28,13 +30,13 @@ f90_bessel_jn(float *rslts, int *n1, int *n2, float *x)
2830
for (i = *n1, rslt_p = rslts; i <= *n2; i++, rslt_p++) {
2931
switch (i) {
3032
case 0:
31-
*rslt_p = BESSEL_J0F(*x);
33+
*rslt_p = __mth_i_bessel_j0(*x);
3234
break;
3335
case 1:
34-
*rslt_p = BESSEL_J1F(*x);
36+
*rslt_p = __mth_i_bessel_j1(*x);
3537
break;
3638
default:
37-
*rslt_p = BESSEL_JNF(i, *x);
39+
*rslt_p = __mth_i_bessel_jn(i, *x);
3840
break;
3941
}
4042
}

runtime/flangrti/bessel_tyn.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,9 +15,11 @@
1515
*
1616
*/
1717

18-
/* bessel_tyn.c - implement float F2008 bessel_yn transformational intrinsic */
19-
#include "mthdecls.h"
20-
#include "stdioInterf.h"
18+
/* bessel_tyn.c implements float F2008 bessel_yn transformational intrinsic */
19+
20+
float __mth_i_bessel_y0(float arg);
21+
float __mth_i_bessel_y1(float arg);
22+
float __mth_i_bessel_yn(int n, float arg);
2123

2224
void
2325
f90_bessel_yn(float *rslts, int *n1, int *n2, float *x)
@@ -28,13 +30,13 @@ f90_bessel_yn(float *rslts, int *n1, int *n2, float *x)
2830
for (i = *n1, rslt_p = rslts; i <= *n2; i++, rslt_p++) {
2931
switch (i) {
3032
case 0:
31-
*rslt_p = BESSEL_Y0F(*x);
33+
*rslt_p = __mth_i_bessel_y0(*x);
3234
break;
3335
case 1:
34-
*rslt_p = BESSEL_Y1F(*x);
36+
*rslt_p = __mth_i_bessel_y1(*x);
3537
break;
3638
default:
37-
*rslt_p = BESSEL_YNF(i, *x);
39+
*rslt_p = __mth_i_bessel_yn(i, *x);
3840
break;
3941
}
4042
}

runtime/flangrti/dbessel_tjn.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,10 +15,11 @@
1515
*
1616
*/
1717

18-
/* dbessel_tjn.c - implement double F2008 bessel_jn transformational intrinsic
19-
*/
20-
#include "mthdecls.h"
21-
#include "stdioInterf.h"
18+
/* bessel_tjn.c implements double F2008 bessel_jn transformational intrinsic */
19+
20+
double __mth_i_dbessel_j0(double arg);
21+
double __mth_i_dbessel_j1(double arg);
22+
double __mth_i_dbessel_jn(int n, double arg);
2223

2324
void
2425
f90_dbessel_jn(double *rslts, int *n1, int *n2, double *x)
@@ -29,13 +30,13 @@ f90_dbessel_jn(double *rslts, int *n1, int *n2, double *x)
2930
for (i = *n1, rslt_p = rslts; i <= *n2; i++, rslt_p++) {
3031
switch (i) {
3132
case 0:
32-
*rslt_p = BESSEL_J0(*x);
33+
*rslt_p = __mth_i_dbessel_j0(*x);
3334
break;
3435
case 1:
35-
*rslt_p = BESSEL_J1(*x);
36+
*rslt_p = __mth_i_dbessel_j1(*x);
3637
break;
3738
default:
38-
*rslt_p = BESSEL_JN(i, *x);
39+
*rslt_p = __mth_i_dbessel_jn(i, *x);
3940
break;
4041
}
4142
}

runtime/flangrti/dbessel_tyn.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,10 +15,11 @@
1515
*
1616
*/
1717

18-
/* dbessel_tyn.c - implement double F2008 bessel_yn transformational intrinsic
19-
*/
20-
#include "mthdecls.h"
21-
#include "stdioInterf.h"
18+
/* bessel_tyn.c implements float F2008 bessel_yn transformational intrinsic */
19+
20+
double __mth_i_dbessel_y0(double arg);
21+
double __mth_i_dbessel_y1(double arg);
22+
double __mth_i_dbessel_yn(int n, double arg);
2223

2324
void
2425
f90_dbessel_yn(double *rslts, int *n1, int *n2, double *x)
@@ -29,13 +30,13 @@ f90_dbessel_yn(double *rslts, int *n1, int *n2, double *x)
2930
for (i = *n1, rslt_p = rslts; i <= *n2; i++, rslt_p++) {
3031
switch (i) {
3132
case 0:
32-
*rslt_p = BESSEL_Y0(*x);
33+
*rslt_p = __mth_i_dbessel_y0(*x);
3334
break;
3435
case 1:
35-
*rslt_p = BESSEL_Y1(*x);
36+
*rslt_p = __mth_i_dbessel_y1(*x);
3637
break;
3738
default:
38-
*rslt_p = BESSEL_YN(i, *x);
39+
*rslt_p = __mth_i_dbessel_yn(i, *x);
3940
break;
4041
}
4142
}

runtime/flangrti/mpmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
* Copyright (c) 1998-2018, NVIDIA CORPORATION. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

runtime/flangrti/round.c

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)