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

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

?? dtoa.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is Netscape * Communications Corporation.  Portions created by Netscape are * Copyright (C) 1997-1999 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): * Waldemar Horwat * Roger Lawrence * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the * provisions of the GPL are applicable instead of those above. * If you wish to allow use of your version of this file only * under the terms of the GPL and not to allow others to use your * version of this file under the NPL, indicate your decision by * deleting the provisions above and replace them with the notice * and other provisions required by the GPL.  If you do not delete * the provisions above, a recipient may use your version of this * file under either the NPL or the GPL. *//****************************************************************  *  * The author of this software is David M. Gay.  *  * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.  *  * Permission to use, copy, modify, and distribute this software for any  * purpose without fee is hereby granted, provided that this entire notice  * is included in all copies of any software which is or includes a copy  * or modification of this software and in all copies of the supporting  * documentation for such software.  *  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED  * WARRANTY.  IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY  * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.  *  ***************************************************************/package org.mozilla.javascript;import java.math.BigInteger;class DToA {/* "-0.0000...(1073 zeros after decimal point)...0001\0" is the longest string that we could produce, * which occurs when printing -5e-324 in binary.  We could compute a better estimate of the size of * the output string and malloc fewer bytes depending on d and base, but why bother? */    private static final int DTOBASESTR_BUFFER_SIZE = 1078;    private static char BASEDIGIT(int digit) {        return (char)((digit >= 10) ? 'a' - 10 + digit : '0' + digit);    }    static final int        DTOSTR_STANDARD = 0,              /* Either fixed or exponential format; round-trip */        DTOSTR_STANDARD_EXPONENTIAL = 1,  /* Always exponential format; round-trip */        DTOSTR_FIXED = 2,                 /* Round to <precision> digits after the decimal point; exponential if number is large */        DTOSTR_EXPONENTIAL = 3,           /* Always exponential format; <precision> significant digits */        DTOSTR_PRECISION = 4;             /* Either fixed or exponential format; <precision> significant digits */    private static final int Frac_mask = 0xfffff;    private static final int Exp_shift = 20;    private static final int Exp_msk1 = 0x100000;    private static final long Frac_maskL = 0xfffffffffffffL;    private static final int Exp_shiftL = 52;    private static final long Exp_msk1L = 0x10000000000000L;    private static final int Bias = 1023;    private static final int P = 53;    private static final int Exp_shift1 = 20;    private static final int Exp_mask  = 0x7ff00000;    private static final int Exp_mask_shifted = 0x7ff;    private static final int Bndry_mask  = 0xfffff;    private static final int Log2P = 1;    private static final int Sign_bit = 0x80000000;    private static final int Exp_11  = 0x3ff00000;    private static final int Ten_pmax = 22;    private static final int Quick_max = 14;    private static final int Bletch = 0x10;    private static final int Frac_mask1 = 0xfffff;    private static final int Int_max = 14;    private static final int n_bigtens = 5;    private static final double tens[] = {        1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,        1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,        1e20, 1e21, 1e22    };    private static final double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 };    private static int lo0bits(int y)    {        int k;        int x = y;        if ((x & 7) != 0) {            if ((x & 1) != 0)                return 0;            if ((x & 2) != 0) {                return 1;            }            return 2;        }        k = 0;        if ((x & 0xffff) == 0) {            k = 16;            x >>>= 16;        }        if ((x & 0xff) == 0) {            k += 8;            x >>>= 8;        }        if ((x & 0xf) == 0) {            k += 4;            x >>>= 4;        }        if ((x & 0x3) == 0) {            k += 2;            x >>>= 2;        }        if ((x & 1) == 0) {            k++;            x >>>= 1;            if ((x & 1) == 0)                return 32;        }        return k;    }    /* Return the number (0 through 32) of most significant zero bits in x. */    private static int hi0bits(int x)    {        int k = 0;        if ((x & 0xffff0000) == 0) {            k = 16;            x <<= 16;        }        if ((x & 0xff000000) == 0) {            k += 8;            x <<= 8;        }        if ((x & 0xf0000000) == 0) {            k += 4;            x <<= 4;        }        if ((x & 0xc0000000) == 0) {            k += 2;            x <<= 2;        }        if ((x & 0x80000000) == 0) {            k++;            if ((x & 0x40000000) == 0)                return 32;        }        return k;    }    private static void stuffBits(byte bits[], int offset, int val)    {        bits[offset] = (byte)(val >> 24);        bits[offset + 1] = (byte)(val >> 16);        bits[offset + 2] = (byte)(val >> 8);        bits[offset + 3] = (byte)(val);    }    /* Convert d into the form b*2^e, where b is an odd integer.  b is the returned     * Bigint and e is the returned binary exponent.  Return the number of significant     * bits in b in bits.  d must be finite and nonzero. */    private static BigInteger d2b(double d, int[] e, int[] bits)    {        byte dbl_bits[];        int i, k, y, z, de;        long dBits = Double.doubleToLongBits(d);        int d0 = (int)(dBits >>> 32);        int d1 = (int)(dBits);        z = d0 & Frac_mask;        d0 &= 0x7fffffff;   /* clear sign bit, which we ignore */        if ((de = (int)(d0 >>> Exp_shift)) != 0)            z |= Exp_msk1;        if ((y = d1) != 0) {            dbl_bits = new byte[8];            k = lo0bits(y);            y >>>= k;            if (k != 0) {                stuffBits(dbl_bits, 4, y | z << (32 - k));                z >>= k;            }            else                stuffBits(dbl_bits, 4, y);            stuffBits(dbl_bits, 0, z);            i = (z != 0) ? 2 : 1;        }        else {    //        JS_ASSERT(z);            dbl_bits = new byte[4];            k = lo0bits(z);            z >>>= k;            stuffBits(dbl_bits, 0, z);            k += 32;            i = 1;        }        if (de != 0) {            e[0] = de - Bias - (P-1) + k;            bits[0] = P - k;        }        else {            e[0] = de - Bias - (P-1) + 1 + k;            bits[0] = 32*i - hi0bits(z);        }        return new BigInteger(dbl_bits);    }    static String JS_dtobasestr(int base, double d)    {        if (!(2 <= base && base <= 36))            throw new IllegalArgumentException("Bad base: "+base);        /* Check for Infinity and NaN */        if (Double.isNaN(d)) {            return "NaN";        } else if (Double.isInfinite(d)) {            return (d > 0.0) ? "Infinity" : "-Infinity";        } else if (d == 0) {            // ALERT: should it distinguish -0.0 from +0.0 ?            return "0";        }        boolean negative;        if (d >= 0.0) {            negative = false;        } else {            negative = true;            d = -d;        }        /* Get the integer part of d including '-' sign. */        String intDigits;        double dfloor = Math.floor(d);        long lfloor = (long)dfloor;        if (lfloor == dfloor) {            // int part fits long            intDigits = Long.toString((negative) ? -lfloor : lfloor, base);        } else {            // BigInteger should be used            long floorBits = Double.doubleToLongBits(dfloor);            int exp = (int)(floorBits >> Exp_shiftL) & Exp_mask_shifted;            long mantissa;            if (exp == 0) {                mantissa = (floorBits & Frac_maskL) << 1;            } else {                mantissa = (floorBits & Frac_maskL) | Exp_msk1L;            }            if (negative) {                mantissa = -mantissa;            }            exp -= 1075;            BigInteger x = BigInteger.valueOf(mantissa);            if (exp > 0) {                x = x.shiftLeft(exp);            } else if (exp < 0) {                x = x.shiftRight(-exp);            }            intDigits = x.toString(base);        }        if (d == dfloor) {            // No fraction part            return intDigits;        } else {            /* We have a fraction. */            char[] buffer;       /* The output string */            int p;               /* index to current position in the buffer */            int q;            int digit;            double df;           /* The fractional part of d */            BigInteger b;            buffer = new char[DTOBASESTR_BUFFER_SIZE];            p = 0;            df = d - dfloor;            long dBits = Double.doubleToLongBits(d);            int word0 = (int)(dBits >> 32);            int word1 = (int)(dBits);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩视频在线一区二区| 日本亚洲最大的色成网站www| 国产精品自拍在线| 国产亚洲欧洲一区高清在线观看| 精品一区二区三区视频在线观看 | 蜜臂av日日欢夜夜爽一区| 在线播放中文一区| 麻豆成人久久精品二区三区红| 欧美一区二区精品久久911| 免费成人结看片| 久久久综合视频| 91麻豆国产在线观看| 亚洲宅男天堂在线观看无病毒| 欧美一区二区三区性视频| 麻豆国产精品视频| 国产精品福利电影一区二区三区四区| 91美女视频网站| 日韩成人免费电影| 久久久综合精品| 欧美吻胸吃奶大尺度电影 | 不卡的av在线| 亚洲自拍与偷拍| 精品久久久久久无| 99久久免费精品| 日韩精品91亚洲二区在线观看 | 国产精品69久久久久水密桃| 亚洲欧美成人一区二区三区| 91精品国产91综合久久蜜臀| 岛国一区二区在线观看| 伊人色综合久久天天人手人婷| 欧美一区二区三区视频| 成人黄色大片在线观看| 五月激情综合色| 中文字幕亚洲视频| 日韩欧美国产高清| 欧美影视一区在线| 国产精品资源站在线| 亚洲va国产va欧美va观看| 国产色一区二区| 欧美精品电影在线播放| 99精品视频一区二区| 成人亚洲精品久久久久软件| 亚洲精品老司机| 国产欧美一区二区精品性| 欧美另类一区二区三区| www.在线欧美| 国产福利精品一区二区| 日韩不卡在线观看日韩不卡视频| 一区视频在线播放| 久久久亚洲综合| 日韩一区二区三区三四区视频在线观看| 丁香婷婷综合网| 韩国欧美一区二区| 日韩综合小视频| 一区二区三区在线免费播放| 久久女同精品一区二区| 日韩视频免费观看高清完整版 | 天天综合天天综合色| 中文字幕一区二区三区色视频| 日韩欧美一区在线| 欧美视频在线一区二区三区| 99久久婷婷国产| 成人h动漫精品| 国产99久久久国产精品免费看 | 国产成人免费视频| 麻豆91免费看| 蜜桃av一区二区在线观看| 香蕉久久一区二区不卡无毒影院 | 亚洲激情自拍视频| 中文字幕一区二区三区蜜月 | 国产精品国产精品国产专区不蜜 | 亚洲国产成人私人影院tom| 日韩欧美电影在线| 在线播放亚洲一区| 日韩视频国产视频| 精品捆绑美女sm三区| 欧美一区二区三区免费大片| 欧美另类z0zxhd电影| 欧美日韩电影在线播放| 欧美日韩亚洲综合在线| 欧美日韩三级视频| 91精品国产综合久久久久久久| 欧美日韩第一区日日骚| 欧美一区二区二区| 精品久久久久久久久久久久久久久| 日韩一本二本av| 精品噜噜噜噜久久久久久久久试看| 2020国产精品| 国产精品美日韩| 成人免费在线视频观看| 亚洲黄色免费网站| 亚洲一本大道在线| 日韩av一二三| 紧缚奴在线一区二区三区| 国产精一区二区三区| av不卡在线观看| 色哟哟在线观看一区二区三区| 欧亚洲嫩模精品一区三区| 欧美日韩三级一区二区| 欧美电影免费观看高清完整版 | 国产精品色哟哟| ...xxx性欧美| 亚洲综合区在线| 免费高清在线一区| 成人午夜激情视频| av福利精品导航| 欧美久久久久久久久久| 日韩精品在线一区| 中文无字幕一区二区三区| 又紧又大又爽精品一区二区| 天天影视色香欲综合网老头| 国产自产视频一区二区三区| 成人福利视频网站| 欧美无砖专区一中文字| 2024国产精品| 一区二区三区欧美日| 蓝色福利精品导航| 99天天综合性| 日韩精品在线网站| 一区二区三区免费在线观看| 日本美女视频一区二区| 成人精品鲁一区一区二区| 欧美精品久久一区| 中文av一区二区| 日韩国产欧美视频| 91在线观看下载| 精品理论电影在线| 一区二区三区在线免费观看| 国产又黄又大久久| 在线观看91视频| 国产清纯白嫩初高生在线观看91| 一级做a爱片久久| 国产大陆a不卡| 欧美一区在线视频| 亚洲人成伊人成综合网小说| 久久精品国产色蜜蜜麻豆| 色综合欧美在线视频区| 久久久精品天堂| 日韩中文字幕一区二区三区| av成人动漫在线观看| 久久久777精品电影网影网 | 久久午夜电影网| 天堂影院一区二区| 99精品国产视频| 国产清纯美女被跳蛋高潮一区二区久久w| 午夜激情久久久| 在线精品视频免费播放| 国产精品久线观看视频| 国产一二精品视频| 日韩欧美国产系列| 日本欧美肥老太交大片| 欧美日韩一区二区不卡| 亚洲男人的天堂在线aⅴ视频| 国产一区二区三区综合| 日韩欧美你懂的| 日本欧美在线观看| 欧美精品在线观看播放| 五月婷婷激情综合| 欧美午夜寂寞影院| 一区二区中文字幕在线| 成人精品免费视频| 中文字幕一区二区三区精华液| 风间由美一区二区av101 | 九色|91porny| 日韩三级av在线播放| 日韩福利电影在线| 欧美日韩高清一区二区不卡 | 亚洲精品老司机| 一本久道中文字幕精品亚洲嫩| 国产精品久久久久久久午夜片| 风间由美一区二区av101| 中文字幕在线一区| 99国产麻豆精品| 亚洲综合精品自拍| 欧美精品一级二级| 奇米精品一区二区三区在线观看 | 免费精品视频在线| 91精品国产欧美一区二区成人| 天堂一区二区在线| 精品剧情v国产在线观看在线| 黄网站免费久久| 亚洲国产经典视频| 91久久久免费一区二区| 亚洲成av人片在线| 日韩一区二区中文字幕| 麻豆精品一区二区综合av| 26uuu国产在线精品一区二区| 国产乱码字幕精品高清av | 亚洲免费看黄网站| 欧美午夜精品久久久久久超碰 | 亚洲v精品v日韩v欧美v专区 | aaa亚洲精品| 一区二区三区蜜桃| 日韩午夜在线播放| 国产精品99久久久久| 亚洲精品国久久99热| 欧美一区永久视频免费观看| 风间由美一区二区三区在线观看| 亚洲精品乱码久久久久久久久| 日韩亚洲欧美中文三级|