Revision 7d3505c5 target-i386/op.c

b/target-i386/op.c
1938 1938
    int rnd_type;
1939 1939
    env->fpuc = lduw((void *)A0);
1940 1940
    /* set rounding mode */
1941
#ifdef _BSD
1942
    switch(env->fpuc & RC_MASK) {
1943
    default:
1944
    case RC_NEAR:
1945
        rnd_type = FP_RN;
1946
        break;
1947
    case RC_DOWN:
1948
        rnd_type = FP_RM;
1949
        break;
1950
    case RC_UP:
1951
        rnd_type = FP_RP;
1952
        break;
1953
    case RC_CHOP:
1954
        rnd_type = FP_RZ;
1955
        break;
1956
    }
1957
    fpsetround(rnd_type);
1958
#else
1941 1959
    switch(env->fpuc & RC_MASK) {
1942 1960
    default:
1943 1961
    case RC_NEAR:
......
1954 1972
        break;
1955 1973
    }
1956 1974
    fesetround(rnd_type);
1975
#endif
1957 1976
}
1958 1977

  
1959 1978
void OPPROTO op_fclex(void)

Also available in: Unified diff