Skip to content

Commit 5a08917

Browse files
committed
reformat
1 parent da8b2fc commit 5a08917

File tree

2 files changed

+77
-75
lines changed

2 files changed

+77
-75
lines changed

clang/lib/Headers/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ set(ppc_htm_files
120120

121121
set(riscv_files
122122
riscv_bitmanip.h
123-
riscv_corev_alu.h
124-
riscv_corev_mac.h
123+
riscv_corev_alu.h
124+
riscv_corev_mac.h
125125
riscv_crypto.h
126126
riscv_ntlh.h
127127
sifive_vector.h

clang/lib/Headers/riscv_corev_mac.h

Lines changed: 75 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -20,85 +20,87 @@ extern "C" {
2020

2121
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__))
2222

23-
static __inline__ long __DEFAULT_FN_ATTRS __riscv_cv_mac_mac(long a, long b, long c) {
23+
static __inline__ long __DEFAULT_FN_ATTRS __riscv_cv_mac_mac(long a, long b,
24+
long c) {
2425
return __builtin_riscv_cv_mac_mac(a, b, c);
2526
}
2627

27-
static __inline__ long __DEFAULT_FN_ATTRS __riscv_cv_mac_msu(long a, long b, long c) {
28+
static __inline__ long __DEFAULT_FN_ATTRS __riscv_cv_mac_msu(long a, long b,
29+
long c) {
2830
return __builtin_riscv_cv_mac_msu(a, b, c);
2931
}
3032

31-
#define __riscv_cv_mac_muluN(rs1, rs2, SHIFT) \
32-
(unsigned long) __builtin_riscv_cv_mac_muluN((unsigned long) (rs1), \
33-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
34-
35-
#define __riscv_cv_mac_mulhhuN(rs1, rs2, SHIFT) \
36-
(unsigned long) __builtin_riscv_cv_mac_mulhhuN((unsigned long) (rs1), \
37-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
38-
39-
#define __riscv_cv_mac_mulsN(rs1, rs2, SHIFT) \
40-
(long) __builtin_riscv_cv_mac_mulsN((unsigned long) (rs1), \
41-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
42-
43-
#define __riscv_cv_mac_mulhhsN(rs1, rs2, SHIFT) \
44-
(long) __builtin_riscv_cv_mac_mulhhsN((unsigned long) (rs1), \
45-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
46-
47-
#define __riscv_cv_mac_muluRN(rs1, rs2, SHIFT) \
48-
(unsigned long) __builtin_riscv_cv_mac_muluRN((unsigned long) (rs1), \
49-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
50-
51-
#define __riscv_cv_mac_mulhhuRN(rs1, rs2, SHIFT) \
52-
(unsigned long) __builtin_riscv_cv_mac_mulhhuRN((unsigned long) (rs1), \
53-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
54-
55-
#define __riscv_cv_mac_mulsRN(rs1, rs2, SHIFT) \
56-
(long) __builtin_riscv_cv_mac_mulsRN((unsigned long) (rs1), \
57-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
58-
59-
#define __riscv_cv_mac_mulhhsRN(rs1, rs2, SHIFT) \
60-
(long) __builtin_riscv_cv_mac_mulhhsRN((unsigned long) (rs1), \
61-
(unsigned long) (rs2), (const uint8_t) (SHIFT))
62-
63-
#define __riscv_cv_mac_macuN(rs1, rs2, rD, SHIFT) \
64-
(unsigned long) __builtin_riscv_cv_mac_macuN((unsigned long) (rs1), \
65-
(unsigned long) (rs2), (unsigned long) (rD), \
66-
(const uint8_t) (SHIFT))
67-
68-
#define __riscv_cv_mac_machhuN(rs1, rs2, rD, SHIFT) \
69-
(unsigned long) __builtin_riscv_cv_mac_machhuN((unsigned long) (rs1), \
70-
(unsigned long) (rs2), (unsigned long) (rD), \
71-
(const uint8_t) (SHIFT))
72-
73-
#define __riscv_cv_mac_macsN(rs1, rs2, rD, SHIFT) \
74-
(long) __builtin_riscv_cv_mac_macsN((unsigned long) (rs1), \
75-
(unsigned long) (rs2), (unsigned long) (rD), \
76-
(const uint8_t) (SHIFT))
77-
78-
#define __riscv_cv_mac_machhsN(rs1, rs2, rD, SHIFT) \
79-
(long) __builtin_riscv_cv_mac_machhsN((unsigned long) (rs1), \
80-
(unsigned long) (rs2), (unsigned long) (rD), \
81-
(const uint8_t) (SHIFT))
82-
83-
#define __riscv_cv_mac_macuRN(rs1, rs2, rD, SHIFT) \
84-
(unsigned long) __builtin_riscv_cv_mac_macuRN((unsigned long) (rs1), \
85-
(unsigned long) (rs2), (unsigned long) (rD), \
86-
(const uint8_t) (SHIFT))
87-
88-
#define __riscv_cv_mac_machhuRN(rs1, rs2, rD, SHIFT) \
89-
(unsigned long) __builtin_riscv_cv_mac_machhuRN((unsigned long) (rs1), \
90-
(unsigned long) (rs2), (unsigned long) (rD), \
91-
(const uint8_t) (SHIFT))
92-
93-
#define __riscv_cv_mac_macsRN(rs1, rs2, rD, SHIFT) \
94-
(long) __builtin_riscv_cv_mac_macsRN((unsigned long) (rs1), \
95-
(unsigned long) (rs2), (unsigned long) (rD), \
96-
(const uint8_t) (SHIFT))
97-
98-
#define __riscv_cv_mac_machhsRN(rs1, rs2, rD, SHIFT) \
99-
(long) __builtin_riscv_cv_mac_machhsRN((unsigned long) (rs1), \
100-
(unsigned long) (rs2), (unsigned long) (rD), \
101-
(const uint8_t) (SHIFT))
33+
#define __riscv_cv_mac_muluN(rs1, rs2, SHIFT) \
34+
(unsigned long)__builtin_riscv_cv_mac_muluN( \
35+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
36+
37+
#define __riscv_cv_mac_mulhhuN(rs1, rs2, SHIFT) \
38+
(unsigned long)__builtin_riscv_cv_mac_mulhhuN( \
39+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
40+
41+
#define __riscv_cv_mac_mulsN(rs1, rs2, SHIFT) \
42+
(long)__builtin_riscv_cv_mac_mulsN( \
43+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
44+
45+
#define __riscv_cv_mac_mulhhsN(rs1, rs2, SHIFT) \
46+
(long)__builtin_riscv_cv_mac_mulhhsN( \
47+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
48+
49+
#define __riscv_cv_mac_muluRN(rs1, rs2, SHIFT) \
50+
(unsigned long)__builtin_riscv_cv_mac_muluRN( \
51+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
52+
53+
#define __riscv_cv_mac_mulhhuRN(rs1, rs2, SHIFT) \
54+
(unsigned long)__builtin_riscv_cv_mac_mulhhuRN( \
55+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
56+
57+
#define __riscv_cv_mac_mulsRN(rs1, rs2, SHIFT) \
58+
(long)__builtin_riscv_cv_mac_mulsRN( \
59+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
60+
61+
#define __riscv_cv_mac_mulhhsRN(rs1, rs2, SHIFT) \
62+
(long)__builtin_riscv_cv_mac_mulhhsRN( \
63+
(unsigned long)(rs1), (unsigned long)(rs2), (const uint8_t)(SHIFT))
64+
65+
#define __riscv_cv_mac_macuN(rs1, rs2, rD, SHIFT) \
66+
(unsigned long)__builtin_riscv_cv_mac_macuN( \
67+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
68+
(const uint8_t)(SHIFT))
69+
70+
#define __riscv_cv_mac_machhuN(rs1, rs2, rD, SHIFT) \
71+
(unsigned long)__builtin_riscv_cv_mac_machhuN( \
72+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
73+
(const uint8_t)(SHIFT))
74+
75+
#define __riscv_cv_mac_macsN(rs1, rs2, rD, SHIFT) \
76+
(long)__builtin_riscv_cv_mac_macsN( \
77+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
78+
(const uint8_t)(SHIFT))
79+
80+
#define __riscv_cv_mac_machhsN(rs1, rs2, rD, SHIFT) \
81+
(long)__builtin_riscv_cv_mac_machhsN( \
82+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
83+
(const uint8_t)(SHIFT))
84+
85+
#define __riscv_cv_mac_macuRN(rs1, rs2, rD, SHIFT) \
86+
(unsigned long)__builtin_riscv_cv_mac_macuRN( \
87+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
88+
(const uint8_t)(SHIFT))
89+
90+
#define __riscv_cv_mac_machhuRN(rs1, rs2, rD, SHIFT) \
91+
(unsigned long)__builtin_riscv_cv_mac_machhuRN( \
92+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
93+
(const uint8_t)(SHIFT))
94+
95+
#define __riscv_cv_mac_macsRN(rs1, rs2, rD, SHIFT) \
96+
(long)__builtin_riscv_cv_mac_macsRN( \
97+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
98+
(const uint8_t)(SHIFT))
99+
100+
#define __riscv_cv_mac_machhsRN(rs1, rs2, rD, SHIFT) \
101+
(long)__builtin_riscv_cv_mac_machhsRN( \
102+
(unsigned long)(rs1), (unsigned long)(rs2), (unsigned long)(rD), \
103+
(const uint8_t)(SHIFT))
102104

103105
#endif // defined(__riscv_xcvmac)
104106

0 commit comments

Comments
 (0)