Minor bug fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include "rvfloats.h"
|
#include "rvfloats.h"
|
||||||
|
#include "xlen.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -482,6 +483,8 @@ uint32_t rv_fsgnjn_s(uint64_t a, uint64_t b) {
|
|||||||
return 0xffc00000;
|
return 0xffc00000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
printf("XLEN=%d, FLEN=%d\n", XLEN, FLEN);
|
||||||
|
|
||||||
int sign = ~b & F32_SIGN;
|
int sign = ~b & F32_SIGN;
|
||||||
int r = sign | (a & ~F32_SIGN);
|
int r = sign | (a & ~F32_SIGN);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user