Skip to content

Commit 6bbcd4e

Browse files
committed
vector updates with clang formatting
1 parent 6b23d29 commit 6bbcd4e

File tree

5 files changed

+3452
-3213
lines changed

5 files changed

+3452
-3213
lines changed

sim/common/softfloat_ext.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ static inline uint64_t rsqrte7(uint64_t val, int e, int s, bool sub) {
148148
59, 58, 57, 56, 56, 55, 54, 53};
149149

150150
if (sub) {
151-
while (extract64(sig, s - 1, 1) == 0)
152-
exp--, sig <<= 1;
153-
151+
while (extract64(sig, s - 1, 1) == 0) {
152+
exp--;
153+
sig <<= 1;
154+
}
154155
sig = (sig << 1) & make_mask64(0, s);
155156
}
156157

@@ -165,7 +166,8 @@ float16_t f16_rsqrte7(float16_t in) {
165166
union ui16_f16 uA;
166167

167168
uA.f = in;
168-
unsigned bool sub = false;
169+
unsigned int ret = f16_classify(in);
170+
bool sub = false;
169171
switch (ret) {
170172
case 0x001: // -inf
171173
case 0x002: // -normal

sim/simx/emulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void Emulator::warp_t::clear(uint64_t startup_addr) {
4545

4646
this->vtype = {0, 0, 0, 0, 0};
4747
this->vl = 0;
48-
this->VLMAX = 0;
48+
this->vlmax = 0;
4949

5050
for (auto& reg_file : this->ireg_file) {
5151
for (auto& reg : reg_file) {

sim/simx/emulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Emulator {
114114
Byte fcsr;
115115
vtype_t vtype;
116116
uint32_t vl;
117-
Word VLMAX;
117+
Word vlmax;
118118
uint32_t uuid;
119119
};
120120

0 commit comments

Comments
 (0)