source: trunk/libs/newlib/src/newlib/libm/machine/riscv/fe_dfl_env.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.1 KB
Line 
1/*
2  (c) Copyright 2017 Michael R. Neilly
3  All rights reserved.
4
5  Redistribution and use in source and binary forms, with or without
6  modification, are permitted provided that the following conditions
7  are met:
8
9  * Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11
12  * Redistributions in binary form must reproduce the above copyright
13  notice, this list of conditions and the following disclaimer in the
14  documentation and/or other materials provided with the distribution.
15
16  * Neither the names of the copyright holders nor the names of their
17  contributors may be used to endorse or promote products derived from
18  this software without specific prior written permission.
19
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  POSSIBILITY OF SUCH DAMAGE.
32*/
33
34#include <fenv.h>
35
36/* This implementation is intended to comply with the following
37 * specification:
38 *
39 * http://pubs.opengroup.org/onlinepubs/009695399
40 *
41 * "The <fenv.h> header shall define the following macro, which
42 * represents the default floating-point environment (that is, the one
43 * installed at program startup) and has type pointer to
44 * const-qualified fenv_t. It can be used as an argument to the
45 * functions within the <fenv.h> header that manage the floating-point
46 * environment.
47 *
48 * FE_DFL_ENV"
49 */
50
51const fenv_t fe_dfl_env = { 0 };
52const fenv_t *fe_dfl_env_p = &fe_dfl_env;
Note: See TracBrowser for help on using the repository browser.