Path: blob/master/arch/parisc/math-emu/sgl_float.h
10817 views
/*1* Linux/PA-RISC Project (http://www.parisc-linux.org/)2*3* Floating-point emulation code4* Copyright (C) 2001 Hewlett-Packard (Paul Bame) <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2, or (at your option)9* any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/2021#ifdef __NO_PA_HDRS22PA header file -- do not include this header file for non-PA builds.23#endif2425/* 32-bit word grabbing functions */26#define Sgl_firstword(value) Sall(value)27#define Sgl_secondword(value) dummy_location28#define Sgl_thirdword(value) dummy_location29#define Sgl_fourthword(value) dummy_location3031#define Sgl_sign(object) Ssign(object)32#define Sgl_exponent(object) Sexponent(object)33#define Sgl_signexponent(object) Ssignexponent(object)34#define Sgl_mantissa(object) Smantissa(object)35#define Sgl_exponentmantissa(object) Sexponentmantissa(object)36#define Sgl_all(object) Sall(object)3738/* sgl_and_signs ANDs the sign bits of each argument and puts the result39* into the first argument. sgl_or_signs ors those same sign bits */40#define Sgl_and_signs( src1dst, src2) \41Sall(src1dst) = (Sall(src2)|~((unsigned int)1<<31)) & Sall(src1dst)42#define Sgl_or_signs( src1dst, src2) \43Sall(src1dst) = (Sall(src2)&((unsigned int)1<<31)) | Sall(src1dst)4445/* The hidden bit is always the low bit of the exponent */46#define Sgl_clear_exponent_set_hidden(srcdst) Deposit_sexponent(srcdst,1)47#define Sgl_clear_signexponent_set_hidden(srcdst) \48Deposit_ssignexponent(srcdst,1)49#define Sgl_clear_sign(srcdst) Sall(srcdst) &= ~((unsigned int)1<<31)50#define Sgl_clear_signexponent(srcdst) Sall(srcdst) &= 0x007fffff5152/* varamount must be less than 32 for the next three functions */53#define Sgl_rightshift(srcdst, varamount) \54Sall(srcdst) >>= varamount55#define Sgl_leftshift(srcdst, varamount) \56Sall(srcdst) <<= varamount57#define Sgl_rightshift_exponentmantissa(srcdst, varamount) \58Sall(srcdst) = \59(Sexponentmantissa(srcdst) >> varamount) | \60(Sall(srcdst) & ((unsigned int)1<<31))6162#define Sgl_leftshiftby1_withextent(left,right,result) \63Shiftdouble(Sall(left),Extall(right),31,Sall(result))6465#define Sgl_rightshiftby1_withextent(left,right,dst) \66Shiftdouble(Sall(left),Extall(right),1,Extall(right))67#define Sgl_arithrightshiftby1(srcdst) \68Sall(srcdst) = (int)Sall(srcdst) >> 16970/* Sign extend the sign bit with an integer destination */71#define Sgl_signextendedsign(value) Ssignedsign(value)7273#define Sgl_isone_hidden(sgl_value) (Shidden(sgl_value))74#define Sgl_increment(sgl_value) Sall(sgl_value) += 175#define Sgl_increment_mantissa(sgl_value) \76Deposit_smantissa(sgl_value,sgl_value+1)77#define Sgl_decrement(sgl_value) Sall(sgl_value) -= 17879#define Sgl_isone_sign(sgl_value) (Is_ssign(sgl_value)!=0)80#define Sgl_isone_hiddenoverflow(sgl_value) \81(Is_shiddenoverflow(sgl_value)!=0)82#define Sgl_isone_lowmantissa(sgl_value) (Is_slow(sgl_value)!=0)83#define Sgl_isone_signaling(sgl_value) (Is_ssignaling(sgl_value)!=0)84#define Sgl_is_signalingnan(sgl_value) (Ssignalingnan(sgl_value)==0x1ff)85#define Sgl_isnotzero(sgl_value) (Sall(sgl_value)!=0)86#define Sgl_isnotzero_hiddenhigh7mantissa(sgl_value) \87(Shiddenhigh7mantissa(sgl_value)!=0)88#define Sgl_isnotzero_low4(sgl_value) (Slow4(sgl_value)!=0)89#define Sgl_isnotzero_exponent(sgl_value) (Sexponent(sgl_value)!=0)90#define Sgl_isnotzero_mantissa(sgl_value) (Smantissa(sgl_value)!=0)91#define Sgl_isnotzero_exponentmantissa(sgl_value) \92(Sexponentmantissa(sgl_value)!=0)93#define Sgl_iszero(sgl_value) (Sall(sgl_value)==0)94#define Sgl_iszero_signaling(sgl_value) (Is_ssignaling(sgl_value)==0)95#define Sgl_iszero_hidden(sgl_value) (Is_shidden(sgl_value)==0)96#define Sgl_iszero_hiddenoverflow(sgl_value) \97(Is_shiddenoverflow(sgl_value)==0)98#define Sgl_iszero_hiddenhigh3mantissa(sgl_value) \99(Shiddenhigh3mantissa(sgl_value)==0)100#define Sgl_iszero_hiddenhigh7mantissa(sgl_value) \101(Shiddenhigh7mantissa(sgl_value)==0)102#define Sgl_iszero_sign(sgl_value) (Is_ssign(sgl_value)==0)103#define Sgl_iszero_exponent(sgl_value) (Sexponent(sgl_value)==0)104#define Sgl_iszero_mantissa(sgl_value) (Smantissa(sgl_value)==0)105#define Sgl_iszero_exponentmantissa(sgl_value) \106(Sexponentmantissa(sgl_value)==0)107#define Sgl_isinfinity_exponent(sgl_value) \108(Sgl_exponent(sgl_value)==SGL_INFINITY_EXPONENT)109#define Sgl_isnotinfinity_exponent(sgl_value) \110(Sgl_exponent(sgl_value)!=SGL_INFINITY_EXPONENT)111#define Sgl_isinfinity(sgl_value) \112(Sgl_exponent(sgl_value)==SGL_INFINITY_EXPONENT && \113Sgl_mantissa(sgl_value)==0)114#define Sgl_isnan(sgl_value) \115(Sgl_exponent(sgl_value)==SGL_INFINITY_EXPONENT && \116Sgl_mantissa(sgl_value)!=0)117#define Sgl_isnotnan(sgl_value) \118(Sgl_exponent(sgl_value)!=SGL_INFINITY_EXPONENT || \119Sgl_mantissa(sgl_value)==0)120#define Sgl_islessthan(sgl_op1,sgl_op2) \121(Sall(sgl_op1) < Sall(sgl_op2))122#define Sgl_isgreaterthan(sgl_op1,sgl_op2) \123(Sall(sgl_op1) > Sall(sgl_op2))124#define Sgl_isnotlessthan(sgl_op1,sgl_op2) \125(Sall(sgl_op1) >= Sall(sgl_op2))126#define Sgl_isequal(sgl_op1,sgl_op2) \127(Sall(sgl_op1) == Sall(sgl_op2))128129#define Sgl_leftshiftby8(sgl_value) \130Sall(sgl_value) <<= 8131#define Sgl_leftshiftby4(sgl_value) \132Sall(sgl_value) <<= 4133#define Sgl_leftshiftby3(sgl_value) \134Sall(sgl_value) <<= 3135#define Sgl_leftshiftby2(sgl_value) \136Sall(sgl_value) <<= 2137#define Sgl_leftshiftby1(sgl_value) \138Sall(sgl_value) <<= 1139#define Sgl_rightshiftby1(sgl_value) \140Sall(sgl_value) >>= 1141#define Sgl_rightshiftby4(sgl_value) \142Sall(sgl_value) >>= 4143#define Sgl_rightshiftby8(sgl_value) \144Sall(sgl_value) >>= 8145146#define Sgl_ismagnitudeless(signlessleft,signlessright) \147/* unsigned int signlessleft, signlessright; */ \148(signlessleft < signlessright)149150151#define Sgl_copytoint_exponentmantissa(source,dest) \152dest = Sexponentmantissa(source)153154/* A quiet NaN has the high mantissa bit clear and at least on other (in this155* case the adjacent bit) bit set. */156#define Sgl_set_quiet(sgl_value) Deposit_shigh2mantissa(sgl_value,1)157#define Sgl_set_exponent(sgl_value,exp) Deposit_sexponent(sgl_value,exp)158159#define Sgl_set_mantissa(dest,value) Deposit_smantissa(dest,value)160#define Sgl_set_exponentmantissa(dest,value) \161Deposit_sexponentmantissa(dest,value)162163/* An infinity is represented with the max exponent and a zero mantissa */164#define Sgl_setinfinity_exponent(sgl_value) \165Deposit_sexponent(sgl_value,SGL_INFINITY_EXPONENT)166#define Sgl_setinfinity_exponentmantissa(sgl_value) \167Deposit_sexponentmantissa(sgl_value, \168(SGL_INFINITY_EXPONENT << (32-(1+SGL_EXP_LENGTH))))169#define Sgl_setinfinitypositive(sgl_value) \170Sall(sgl_value) = (SGL_INFINITY_EXPONENT << (32-(1+SGL_EXP_LENGTH)))171#define Sgl_setinfinitynegative(sgl_value) \172Sall(sgl_value) = (SGL_INFINITY_EXPONENT << (32-(1+SGL_EXP_LENGTH))) \173| ((unsigned int)1<<31)174#define Sgl_setinfinity(sgl_value,sign) \175Sall(sgl_value) = (SGL_INFINITY_EXPONENT << (32-(1+SGL_EXP_LENGTH))) | \176((unsigned int)sign << 31)177#define Sgl_sethigh4bits(sgl_value, extsign) \178Deposit_shigh4(sgl_value,extsign)179#define Sgl_set_sign(sgl_value,sign) Deposit_ssign(sgl_value,sign)180#define Sgl_invert_sign(sgl_value) \181Deposit_ssign(sgl_value,~Ssign(sgl_value))182#define Sgl_setone_sign(sgl_value) Deposit_ssign(sgl_value,1)183#define Sgl_setone_lowmantissa(sgl_value) Deposit_slow(sgl_value,1)184#define Sgl_setzero_sign(sgl_value) Sall(sgl_value) &= 0x7fffffff185#define Sgl_setzero_exponent(sgl_value) Sall(sgl_value) &= 0x807fffff186#define Sgl_setzero_mantissa(sgl_value) Sall(sgl_value) &= 0xff800000187#define Sgl_setzero_exponentmantissa(sgl_value) Sall(sgl_value) &= 0x80000000188#define Sgl_setzero(sgl_value) Sall(sgl_value) = 0189#define Sgl_setnegativezero(sgl_value) Sall(sgl_value) = (unsigned int)1 << 31190191/* Use following macro for both overflow & underflow conditions */192#define ovfl -193#define unfl +194#define Sgl_setwrapped_exponent(sgl_value,exponent,op) \195Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))196197#define Sgl_setlargestpositive(sgl_value) \198Sall(sgl_value) = ((SGL_EMAX+SGL_BIAS) << (32-(1+SGL_EXP_LENGTH))) \199| ((1<<(32-(1+SGL_EXP_LENGTH))) - 1 )200#define Sgl_setlargestnegative(sgl_value) \201Sall(sgl_value) = ((SGL_EMAX+SGL_BIAS) << (32-(1+SGL_EXP_LENGTH))) \202| ((1<<(32-(1+SGL_EXP_LENGTH))) - 1 ) \203| ((unsigned int)1<<31)204205#define Sgl_setnegativeinfinity(sgl_value) \206Sall(sgl_value) = \207((1<<SGL_EXP_LENGTH) | SGL_INFINITY_EXPONENT) << (32-(1+SGL_EXP_LENGTH))208#define Sgl_setlargest(sgl_value,sign) \209Sall(sgl_value) = (unsigned int)sign << 31 | \210(((SGL_EMAX+SGL_BIAS) << (32-(1+SGL_EXP_LENGTH))) \211| ((1 << (32-(1+SGL_EXP_LENGTH))) - 1 ))212#define Sgl_setlargest_exponentmantissa(sgl_value) \213Sall(sgl_value) = Sall(sgl_value) & ((unsigned int)1<<31) | \214(((SGL_EMAX+SGL_BIAS) << (32-(1+SGL_EXP_LENGTH))) \215| ((1 << (32-(1+SGL_EXP_LENGTH))) - 1 ))216217/* The high bit is always zero so arithmetic or logical shifts will work. */218#define Sgl_right_align(srcdst,shift,extent) \219/* sgl_floating_point srcdst; int shift; extension extent */ \220if (shift < 32) { \221Extall(extent) = Sall(srcdst) << (32-(shift)); \222Sall(srcdst) >>= shift; \223} \224else { \225Extall(extent) = Sall(srcdst); \226Sall(srcdst) = 0; \227}228#define Sgl_hiddenhigh3mantissa(sgl_value) Shiddenhigh3mantissa(sgl_value)229#define Sgl_hidden(sgl_value) Shidden(sgl_value)230#define Sgl_lowmantissa(sgl_value) Slow(sgl_value)231232/* The left argument is never smaller than the right argument */233#define Sgl_subtract(sgl_left,sgl_right,sgl_result) \234Sall(sgl_result) = Sall(sgl_left) - Sall(sgl_right)235236/* Subtract right augmented with extension from left augmented with zeros and237* store into result and extension. */238#define Sgl_subtract_withextension(left,right,extent,result) \239/* sgl_floating_point left,right,result; extension extent */ \240Sgl_subtract(left,right,result); \241if((Extall(extent) = 0-Extall(extent))) \242Sall(result) = Sall(result)-1243244#define Sgl_addition(sgl_left,sgl_right,sgl_result) \245Sall(sgl_result) = Sall(sgl_left) + Sall(sgl_right)246247#define Sgl_xortointp1(left,right,result) \248result = Sall(left) XOR Sall(right);249250#define Sgl_xorfromintp1(left,right,result) \251Sall(result) = left XOR Sall(right)252253/* Need to Initialize */254#define Sgl_makequietnan(dest) \255Sall(dest) = ((SGL_EMAX+SGL_BIAS)+1)<< (32-(1+SGL_EXP_LENGTH)) \256| (1<<(32-(1+SGL_EXP_LENGTH+2)))257#define Sgl_makesignalingnan(dest) \258Sall(dest) = ((SGL_EMAX+SGL_BIAS)+1)<< (32-(1+SGL_EXP_LENGTH)) \259| (1<<(32-(1+SGL_EXP_LENGTH+1)))260261#define Sgl_normalize(sgl_opnd,exponent) \262while(Sgl_iszero_hiddenhigh7mantissa(sgl_opnd)) { \263Sgl_leftshiftby8(sgl_opnd); \264exponent -= 8; \265} \266if(Sgl_iszero_hiddenhigh3mantissa(sgl_opnd)) { \267Sgl_leftshiftby4(sgl_opnd); \268exponent -= 4; \269} \270while(Sgl_iszero_hidden(sgl_opnd)) { \271Sgl_leftshiftby1(sgl_opnd); \272exponent -= 1; \273}274275#define Sgl_setoverflow(sgl_opnd) \276/* set result to infinity or largest number */ \277switch (Rounding_mode()) { \278case ROUNDPLUS: \279if (Sgl_isone_sign(sgl_opnd)) { \280Sgl_setlargestnegative(sgl_opnd); \281} \282else { \283Sgl_setinfinitypositive(sgl_opnd); \284} \285break; \286case ROUNDMINUS: \287if (Sgl_iszero_sign(sgl_opnd)) { \288Sgl_setlargestpositive(sgl_opnd); \289} \290else { \291Sgl_setinfinitynegative(sgl_opnd); \292} \293break; \294case ROUNDNEAREST: \295Sgl_setinfinity_exponentmantissa(sgl_opnd); \296break; \297case ROUNDZERO: \298Sgl_setlargest_exponentmantissa(sgl_opnd); \299}300301#define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \302Sgl_clear_signexponent_set_hidden(opnd); \303if (exponent >= (1 - SGL_P)) { \304guard = (Sall(opnd) >> -exponent) & 1; \305if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \306inexact = guard | sticky; \307Sall(opnd) >>= (1-exponent); \308} \309else { \310guard = 0; \311sticky |= Sall(opnd); \312inexact = sticky; \313Sgl_setzero(opnd); \314}315316/*317* The fused multiply add instructions requires a single extended format,318* with 48 bits of mantissa.319*/320#define SGLEXT_THRESHOLD 48321322#define Sglext_setzero(valA,valB) \323Sextallp1(valA) = 0; Sextallp2(valB) = 0324325#define Sglext_isnotzero_mantissap2(valB) (Sextallp2(valB)!=0)326#define Sglext_isone_lowp1(val) (Sextlowp1(val)!=0)327#define Sglext_isone_highp2(val) (Sexthighp2(val)!=0)328#define Sglext_isnotzero_low31p2(val) (Sextlow31p2(val)!=0)329#define Sglext_iszero(valA,valB) (Sextallp1(valA)==0 && Sextallp2(valB)==0)330331#define Sgl_copytoptr(src,destptr) *destptr = src332#define Sgl_copyfromptr(srcptr,dest) dest = *srcptr333#define Sglext_copy(srca,srcb,desta,destb) \334Sextallp1(desta) = Sextallp1(srca); \335Sextallp2(destb) = Sextallp2(srcb)336#define Sgl_copyto_sglext(src1,dest1,dest2) \337Sextallp1(dest1) = Sall(src1); Sextallp2(dest2) = 0338339#define Sglext_swap_lower(leftp2,rightp2) \340Sextallp2(leftp2) = Sextallp2(leftp2) XOR Sextallp2(rightp2); \341Sextallp2(rightp2) = Sextallp2(leftp2) XOR Sextallp2(rightp2); \342Sextallp2(leftp2) = Sextallp2(leftp2) XOR Sextallp2(rightp2)343344#define Sglext_setone_lowmantissap2(value) Deposit_dlowp2(value,1)345346/* The high bit is always zero so arithmetic or logical shifts will work. */347#define Sglext_right_align(srcdstA,srcdstB,shift) \348{int shiftamt, sticky; \349shiftamt = shift % 32; \350sticky = 0; \351switch (shift/32) { \352case 0: if (shiftamt > 0) { \353sticky = Sextallp2(srcdstB) << 32 - (shiftamt); \354Variable_shift_double(Sextallp1(srcdstA), \355Sextallp2(srcdstB),shiftamt,Sextallp2(srcdstB)); \356Sextallp1(srcdstA) >>= shiftamt; \357} \358break; \359case 1: if (shiftamt > 0) { \360sticky = (Sextallp1(srcdstA) << 32 - (shiftamt)) | \361Sextallp2(srcdstB); \362} \363else { \364sticky = Sextallp2(srcdstB); \365} \366Sextallp2(srcdstB) = Sextallp1(srcdstA) >> shiftamt; \367Sextallp1(srcdstA) = 0; \368break; \369} \370if (sticky) Sglext_setone_lowmantissap2(srcdstB); \371}372373/* The left argument is never smaller than the right argument */374#define Sglext_subtract(lefta,leftb,righta,rightb,resulta,resultb) \375if( Sextallp2(rightb) > Sextallp2(leftb) ) Sextallp1(lefta)--; \376Sextallp2(resultb) = Sextallp2(leftb) - Sextallp2(rightb); \377Sextallp1(resulta) = Sextallp1(lefta) - Sextallp1(righta)378379#define Sglext_addition(lefta,leftb,righta,rightb,resulta,resultb) \380/* If the sum of the low words is less than either source, then \381* an overflow into the next word occurred. */ \382if ((Sextallp2(resultb) = Sextallp2(leftb)+Sextallp2(rightb)) < \383Sextallp2(rightb)) \384Sextallp1(resulta) = Sextallp1(lefta)+Sextallp1(righta)+1; \385else Sextallp1(resulta) = Sextallp1(lefta)+Sextallp1(righta)386387388#define Sglext_arithrightshiftby1(srcdstA,srcdstB) \389Shiftdouble(Sextallp1(srcdstA),Sextallp2(srcdstB),1,Sextallp2(srcdstB)); \390Sextallp1(srcdstA) = (int)Sextallp1(srcdstA) >> 1391392#define Sglext_leftshiftby8(valA,valB) \393Shiftdouble(Sextallp1(valA),Sextallp2(valB),24,Sextallp1(valA)); \394Sextallp2(valB) <<= 8395#define Sglext_leftshiftby4(valA,valB) \396Shiftdouble(Sextallp1(valA),Sextallp2(valB),28,Sextallp1(valA)); \397Sextallp2(valB) <<= 4398#define Sglext_leftshiftby3(valA,valB) \399Shiftdouble(Sextallp1(valA),Sextallp2(valB),29,Sextallp1(valA)); \400Sextallp2(valB) <<= 3401#define Sglext_leftshiftby2(valA,valB) \402Shiftdouble(Sextallp1(valA),Sextallp2(valB),30,Sextallp1(valA)); \403Sextallp2(valB) <<= 2404#define Sglext_leftshiftby1(valA,valB) \405Shiftdouble(Sextallp1(valA),Sextallp2(valB),31,Sextallp1(valA)); \406Sextallp2(valB) <<= 1407408#define Sglext_rightshiftby4(valueA,valueB) \409Shiftdouble(Sextallp1(valueA),Sextallp2(valueB),4,Sextallp2(valueB)); \410Sextallp1(valueA) >>= 4411#define Sglext_rightshiftby3(valueA,valueB) \412Shiftdouble(Sextallp1(valueA),Sextallp2(valueB),3,Sextallp2(valueB)); \413Sextallp1(valueA) >>= 3414#define Sglext_rightshiftby1(valueA,valueB) \415Shiftdouble(Sextallp1(valueA),Sextallp2(valueB),1,Sextallp2(valueB)); \416Sextallp1(valueA) >>= 1417418#define Sglext_xortointp1(left,right,result) Sgl_xortointp1(left,right,result)419#define Sglext_xorfromintp1(left,right,result) \420Sgl_xorfromintp1(left,right,result)421#define Sglext_copytoint_exponentmantissa(src,dest) \422Sgl_copytoint_exponentmantissa(src,dest)423#define Sglext_ismagnitudeless(signlessleft,signlessright) \424Sgl_ismagnitudeless(signlessleft,signlessright)425426#define Sglext_set_sign(dbl_value,sign) Sgl_set_sign(dbl_value,sign)427#define Sglext_clear_signexponent_set_hidden(srcdst) \428Sgl_clear_signexponent_set_hidden(srcdst)429#define Sglext_clear_signexponent(srcdst) Sgl_clear_signexponent(srcdst)430#define Sglext_clear_sign(srcdst) Sgl_clear_sign(srcdst)431#define Sglext_isone_hidden(dbl_value) Sgl_isone_hidden(dbl_value)432433#define Sglext_denormalize(opndp1,opndp2,exponent,is_tiny) \434{int sticky; \435is_tiny = TRUE; \436if (exponent == 0 && Sextallp2(opndp2)) { \437switch (Rounding_mode()) { \438case ROUNDPLUS: \439if (Sgl_iszero_sign(opndp1)) \440if (Sgl_isone_hiddenoverflow(opndp1 + 1)) \441is_tiny = FALSE; \442break; \443case ROUNDMINUS: \444if (Sgl_isone_sign(opndp1)) { \445if (Sgl_isone_hiddenoverflow(opndp1 + 1)) \446is_tiny = FALSE; \447} \448break; \449case ROUNDNEAREST: \450if (Sglext_isone_highp2(opndp2) && \451(Sglext_isone_lowp1(opndp1) || \452Sglext_isnotzero_low31p2(opndp2))) \453if (Sgl_isone_hiddenoverflow(opndp1 + 1)) \454is_tiny = FALSE; \455break; \456} \457} \458Sglext_clear_signexponent_set_hidden(opndp1); \459if (exponent >= (1-DBL_P)) { \460if (exponent >= -31) { \461if (exponent > -31) { \462sticky = Sextallp2(opndp2) << 31+exponent; \463Variable_shift_double(opndp1,opndp2,1-exponent,opndp2); \464Sextallp1(opndp1) >>= 1-exponent; \465} \466else { \467sticky = Sextallp2(opndp2); \468Sextallp2(opndp2) = Sextallp1(opndp1); \469Sextallp1(opndp1) = 0; \470} \471} \472else { \473sticky = (Sextallp1(opndp1) << 31+exponent) | \474Sextallp2(opndp2); \475Sextallp2(opndp2) = Sextallp1(opndp1) >> -31-exponent; \476Sextallp1(opndp1) = 0; \477} \478} \479else { \480sticky = Sextallp1(opndp1) | Sextallp2(opndp2); \481Sglext_setzero(opndp1,opndp2); \482} \483if (sticky) Sglext_setone_lowmantissap2(opndp2); \484exponent = 0; \485}486487488