Skip to content

Commit ab83823

Browse files
author
Rafael Stahl
authored
fix warnings
not sure if it was intentional that this code was unused. i assume the handling of nan is done by softfloat?
1 parent d02d9aa commit ab83823

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vm/fp_functions.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,7 @@ uint64_t fconv_f2d(uint32_t v1, uint8_t mode){
238238
}
239239

240240
uint64_t fadd_d(uint64_t v1, uint64_t v2, uint8_t mode) {
241-
bool nan = (v1&defaultNaNF32UI)==quiet_nan32;
242-
bool snan = softfloat_isSigNaNF32UI(v1);
243-
float64_t v1f{v1},v2f{v2};
241+
float64_t v1f{v1},v2f{v2};
244242
softfloat_roundingMode=rmm_map[mode&0x7];
245243
softfloat_exceptionFlags=0;
246244
float64_t r =f64_add(v1f, v2f);

0 commit comments

Comments
 (0)