mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
Minor bug fixes
This commit is contained in:
parent
4cf596338d
commit
a73f656d06
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "rvfloats.h"
|
||||
#include "xlen.h"
|
||||
#include <stdio.h>
|
||||
|
||||
extern "C" {
|
||||
|
@ -482,6 +483,8 @@ uint32_t rv_fsgnjn_s(uint64_t a, uint64_t b) {
|
|||
return 0xffc00000;
|
||||
#endif
|
||||
|
||||
printf("XLEN=%d, FLEN=%d\n", XLEN, FLEN);
|
||||
|
||||
int sign = ~b & F32_SIGN;
|
||||
int r = sign | (a & ~F32_SIGN);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue