003 File Manager
Current Path:
/usr/src/lib/libc/softfloat
usr
/
src
/
lib
/
libc
/
softfloat
/
📁
..
📄
Makefile.inc
(899 B)
📄
README.NetBSD
(377 B)
📄
README.txt
(1.62 KB)
📄
Symbol.map
(689 B)
📁
bits32
📁
bits64
📄
eqdf2.c
(392 B)
📄
eqsf2.c
(392 B)
📄
eqtf2.c
(435 B)
📄
fpgetmask.c
(1.9 KB)
📄
fpgetround.c
(1.91 KB)
📄
fpgetsticky.c
(1.91 KB)
📄
fpsetmask.c
(1.97 KB)
📄
fpsetround.c
(1.98 KB)
📄
fpsetsticky.c
(1.98 KB)
📄
gedf2.c
(398 B)
📄
gesf2.c
(398 B)
📄
getf2.c
(443 B)
📄
gexf2.c
(439 B)
📄
gtdf2.c
(387 B)
📄
gtsf2.c
(387 B)
📄
gttf2.c
(432 B)
📄
gtxf2.c
(428 B)
📄
ledf2.c
(398 B)
📄
lesf2.c
(398 B)
📄
letf2.c
(443 B)
📄
ltdf2.c
(391 B)
📄
ltsf2.c
(391 B)
📄
lttf2.c
(436 B)
📄
nedf2.c
(389 B)
📄
negdf2.c
(398 B)
📄
negsf2.c
(379 B)
📄
negtf2.c
(452 B)
📄
negxf2.c
(424 B)
📄
nesf2.c
(389 B)
📄
netf2.c
(434 B)
📄
nexf2.c
(430 B)
📄
softfloat-for-gcc.h
(5.21 KB)
📄
softfloat-history.txt
(1.77 KB)
📄
softfloat-source.txt
(16.75 KB)
📄
softfloat-specialize
(16.38 KB)
📄
softfloat.txt
(16.25 KB)
📁
templates
📄
timesoftfloat.c
(80.93 KB)
📄
timesoftfloat.txt
(6.35 KB)
📄
unorddf2.c
(606 B)
📄
unordsf2.c
(606 B)
Editing: fpsetround.c
/* $NetBSD: fpsetround.c,v 1.3 2008/04/28 20:23:00 martin Exp $ */ /*- * SPDX-License-Identifier: BSD-2-Clause-NetBSD * * Copyright (c) 1997 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Neil A. Carson and Mark Brinicombe * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); #include "namespace.h" #include <ieeefp.h> #ifdef SOFTFLOAT_FOR_GCC #include "softfloat-for-gcc.h" #endif #include "milieu.h" #include "softfloat.h" #ifdef __weak_alias __weak_alias(fpsetround,_fpsetround) #endif fp_rnd_t fpsetround(fp_rnd_t rnd_dir) { fp_rnd_t old; old = float_rounding_mode; float_rounding_mode = rnd_dir; return old; }
Upload File
Create Folder