Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
glibc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
dc312cb
aout
argp
assert
bare
bits
catgets
conf
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf
gmon
gnulib
grp
hesiod
hurd
iconv
iconvdata
include
inet
intl
io
libio
linuxthreads
linuxthreads_db
locale
localedata
login
mach
malloc
manual
math
misc
nis
nscd
nss
po
posix
pwd
resolv
resource
rpm
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string
sunrpc
sysdeps
alpha
am29k
arm
cris
generic
gnu
hppa
i386
i860
i960
ia64
ieee754
m68k
m88k
mach
mips
bits
elf
fpu
e_sqrt.c
e_sqrtf.c
fclrexcpt.c
fedisblxcpt.c
feenablxcpt.c
fegetenv.c
fegetexcept.c
fegetround.c
feholdexcpt.c
fenv_libc.h
fesetenv.c
fesetround.c
feupdateenv.c
fgetexcptflg.c
fraiseexcpt.c
fsetexcptflg.c
ftestexcept.c
libm-test-ulps
mips64
mipsel
soft-fp
sys
.cvsignore
Dist
Implies
Makefile
__longjmp.c
abort-instr.h
add_n.S
addmul_1.S
atomicity.h
bsd-_setjmp.S
bsd-setjmp.S
dl-dtprocnum.h
dl-machine.h
fpregdef.h
fpu_control.h
gccframe.h
init-first.c
lshift.S
machine-gmon.h
memcpy.S
memset.S
memusage.h
mul_1.S
regdef.h
rshift.S
setjmp.S
setjmp_aux.c
sgidefs.h
stackinfo.h
sub_n.S
submul_1.S
posix
powerpc
pthread
rs6000
s390
sh
sparc
standalone
tahoe
unix
vax
wordsize-32
wordsize-64
x86_64
z8000
sysvipc
termios
time
timezone
wcsmbs
wctype
.cvsignore
BUGS
CONFORMANCE
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
FAQ
FAQ.in
INSTALL
INTERFACE
LICENSES
Make-dist
MakeTAGS
Makeconfig
Makefile
Makefile.in
Makerules
NAMESPACE
NEWS
NOTES
PROJECTS
README
README-alpha
README.libm
README.template
Rules
Versions.def
abi-tags
aclocal.m4
config-name.in
config.h.in
config.make.in
configure
configure.in
cppflags-iterator.mk
extra-lib.mk
glibcbug.in
o-iterator.mk
shlib-versions
test-skeleton.c
version.h
Breadcrumbs
glibc
/
sysdeps
/
mips
/
fpu
/
fesetenv.c
Blame
Blame
Latest commit
History
History
43 lines (34 loc) · 1.35 KB
Breadcrumbs
glibc
/
sysdeps
/
mips
/
fpu
/
fesetenv.c
Top
File metadata and controls
Code
Blame
43 lines (34 loc) · 1.35 KB
Raw
/* Install given floating-point environment. Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@suse.de>, 1998. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include <fenv.h> #include <fpu_control.h> int fesetenv (const fenv_t *envp) { fpu_control_t cw; /* Read first current state to flush fpu pipeline. */ _FPU_GETCW (cw); if (envp == FE_DFL_ENV) _FPU_SETCW (_FPU_DEFAULT); else if (envp == FE_NOMASK_ENV) _FPU_SETCW (_FPU_IEEE); else _FPU_SETCW (envp->__fp_control_register); /* Success. */ return 0; } libm_hidden_def (fesetenv)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
You can’t perform that action at this time.