/* Set the condition code in the user psw. 0 : Result is zero 1 : Result is less than zero 2 : Result is greater than zero 3 : Result is NaN or INF  */
static void emu_set_CC_cs(struct pt_regs *regs, int class, int sign)
/* Set the condition code in the user psw. 0 : Result is zero 1 : Result is less than zero 2 : Result is greater than zero 3 : Result is NaN or INF  */
static void emu_set_CC_cs(struct pt_regs *regs, int class, int sign)
{
        switch (class) {
        case FP_CLS_NORMAL:
        case FP_CLS_INF:
                emu_set_CC(regs, sign ? 1 : 2);
                break;
        case FP_CLS_ZERO:
                emu_set_CC(regs, 0);
                break;
        case FP_CLS_NAN:
                emu_set_CC(regs, 3);
                break;
        }
}