Annotation of nono/m88xx0/fp.h, revision 1.1

1.1     ! root        1: 
        !             2: // 何もかも分かった上で暫定
        !             3: 
        !             4: extern float u2f(uint32 u);
        !             5: extern double u2d(uint64 u);
        !             6: extern uint32 f2u(float v);
        !             7: extern uint64 d2u(double v);
        !             8: 
        !             9: float
        !            10: u2f(uint32 u)
        !            11: {
        !            12:        float v;
        !            13:        memcpy(&v, &u, 4);
        !            14:        return v;
        !            15: }
        !            16: 
        !            17: double
        !            18: u2d(uint64 u)
        !            19: {
        !            20:        double v;
        !            21:        memcpy(&v, &u, 8);
        !            22:        return v;
        !            23: }
        !            24: 
        !            25: uint32
        !            26: f2u(float v)
        !            27: {
        !            28:        uint32 u;
        !            29:        memcpy(&u, &v, 4);
        !            30:        return u;
        !            31: }
        !            32: 
        !            33: uint64
        !            34: d2u(double v)
        !            35: {
        !            36:        uint64 u;
        !            37:        memcpy(&u, &v, 8);
        !            38:        return u;
        !            39: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.