[0/1] Fenv support for SPARC

Message ID 20200603233627.31827-1-eshandhawan51@gmail.com
Headers show
Series
  • Fenv support for SPARC
Related show

Message

Torbjörn SVENSSON via Newlib June 3, 2020, 11:36 p.m.
The Patch adds fenv support for SPARC.

The implemenation files are taken from NetBSD.

Eshan dhawan (1):
  SPARC fenv support

 newlib/configure.host                       |   1 +
 newlib/libc/machine/sparc/sys/fenv.h        |  85 +++++
 newlib/libm/machine/configure.in            |   1 +
 newlib/libm/machine/sparc/Makefile.am       |  21 ++
 newlib/libm/machine/sparc/configure.in      |  11 +
 newlib/libm/machine/sparc/feclearexcept.c   |   7 +
 newlib/libm/machine/sparc/fegetenv.c        |   7 +
 newlib/libm/machine/sparc/fegetexceptflag.c |   7 +
 newlib/libm/machine/sparc/fegetround.c      |   7 +
 newlib/libm/machine/sparc/feholdexcept.c    |   7 +
 newlib/libm/machine/sparc/fenv.c            | 350 ++++++++++++++++++++
 newlib/libm/machine/sparc/feraiseexcept.c   |   7 +
 newlib/libm/machine/sparc/fesetenv.c        |   7 +
 newlib/libm/machine/sparc/fesetexceptflag.c |   7 +
 newlib/libm/machine/sparc/fesetround.c      |   7 +
 newlib/libm/machine/sparc/fetestexcept.c    |   7 +
 newlib/libm/machine/sparc/feupdateenv.c     |   7 +
 17 files changed, 546 insertions(+)
 create mode 100644 newlib/libc/machine/sparc/sys/fenv.h
 create mode 100644 newlib/libm/machine/sparc/Makefile.am
 create mode 100644 newlib/libm/machine/sparc/configure.in
 create mode 100644 newlib/libm/machine/sparc/feclearexcept.c
 create mode 100644 newlib/libm/machine/sparc/fegetenv.c
 create mode 100644 newlib/libm/machine/sparc/fegetexceptflag.c
 create mode 100644 newlib/libm/machine/sparc/fegetround.c
 create mode 100644 newlib/libm/machine/sparc/feholdexcept.c
 create mode 100644 newlib/libm/machine/sparc/fenv.c
 create mode 100644 newlib/libm/machine/sparc/feraiseexcept.c
 create mode 100644 newlib/libm/machine/sparc/fesetenv.c
 create mode 100644 newlib/libm/machine/sparc/fesetexceptflag.c
 create mode 100644 newlib/libm/machine/sparc/fesetround.c
 create mode 100644 newlib/libm/machine/sparc/fetestexcept.c
 create mode 100644 newlib/libm/machine/sparc/feupdateenv.c

-- 
2.17.1

Comments

Joel Sherrill June 4, 2020, 7:14 p.m. | #1
I should add that we although just tested on 32-bit SPARC (V7/V8),
it appears to have 64-bit (V9) support. Eshan plans to follow up with
a patch similar to add that which will be structurally similar to the
x86_64/i386 relationship for sharing the implementation.

--joel

On Wed, Jun 3, 2020 at 6:36 PM Eshan dhawan <eshandhawan51@gmail.com> wrote:

> The Patch adds fenv support for SPARC.

>

> The implemenation files are taken from NetBSD.

>

> Eshan dhawan (1):

>   SPARC fenv support

>

>  newlib/configure.host                       |   1 +

>  newlib/libc/machine/sparc/sys/fenv.h        |  85 +++++

>  newlib/libm/machine/configure.in            |   1 +

>  newlib/libm/machine/sparc/Makefile.am       |  21 ++

>  newlib/libm/machine/sparc/configure.in      |  11 +

>  newlib/libm/machine/sparc/feclearexcept.c   |   7 +

>  newlib/libm/machine/sparc/fegetenv.c        |   7 +

>  newlib/libm/machine/sparc/fegetexceptflag.c |   7 +

>  newlib/libm/machine/sparc/fegetround.c      |   7 +

>  newlib/libm/machine/sparc/feholdexcept.c    |   7 +

>  newlib/libm/machine/sparc/fenv.c            | 350 ++++++++++++++++++++

>  newlib/libm/machine/sparc/feraiseexcept.c   |   7 +

>  newlib/libm/machine/sparc/fesetenv.c        |   7 +

>  newlib/libm/machine/sparc/fesetexceptflag.c |   7 +

>  newlib/libm/machine/sparc/fesetround.c      |   7 +

>  newlib/libm/machine/sparc/fetestexcept.c    |   7 +

>  newlib/libm/machine/sparc/feupdateenv.c     |   7 +

>  17 files changed, 546 insertions(+)

>  create mode 100644 newlib/libc/machine/sparc/sys/fenv.h

>  create mode 100644 newlib/libm/machine/sparc/Makefile.am

>  create mode 100644 newlib/libm/machine/sparc/configure.in

>  create mode 100644 newlib/libm/machine/sparc/feclearexcept.c

>  create mode 100644 newlib/libm/machine/sparc/fegetenv.c

>  create mode 100644 newlib/libm/machine/sparc/fegetexceptflag.c

>  create mode 100644 newlib/libm/machine/sparc/fegetround.c

>  create mode 100644 newlib/libm/machine/sparc/feholdexcept.c

>  create mode 100644 newlib/libm/machine/sparc/fenv.c

>  create mode 100644 newlib/libm/machine/sparc/feraiseexcept.c

>  create mode 100644 newlib/libm/machine/sparc/fesetenv.c

>  create mode 100644 newlib/libm/machine/sparc/fesetexceptflag.c

>  create mode 100644 newlib/libm/machine/sparc/fesetround.c

>  create mode 100644 newlib/libm/machine/sparc/fetestexcept.c

>  create mode 100644 newlib/libm/machine/sparc/feupdateenv.c

>

> --

> 2.17.1

>

>