File tree Expand file tree Collapse file tree 8 files changed +43
-10
lines changed Expand file tree Collapse file tree 8 files changed +43
-10
lines changed Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
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
+
1
9
#ifndef __CLC_MATH_CLC_ILOGB_H__
2
10
#define __CLC_MATH_CLC_ILOGB_H__
3
11
4
- #define __CLC_BODY <clc/math/clc_ilogb.inc>
12
+ #define __CLC_FUNCTION __clc_ilogb
13
+ #define __CLC_BODY <clc/math/unary_decl_with_int_return.inc>
5
14
#include <clc/math/gentype.inc>
6
15
7
- #undef __CLC_BODY
16
+ #undef __CLC_FUNCTION
8
17
9
18
#endif // __CLC_MATH_CLC_ILOGB_H__
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
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
+
1
9
#ifndef __CLC_MATH_CLC_LOGB_H__
2
10
#define __CLC_MATH_CLC_LOGB_H__
3
11
4
12
#define __CLC_FUNCTION __clc_logb
5
13
#define __CLC_BODY <clc/shared/unary_decl.inc>
6
14
#include <clc/math/gentype.inc>
7
15
8
- #undef __CLC_BODY
9
16
#undef __CLC_FUNCTION
10
17
11
18
#endif // __CLC_MATH_CLC_LOGB_H__
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- _CLC_OVERLOAD _CLC_DECL __CLC_INTN ilogb (__CLC_GENTYPE x);
9
+ _CLC_OVERLOAD _CLC_DECL __CLC_INTN __CLC_FUNCTION (__CLC_GENTYPE x);
Original file line number Diff line number Diff line change
1
+ // ===----------------------------------------------------------------------===//
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
+
9
+ #include < clc/utils.h>
10
+
11
+ #ifndef __CLC_FUNCTION
12
+ #define __CLC_FUNCTION (x ) __CLC_CONCAT(__clc_, x)
13
+ #endif
14
+
15
+ _CLC_OVERLOAD _CLC_DEF __CLC_INTN FUNCTION (__CLC_GENTYPE a) {
16
+ return __CLC_FUNCTION (FUNCTION)(a);
17
+ }
Original file line number Diff line number Diff line change 6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
- #define __CLC_BODY <clc/math/ilogb.inc>
9
+ #define __CLC_FUNCTION ilogb
10
+ #define __CLC_BODY <clc/math/unary_decl_with_int_return.inc>
10
11
11
12
#include <clc/math/gentype.inc>
13
+
14
+ #undef __CLC_FUNCTION
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <clc/math/clc_ilogb.h>
11
11
12
- #define __CLC_BODY "ilogb.inc"
12
+ #define FUNCTION ilogb
13
+ #define __CLC_BODY <clc/math/unary_def_with_int_return.inc>
13
14
#include <clc/math/gentype.inc>
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments