Skip to content

Commit 6937339

Browse files
committed
Don't compile multiplications on RV32EC
1 parent a28bd37 commit 6937339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BitNetMCU_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ void processfclayer( int8_t *activations, const uint32_t *weights, int32_t bits
141141
weightChunk <<= 4;
142142
}
143143
}
144-
#endif
145144
} else if (bits_per_weight == 8 + 4 ) { // 4 bit twos-complement
146145
for (uint32_t k = 0; k < n_input; k+=8) {
147146
int32_t weightChunk = *weightidx++;
@@ -152,6 +151,7 @@ void processfclayer( int8_t *activations, const uint32_t *weights, int32_t bits
152151
weightChunk <<= 4;
153152
}
154153
}
154+
#endif
155155
} else if (bits_per_weight == 16 + 4 ) { // 4 bit shift
156156
for (uint32_t k = 0; k < n_input; k+=8) {
157157
uint32_t weightChunk = *weightidx++;

0 commit comments

Comments
 (0)