Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Commit

Permalink
Implement __ieee754_sqrtl (#3)
Browse files Browse the repository at this point in the history
* Add soft-float version for __ieee754_sqrtl

* Add _FP_QNANNEGATEDP and _FP_TININESS_AFTER_ROUNDING define to sfp-machine.h
  • Loading branch information
kito-cheng authored and aswaterman committed Nov 8, 2016
1 parent 7fef429 commit 7ba28f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysdeps/riscv/soft-fp/e_sqrtl.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "sysdeps/aarch64/soft-fp/e_sqrtl.c"
3 changes: 3 additions & 0 deletions sysdeps/riscv/soft-fp/sfp-machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#define _FP_NANSIGN_Q 0

#define _FP_KEEPNANFRACP 1
#define _FP_QNANNEGATEDP 0
/* From my experiments it seems X is chosen unless one of the
NaNs is sNaN, in which case the result is NANSIGN/NANFRAC. */
#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \
Expand Down Expand Up @@ -85,6 +86,8 @@
#define FP_EX_DIVZERO FE_DIVBYZERO
#define FP_EX_INEXACT FE_INEXACT

#define _FP_TININESS_AFTER_ROUNDING 1

#ifdef __riscv_flen
#define FP_INIT_ROUNDMODE \
do { \
Expand Down

0 comments on commit 7ba28f3

Please sign in to comment.