亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? softfloat.c

?? linux-2.6.15.6
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*-------------------------------------------------------------------------------Returns the result of converting the 32-bit two's complement integer `a' tothe single-precision floating-point format.  The conversion is performedaccording to the IEC/IEEE Standard for Binary Floating-point Arithmetic.-------------------------------------------------------------------------------*/float32 int32_to_float32( int32 a ){    flag zSign;    if ( a == 0 ) return 0;    if ( a == 0x80000000 ) return packFloat32( 1, 0x9E, 0 );    zSign = ( a < 0 );    return normalizeRoundAndPackFloat32( zSign, 0x9C, zSign ? - a : a );}/*-------------------------------------------------------------------------------Returns the result of converting the 32-bit two's complement integer `a' tothe double-precision floating-point format.  The conversion is performedaccording to the IEC/IEEE Standard for Binary Floating-point Arithmetic.-------------------------------------------------------------------------------*/float64 int32_to_float64( int32 a ){    flag aSign;    uint32 absA;    int8 shiftCount;    bits64 zSig;    if ( a == 0 ) return 0;    aSign = ( a < 0 );    absA = aSign ? - a : a;    shiftCount = countLeadingZeros32( absA ) + 21;    zSig = absA;    return packFloat64( aSign, 0x432 - shiftCount, zSig<<shiftCount );}#ifdef FLOATX80/*-------------------------------------------------------------------------------Returns the result of converting the 32-bit two's complement integer `a'to the extended double-precision floating-point format.  The conversionis performed according to the IEC/IEEE Standard for Binary Floating-pointArithmetic.-------------------------------------------------------------------------------*/floatx80 int32_to_floatx80( int32 a ){    flag zSign;    uint32 absA;    int8 shiftCount;    bits64 zSig;    if ( a == 0 ) return packFloatx80( 0, 0, 0 );    zSign = ( a < 0 );    absA = zSign ? - a : a;    shiftCount = countLeadingZeros32( absA ) + 32;    zSig = absA;    return packFloatx80( zSign, 0x403E - shiftCount, zSig<<shiftCount );}#endif/*-------------------------------------------------------------------------------Returns the result of converting the single-precision floating-point value`a' to the 32-bit two's complement integer format.  The conversion isperformed according to the IEC/IEEE Standard for Binary Floating-pointArithmetic---which means in particular that the conversion is roundedaccording to the current rounding mode.  If `a' is a NaN, the largestpositive integer is returned.  Otherwise, if the conversion overflows, thelargest integer with the same sign as `a' is returned.-------------------------------------------------------------------------------*/int32 float32_to_int32( float32 a ){    flag aSign;    int16 aExp, shiftCount;    bits32 aSig;    bits64 zSig;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    aSign = extractFloat32Sign( a );    if ( ( aExp == 0x7FF ) && aSig ) aSign = 0;    if ( aExp ) aSig |= 0x00800000;    shiftCount = 0xAF - aExp;    zSig = aSig;    zSig <<= 32;    if ( 0 < shiftCount ) shift64RightJamming( zSig, shiftCount, &zSig );    return roundAndPackInt32( aSign, zSig );}/*-------------------------------------------------------------------------------Returns the result of converting the single-precision floating-point value`a' to the 32-bit two's complement integer format.  The conversion isperformed according to the IEC/IEEE Standard for Binary Floating-pointArithmetic, except that the conversion is always rounded toward zero.  If`a' is a NaN, the largest positive integer is returned.  Otherwise, if theconversion overflows, the largest integer with the same sign as `a' isreturned.-------------------------------------------------------------------------------*/int32 float32_to_int32_round_to_zero( float32 a ){    flag aSign;    int16 aExp, shiftCount;    bits32 aSig;    int32 z;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    aSign = extractFloat32Sign( a );    shiftCount = aExp - 0x9E;    if ( 0 <= shiftCount ) {        if ( a == 0xCF000000 ) return 0x80000000;        float_raise( float_flag_invalid );        if ( ! aSign || ( ( aExp == 0xFF ) && aSig ) ) return 0x7FFFFFFF;        return 0x80000000;    }    else if ( aExp <= 0x7E ) {        if ( aExp | aSig ) float_exception_flags |= float_flag_inexact;        return 0;    }    aSig = ( aSig | 0x00800000 )<<8;    z = aSig>>( - shiftCount );    if ( (bits32) ( aSig<<( shiftCount & 31 ) ) ) {        float_exception_flags |= float_flag_inexact;    }    return aSign ? - z : z;}/*-------------------------------------------------------------------------------Returns the result of converting the single-precision floating-point value`a' to the double-precision floating-point format.  The conversion isperformed according to the IEC/IEEE Standard for Binary Floating-pointArithmetic.-------------------------------------------------------------------------------*/float64 float32_to_float64( float32 a ){    flag aSign;    int16 aExp;    bits32 aSig;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    aSign = extractFloat32Sign( a );    if ( aExp == 0xFF ) {        if ( aSig ) return commonNaNToFloat64( float32ToCommonNaN( a ) );        return packFloat64( aSign, 0x7FF, 0 );    }    if ( aExp == 0 ) {        if ( aSig == 0 ) return packFloat64( aSign, 0, 0 );        normalizeFloat32Subnormal( aSig, &aExp, &aSig );        --aExp;    }    return packFloat64( aSign, aExp + 0x380, ( (bits64) aSig )<<29 );}#ifdef FLOATX80/*-------------------------------------------------------------------------------Returns the result of converting the single-precision floating-point value`a' to the extended double-precision floating-point format.  The conversionis performed according to the IEC/IEEE Standard for Binary Floating-pointArithmetic.-------------------------------------------------------------------------------*/floatx80 float32_to_floatx80( float32 a ){    flag aSign;    int16 aExp;    bits32 aSig;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    aSign = extractFloat32Sign( a );    if ( aExp == 0xFF ) {        if ( aSig ) return commonNaNToFloatx80( float32ToCommonNaN( a ) );        return packFloatx80( aSign, 0x7FFF, LIT64( 0x8000000000000000 ) );    }    if ( aExp == 0 ) {        if ( aSig == 0 ) return packFloatx80( aSign, 0, 0 );        normalizeFloat32Subnormal( aSig, &aExp, &aSig );    }    aSig |= 0x00800000;    return packFloatx80( aSign, aExp + 0x3F80, ( (bits64) aSig )<<40 );}#endif/*-------------------------------------------------------------------------------Rounds the single-precision floating-point value `a' to an integer, andreturns the result as a single-precision floating-point value.  Theoperation is performed according to the IEC/IEEE Standard for BinaryFloating-point Arithmetic.-------------------------------------------------------------------------------*/float32 float32_round_to_int( float32 a ){    flag aSign;    int16 aExp;    bits32 lastBitMask, roundBitsMask;    int8 roundingMode;    float32 z;    aExp = extractFloat32Exp( a );    if ( 0x96 <= aExp ) {        if ( ( aExp == 0xFF ) && extractFloat32Frac( a ) ) {            return propagateFloat32NaN( a, a );        }        return a;    }    if ( aExp <= 0x7E ) {        if ( (bits32) ( a<<1 ) == 0 ) return a;        float_exception_flags |= float_flag_inexact;        aSign = extractFloat32Sign( a );        switch ( float_rounding_mode ) {         case float_round_nearest_even:            if ( ( aExp == 0x7E ) && extractFloat32Frac( a ) ) {                return packFloat32( aSign, 0x7F, 0 );            }            break;         case float_round_down:            return aSign ? 0xBF800000 : 0;         case float_round_up:            return aSign ? 0x80000000 : 0x3F800000;        }        return packFloat32( aSign, 0, 0 );    }    lastBitMask = 1;    lastBitMask <<= 0x96 - aExp;    roundBitsMask = lastBitMask - 1;    z = a;    roundingMode = float_rounding_mode;    if ( roundingMode == float_round_nearest_even ) {        z += lastBitMask>>1;        if ( ( z & roundBitsMask ) == 0 ) z &= ~ lastBitMask;    }    else if ( roundingMode != float_round_to_zero ) {        if ( extractFloat32Sign( z ) ^ ( roundingMode == float_round_up ) ) {            z += roundBitsMask;        }    }    z &= ~ roundBitsMask;    if ( z != a ) float_exception_flags |= float_flag_inexact;    return z;}/*-------------------------------------------------------------------------------Returns the result of adding the absolute values of the single-precisionfloating-point values `a' and `b'.  If `zSign' is true, the sum is negatedbefore being returned.  `zSign' is ignored if the result is a NaN.  Theaddition is performed according to the IEC/IEEE Standard for BinaryFloating-point Arithmetic.-------------------------------------------------------------------------------*/static float32 addFloat32Sigs( float32 a, float32 b, flag zSign ){    int16 aExp, bExp, zExp;    bits32 aSig, bSig, zSig;    int16 expDiff;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    bSig = extractFloat32Frac( b );    bExp = extractFloat32Exp( b );    expDiff = aExp - bExp;    aSig <<= 6;    bSig <<= 6;    if ( 0 < expDiff ) {        if ( aExp == 0xFF ) {            if ( aSig ) return propagateFloat32NaN( a, b );            return a;        }        if ( bExp == 0 ) {            --expDiff;        }        else {            bSig |= 0x20000000;        }        shift32RightJamming( bSig, expDiff, &bSig );        zExp = aExp;    }    else if ( expDiff < 0 ) {        if ( bExp == 0xFF ) {            if ( bSig ) return propagateFloat32NaN( a, b );            return packFloat32( zSign, 0xFF, 0 );        }        if ( aExp == 0 ) {            ++expDiff;        }        else {            aSig |= 0x20000000;        }        shift32RightJamming( aSig, - expDiff, &aSig );        zExp = bExp;    }    else {        if ( aExp == 0xFF ) {            if ( aSig | bSig ) return propagateFloat32NaN( a, b );            return a;        }        if ( aExp == 0 ) return packFloat32( zSign, 0, ( aSig + bSig )>>6 );        zSig = 0x40000000 + aSig + bSig;        zExp = aExp;        goto roundAndPack;    }    aSig |= 0x20000000;    zSig = ( aSig + bSig )<<1;    --zExp;    if ( (sbits32) zSig < 0 ) {        zSig = aSig + bSig;        ++zExp;    } roundAndPack:    return roundAndPackFloat32( zSign, zExp, zSig );}/*-------------------------------------------------------------------------------Returns the result of subtracting the absolute values of the single-precision floating-point values `a' and `b'.  If `zSign' is true, thedifference is negated before being returned.  `zSign' is ignored if theresult is a NaN.  The subtraction is performed according to the IEC/IEEEStandard for Binary Floating-point Arithmetic.-------------------------------------------------------------------------------*/static float32 subFloat32Sigs( float32 a, float32 b, flag zSign ){    int16 aExp, bExp, zExp;    bits32 aSig, bSig, zSig;    int16 expDiff;    aSig = extractFloat32Frac( a );    aExp = extractFloat32Exp( a );    bSig = extractFloat32Frac( b );    bExp = extractFloat32Exp( b );    expDiff = aExp - bExp;    aSig <<= 7;    bSig <<= 7;    if ( 0 < expDiff ) goto aExpBigger;    if ( expDiff < 0 ) goto bExpBigger;    if ( aExp == 0xFF ) {        if ( aSig | bSig ) return propagateFloat32NaN( a, b );        float_raise( float_flag_invalid );        return float32_default_nan;    }    if ( aExp == 0 ) {        aExp = 1;        bExp = 1;    }    if ( bSig < aSig ) goto aBigger;    if ( aSig < bSig ) goto bBigger;    return packFloat32( float_rounding_mode == float_round_down, 0, 0 ); bExpBigger:    if ( bExp == 0xFF ) {        if ( bSig ) return propagateFloat32NaN( a, b );        return packFloat32( zSign ^ 1, 0xFF, 0 );    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区不卡在线 | 日日摸夜夜添夜夜添精品视频 | 天天av天天翘天天综合网| 91蜜桃网址入口| 亚洲精品乱码久久久久| 在线精品视频一区二区| 亚洲曰韩产成在线| 欧美人xxxx| 极品瑜伽女神91| 国产日韩欧美a| 不卡的av电影| 一区二区成人在线视频| 91精品国产综合久久久久| 久久精品国产精品亚洲精品| 精品91自产拍在线观看一区| 国产99久久久国产精品潘金网站| 中文字幕 久热精品 视频在线| 成人av网站在线| 亚洲午夜一二三区视频| 欧美一卡2卡3卡4卡| 国产成人精品在线看| 综合分类小说区另类春色亚洲小说欧美| 一本一道久久a久久精品| 天堂精品中文字幕在线| 精品久久久久久亚洲综合网 | 欧美理论片在线| 老司机精品视频一区二区三区| 国产视频一区二区在线| 在线免费观看日本欧美| 国产尤物一区二区| 一区二区三区视频在线看| 日韩一区二区视频| 成人黄页在线观看| 爽好多水快深点欧美视频| 久久综合成人精品亚洲另类欧美| 99精品桃花视频在线观看| 亚洲va欧美va人人爽| 精品欧美一区二区在线观看| 99久久精品情趣| 蜜臀99久久精品久久久久久软件| 国产日韩精品一区二区三区在线| 欧美三级视频在线| 大白屁股一区二区视频| 日韩一区精品视频| 1区2区3区国产精品| 日韩欧美综合一区| 在线精品视频免费播放| 国产福利精品一区| 日本亚洲欧美天堂免费| 亚洲男人电影天堂| 国产午夜精品一区二区三区嫩草| 欧美写真视频网站| 99热精品一区二区| 韩国视频一区二区| 日韩av一二三| 一区二区三区四区蜜桃| 国产免费成人在线视频| 日韩欧美一卡二卡| 欧美久久久一区| 色噜噜久久综合| 成人黄色免费短视频| 精品在线一区二区| 蜜桃av一区二区| 天堂在线一区二区| 亚洲成人av电影| 亚洲欧美日韩国产成人精品影院 | 欧美精品乱人伦久久久久久| 99国产精品久| 成人免费观看男女羞羞视频| 免费成人性网站| 石原莉奈在线亚洲三区| 亚洲综合999| 亚洲三级免费电影| 椎名由奈av一区二区三区| 国产欧美一区二区三区在线看蜜臀| 777色狠狠一区二区三区| 欧美性感一区二区三区| 在线日韩av片| 欧美特级限制片免费在线观看| 91浏览器在线视频| 99re热这里只有精品免费视频 | 麻豆国产精品官网| 日本特黄久久久高潮| 日韩精品五月天| 全部av―极品视觉盛宴亚洲| 午夜国产不卡在线观看视频| 亚洲国产精品久久久久婷婷884| 依依成人综合视频| 亚洲成人动漫av| 男男gaygay亚洲| 国产在线视频一区二区| 久久99国产精品久久99 | 国产欧美一二三区| 国产精品丝袜在线| 1000部国产精品成人观看| ●精品国产综合乱码久久久久| 一区二区三区四区在线免费观看| 一区二区成人在线| 久久国产生活片100| 国内精品久久久久影院色| 国产乱码精品一区二区三区av | 色94色欧美sute亚洲线路一久| 色哟哟欧美精品| 欧美精品粉嫩高潮一区二区| 日韩精品最新网址| 2023国产一二三区日本精品2022| 国产欧美一区二区精品仙草咪| 亚洲精品免费一二三区| 视频一区视频二区中文字幕| 韩国精品一区二区| 91一区在线观看| 91精品国产一区二区三区蜜臀| 精品久久久久久无| 亚洲精品成人悠悠色影视| 午夜影视日本亚洲欧洲精品| 精品一区二区三区免费观看| 成人一道本在线| 欧美日韩国产免费| 国产日韩欧美综合一区| 一区二区免费看| 黑人巨大精品欧美一区| 色系网站成人免费| 久久综合久久综合久久| 亚洲欧美日韩国产成人精品影院| 美女任你摸久久| 91小视频在线| 欧美大片顶级少妇| 夜夜嗨av一区二区三区中文字幕| 久久精品免费观看| 色94色欧美sute亚洲线路二 | 国产99久久久国产精品免费看| 色成年激情久久综合| 久久久www成人免费毛片麻豆| 一区二区三区高清| 国产成人精品三级麻豆| 91精品一区二区三区久久久久久 | 欧美成人精品3d动漫h| 自拍偷拍国产亚洲| 国产福利一区二区| 精品少妇一区二区三区日产乱码 | 韩国精品主播一区二区在线观看 | 国产一区欧美日韩| 欧美日韩国产a| 中文字幕一区二区三区四区不卡| 男女视频一区二区| 欧美性生活大片视频| 国产精品毛片久久久久久久| 精品一区二区三区在线视频| 在线观看欧美黄色| 中文字幕一区二区在线播放 | 91在线看国产| 国产欧美日韩在线观看| 捆绑调教一区二区三区| 欧美日韩国产高清一区| 亚洲黄色尤物视频| 色综合天天狠狠| 国产精品久线在线观看| 国产成人亚洲综合a∨猫咪| 欧美本精品男人aⅴ天堂| 丝袜a∨在线一区二区三区不卡 | 欧美日韩色一区| 亚洲欧美色图小说| 91香蕉视频mp4| 国产精品久久久久影视| 国产成人综合自拍| 国产农村妇女毛片精品久久麻豆 | 亚洲天堂成人网| 成人午夜免费av| 国产精品天干天干在线综合| 国产·精品毛片| 国产精品污网站| av一区二区三区四区| 中文字幕一区二区三区在线不卡 | 国产suv精品一区二区6| 国产拍欧美日韩视频二区 | 91亚洲精品一区二区乱码| 国产欧美一区二区精品久导航 | 欧美国产精品久久| 成人午夜av在线| 中文字幕日本不卡| 色婷婷久久综合| 亚洲成a人片在线观看中文| 欧美色欧美亚洲另类二区| 午夜免费久久看| 精品久久久久av影院 | 成人深夜视频在线观看| 国产精品视频免费看| 成人国产精品免费| 亚洲精品免费一二三区| 欧美另类z0zxhd电影| 精品在线视频一区| 中文字幕国产精品一区二区| av亚洲精华国产精华| 一级日本不卡的影视| 欧美精品一卡两卡| 国产精选一区二区三区| 中文字幕一区日韩精品欧美| 欧美日韩综合在线| 久久91精品久久久久久秒播| 国产精品乱人伦中文|