📄 _q_qtou.c
字号:
#ifndef lintstatic char sccsid[] = "@(#)_Q_qtou.c 1.1 92/07/30 SMI";#endif/* * Copyright (c) 1988 by Sun Microsystems, Inc. */#include "_Qquad.h"#include "_Qglobals.h"extern _Q_get_rp_rd(), _Q_set_exception();#define FUNC qtouunsigned_Q_/**/FUNC/**/(x) QUAD x;{ unpacked px; QUAD c; unsigned u,*pc = (unsigned*)&c,r; pc[0] = 0x401e0000; pc[1]=pc[2]=pc[3]=0; /* c = 2^31 */ r = 0; u = *(int*)&x; /* high part of x */ if(u>=0x401e0000&&u<0x401f0000) { r = 0x80000000; x = _Q_sub(x,c); } _fp_current_exceptions = 0; fp_direction = fp_tozero; _fp_unpack(&px,&x,fp_op_extended); _fp_pack(&px,&u,fp_op_integer); _Q_set_exception(_fp_current_exceptions); return (u|r);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -