[1/3] riscv/include/fenv.h: Use shared fenv.h.

Message ID 1567004819-5473-2-git-send-email-joel@rtems.org
State Accepted
Commit c7113713845eaf31cbc44bdf12b2001414c92cbb
Headers show
Series
  • fenv support round 2
Related show

Commit Message

Joel Sherrill Aug. 28, 2019, 3:06 p.m.
From: Joel Sherrill <joel@rtems.org>


	libc/include/fenv.h was a direct copy of this file.
---
 newlib/libc/machine/riscv/include/fenv.h | 42 --------------------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 newlib/libc/machine/riscv/include/fenv.h

-- 
1.8.3.1

Comments

Kito Cheng Aug. 29, 2019, 11:49 a.m. | #1
LGTM :)

On Wed, Aug 28, 2019 at 11:07 PM <joel@rtems.org> wrote:
>

> From: Joel Sherrill <joel@rtems.org>

>

>         libc/include/fenv.h was a direct copy of this file.

> ---

>  newlib/libc/machine/riscv/include/fenv.h | 42 --------------------------------

>  1 file changed, 42 deletions(-)

>  delete mode 100644 newlib/libc/machine/riscv/include/fenv.h

>

> diff --git a/newlib/libc/machine/riscv/include/fenv.h b/newlib/libc/machine/riscv/include/fenv.h

> deleted file mode 100644

> index 4795cc9..0000000

> --- a/newlib/libc/machine/riscv/include/fenv.h

> +++ /dev/null

> @@ -1,42 +0,0 @@

> -/* Copyright (c) 2017  SiFive Inc. All rights reserved.

> -

> -   This copyrighted material is made available to anyone wishing to use,

> -   modify, copy, or redistribute it subject to the terms and conditions

> -   of the FreeBSD License.   This program is distributed in the hope that

> -   it will be useful, but WITHOUT ANY WARRANTY expressed or implied,

> -   including the implied warranties of MERCHANTABILITY or FITNESS FOR

> -   A PARTICULAR PURPOSE.  A copy of this license is available at

> -   http://www.opensource.org/licenses.

> -*/

> -

> -#ifndef _FENV_H

> -#define _FENV_H

> -

> -#include <sys/fenv.h>

> -

> -#ifdef __cplusplus

> -extern "C" {

> -#endif

> -

> -/* Exception */

> -int feclearexcept(int excepts);

> -int fegetexceptflag(fexcept_t *flagp, int excepts);

> -int feraiseexcept(int excepts);

> -int fesetexceptflag(const fexcept_t *flagp, int excepts);

> -int fetestexcept(int excepts);

> -

> -/* Rounding mode */

> -int fegetround(void);

> -int fesetround(int rounding_mode);

> -

> -/* Float environment */

> -int fegetenv(fenv_t *envp);

> -int feholdexcept(fenv_t *envp);

> -int fesetenv(const fenv_t *envp);

> -int feupdateenv(const fenv_t *envp);

> -

> -#ifdef __cplusplus

> -}

> -#endif

> -

> -#endif

> --

> 1.8.3.1

>

Patch

diff --git a/newlib/libc/machine/riscv/include/fenv.h b/newlib/libc/machine/riscv/include/fenv.h
deleted file mode 100644
index 4795cc9..0000000
--- a/newlib/libc/machine/riscv/include/fenv.h
+++ /dev/null
@@ -1,42 +0,0 @@ 
-/* Copyright (c) 2017  SiFive Inc. All rights reserved.
-
-   This copyrighted material is made available to anyone wishing to use,
-   modify, copy, or redistribute it subject to the terms and conditions
-   of the FreeBSD License.   This program is distributed in the hope that
-   it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
-   including the implied warranties of MERCHANTABILITY or FITNESS FOR
-   A PARTICULAR PURPOSE.  A copy of this license is available at
-   http://www.opensource.org/licenses.
-*/
-
-#ifndef _FENV_H
-#define _FENV_H
-
-#include <sys/fenv.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Exception */
-int feclearexcept(int excepts);
-int fegetexceptflag(fexcept_t *flagp, int excepts);
-int feraiseexcept(int excepts);
-int fesetexceptflag(const fexcept_t *flagp, int excepts);
-int fetestexcept(int excepts);
-
-/* Rounding mode */
-int fegetround(void);
-int fesetround(int rounding_mode);
-
-/* Float environment */
-int fegetenv(fenv_t *envp);
-int feholdexcept(fenv_t *envp);
-int fesetenv(const fenv_t *envp);
-int feupdateenv(const fenv_t *envp);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif