📄 x-cvsweb-markup(46)
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><!-- hennerik CVSweb $Revision: 1.93 $ --><TITLE>glibc.dead/soft-fp/op-1.h - view - 1.1.1.2</TITLE></HEAD><BODY BGCOLOR="#eeeeee"><table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#9999ee"><tr valign=bottom><td><a href="op-1.h#rev1.1.1.2"><IMG SRC="/icons/back.gif" ALT="[BACK]" BORDER="0" WIDTH="20" HEIGHT="22"></a> <b>Return to <A HREF="op-1.h#rev1.1.1.2">op-1.h</A> CVS log</b> <IMG SRC="/icons/text.gif" ALT="[TXT]" BORDER="0" WIDTH="20" HEIGHT="22"></td><td align=right><IMG SRC="/icons/dir.gif" ALT="[DIR]" BORDER="0" WIDTH="20" HEIGHT="22"> <b>Up to <a href="/cgi-bin/cvsweb.cgi/#dirlist">[Development]</a> / <a href="/cgi-bin/cvsweb.cgi/glibc.dead/#dirlist">glibc.dead</a> / <a href="/cgi-bin/cvsweb.cgi/glibc.dead/soft-fp/#dirlist">soft-fp</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cgi-bin/cvsweb.cgi/#dirlist">[Development]</a> / <a href="/cgi-bin/cvsweb.cgi/glibc.dead/#dirlist">glibc.dead</a> / <a href="/cgi-bin/cvsweb.cgi/glibc.dead/soft-fp/#dirlist">soft-fp</a> / <a href="/cgi-bin/cvsweb.cgi/glibc.dead/soft-fp/op-1.h">op-1.h</a> (<A HREF="/cgi-bin/cvsweb.cgi/~checkout~/glibc.dead/soft-fp/op-1.h?rev=1.1.1.2" target="cvs_checkout" onClick="window.open('/cgi-bin/cvsweb.cgi/~checkout~/glibc.dead/soft-fp/op-1.h?rev=1.1.1.2','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR>Revision <B>1.1.1.2</B> <i>(vendor branch)</i>, <i>Thu Aug 2 11:38:45 2001 UTC</i> (3 years, 4 months ago) by <i>aj</i><BR>Branch: <b>glibc-2001-09-13, MAIN</b><BR>CVS Tags: <b>glibc-pre-merge-2001-09-13, glibc-2001-08-02, HEAD, GLIBC_MAIN</b><BR>Changes since <b>1.1.1.1: +8 -8 lines</b><PRE>Import from main glibc repository at 2001-08-02.</PRE></td></tr></table><HR noshade><PRE>/* Software floating-point emulation. Basic one-word fraction declaration and manipulation. Copyright (C) 1997,1998,1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (<A HREF="mailto:rth@cygnus.com">rth@cygnus.com</A>), Jakub Jelinek (<A HREF="mailto:jj@ultra.linux.cz">jj@ultra.linux.cz</A>), David S. Miller (<A HREF="mailto:davem@redhat.com">davem@redhat.com</A>) and Peter Maydell (<A HREF="mailto:pmaydell@chiark.greenend.org.uk">pmaydell@chiark.greenend.org.uk</A>). 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. */#define _FP_FRAC_DECL_1(X) _FP_W_TYPE X##_f#define _FP_FRAC_COPY_1(D,S) (D##_f = S##_f)#define _FP_FRAC_SET_1(X,I) (X##_f = I)#define _FP_FRAC_HIGH_1(X) (X##_f)#define _FP_FRAC_LOW_1(X) (X##_f)#define _FP_FRAC_WORD_1(X,w) (X##_f)#define _FP_FRAC_ADDI_1(X,I) (X##_f += I)#define _FP_FRAC_SLL_1(X,N) \ do { \ if (__builtin_constant_p(N) && (N) == 1) \ X##_f += X##_f; \ else \ X##_f <<= (N); \ } while (0)#define _FP_FRAC_SRL_1(X,N) (X##_f >>= N)/* Right shift with sticky-lsb. */#define _FP_FRAC_SRS_1(X,N,sz) __FP_FRAC_SRS_1(X##_f, N, sz)#define __FP_FRAC_SRS_1(X,N,sz) \ (X = (X >> (N) | (__builtin_constant_p(N) && (N) == 1 \ ? X & 1 : (X << (_FP_W_TYPE_SIZE - (N))) != 0)))#define _FP_FRAC_ADD_1(R,X,Y) (R##_f = X##_f + Y##_f)#define _FP_FRAC_SUB_1(R,X,Y) (R##_f = X##_f - Y##_f)#define _FP_FRAC_DEC_1(X,Y) (X##_f -= Y##_f)#define _FP_FRAC_CLZ_1(z, X) __FP_CLZ(z, X##_f)/* Predicates */#define _FP_FRAC_NEGP_1(X) ((_FP_WS_TYPE)X##_f < 0)#define _FP_FRAC_ZEROP_1(X) (X##_f == 0)#define _FP_FRAC_OVERP_1(fs,X) (X##_f & _FP_OVERFLOW_##fs)#define _FP_FRAC_EQ_1(X, Y) (X##_f == Y##_f)#define _FP_FRAC_GE_1(X, Y) (X##_f >= Y##_f)#define _FP_FRAC_GT_1(X, Y) (X##_f > Y##_f)#define _FP_ZEROFRAC_1 0#define _FP_MINFRAC_1 1#define _FP_MAXFRAC_1 (~(_FP_WS_TYPE)0)/* * Unpack the raw bits of a native fp value. Do not classify or * normalize the data. */#define _FP_UNPACK_RAW_1(fs, X, val) \ do { \ union _FP_UNION_##fs _flo; _flo.flt = (val); \ \ X##_f = _flo.bits.frac; \ X##_e = _flo.bits.exp; \ X##_s = _flo.bits.sign; \ } while (0)#define _FP_UNPACK_RAW_1_P(fs, X, val) \ do { \ union _FP_UNION_##fs *_flo = \ (union _FP_UNION_##fs *)(val); \ \ X##_f = _flo->bits.frac; \ X##_e = _flo->bits.exp; \ X##_s = _flo->bits.sign; \ } while (0)/* * Repack the raw bits of a native fp value.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -