[PATCH 4/4] riscv: Addfpgetroundtoi and fpsetroundtoi stubs

Keith Packard keithp@keithp.com
Tue Jan 21 06:47:00 GMT 2020


I've found no description of what these functions are supposed to do,
so I'm not even going to try and implement them.

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 newlib/libc/machine/riscv/ieeefp.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/newlib/libc/machine/riscv/ieeefp.c b/newlib/libc/machine/riscv/ieeefp.c
index 60ecacfc2..46e4a4b15 100644
--- a/newlib/libc/machine/riscv/ieeefp.c
+++ b/newlib/libc/machine/riscv/ieeefp.c
@@ -142,3 +142,13 @@ fpsetsticky(fp_except sticky)
   return -1;
 #endif /* __riscv_flen */
 }
+
+fp_rdi fpgetroundtoi (void)
+{
+  return 0;
+}
+
+fp_rdi fpsetroundtoi (fp_rdi rdi)
+{
+  return -1;
+}
-- 
2.25.0.rc1



More information about the Newlib mailing list