コード例 #1
0
    void SetupCPUEmFloatArrays(InternalFPF[] abase,
                               InternalFPF[] bbase,
                               InternalFPF[] cbase,
                               int arraysize)
    {
        int         i;
        InternalFPF locFPF1, locFPF2;

        locFPF1 = new InternalFPF();
        locFPF2 = new InternalFPF();

        for (i = 0; i < arraysize; i++)
        {
            LongToInternalFPF(ByteMark.randwc(50000), locFPF1);
            LongToInternalFPF(ByteMark.randwc(50000) + 1, locFPF2);
            DivideInternalFPF(locFPF1, locFPF2, abase[i]);
            LongToInternalFPF(ByteMark.randwc(50000) + 1, locFPF2);
            DivideInternalFPF(locFPF1, locFPF2, bbase[i]);
        }
        return;
    }