Skip to content

Commit 70adb4f

Browse files
committed
Remove dependency on mthdecls.h where not really needed
Convert LONGLONG_T to int64_t.
1 parent 6bdd3d3 commit 70adb4f

File tree

19 files changed

+70
-79
lines changed

19 files changed

+70
-79
lines changed

runtime/flang/iishft.c

Lines changed: 1 addition & 2 deletions
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) 2017-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,7 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
1918
/** \brief IISHFT intrinsic */
2019
int
2120
ftn_i_iishft(int i, int j)

runtime/flang/ileadz.c

Lines changed: 1 addition & 3 deletions
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) 2017-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,8 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
19-
2018
int
2119
__mth_i_ileadz(int i)
2220
{

runtime/flang/ileadzi.c

Lines changed: 1 addition & 3 deletions
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) 2017-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,8 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
19-
2018
int
2119
__mth_i_ileadzi(int i, int size)
2220
{

runtime/flang/ipopcnt.c

Lines changed: 2 additions & 2 deletions
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) 2017-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,7 +15,7 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
18+
#include <stdint.h>
1919

2020
int
2121
__mth_i_ipopcnt(int i)

runtime/flang/ipopcnti.c

Lines changed: 1 addition & 3 deletions
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) 2017-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,8 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
19-
2018
int
2119
__mth_i_ipopcnti(int i, int size)
2220
{

runtime/flang/ipoppar.c

Lines changed: 1 addition & 3 deletions
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) 2017-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,8 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
19-
2018
int
2119
__mth_i_ipoppar(int ii)
2220
{

runtime/flang/ipoppari.c

Lines changed: 1 addition & 3 deletions
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) 2017-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,8 +15,6 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
19-
2018
int
2119
__mth_i_ipoppari(int ii, int size)
2220
{

runtime/flang/kabs.c

Lines changed: 4 additions & 4 deletions
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) 2017-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,10 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
18+
#include <stdint.h>
1919

20-
_LONGLONG_T
21-
ftn_i_kabs(_LONGLONG_T i0)
20+
int64_t
21+
ftn_i_kabs(int64_t i0)
2222
{
2323
if (i0 >= 0)
2424
return i0;

runtime/flang/kidim.c

Lines changed: 5 additions & 5 deletions
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) 2017-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,12 +15,12 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
18+
#include <stdint.h>
1919

20-
_LONGLONG_T
21-
ftn_i_kidim(_LONGLONG_T i, long long j)
20+
int64_t
21+
ftn_i_kidim(int64_t i, int64_t j)
2222
{
23-
_LONGLONG_T h;
23+
int64_t h;
2424

2525
h = i - j;
2626
return h > 0 ? h : 0;

runtime/flang/kisign.c

Lines changed: 5 additions & 5 deletions
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) 2017-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,12 +15,12 @@
1515
*
1616
*/
1717

18-
#include "mthdecls.h"
18+
#include <stdint.h>
1919

20-
_LONGLONG_T
21-
ftn_i_kisign(_LONGLONG_T i, long long j)
20+
int64_t
21+
ftn_i_kisign(int64_t i, int64_t j)
2222
{
23-
_LONGLONG_T absi;
23+
int64_t absi;
2424

2525
absi = i >= 0 ? i : -i;
2626
if (j >= 0)

0 commit comments

Comments
 (0)