ia64/linux-2.6.18-xen.hg

annotate arch/powerpc/math-emu/fsub.c @ 854:950b9eb27661

usbback: fix urb interval value for interrupt urbs.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 13:51:20 2009 +0100 (2009-04-06)
parents 831230e53067
children
rev   line source
ian@0 1 #include <linux/types.h>
ian@0 2 #include <linux/errno.h>
ian@0 3 #include <asm/uaccess.h>
ian@0 4
ian@0 5 #include "soft-fp.h"
ian@0 6 #include "double.h"
ian@0 7
ian@0 8 int
ian@0 9 fsub(void *frD, void *frA, void *frB)
ian@0 10 {
ian@0 11 FP_DECL_D(A);
ian@0 12 FP_DECL_D(B);
ian@0 13 FP_DECL_D(R);
ian@0 14 int ret = 0;
ian@0 15
ian@0 16 #ifdef DEBUG
ian@0 17 printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB);
ian@0 18 #endif
ian@0 19
ian@0 20 __FP_UNPACK_D(A, frA);
ian@0 21 __FP_UNPACK_D(B, frB);
ian@0 22
ian@0 23 #ifdef DEBUG
ian@0 24 printk("A: %ld %lu %lu %ld (%ld)\n", A_s, A_f1, A_f0, A_e, A_c);
ian@0 25 printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
ian@0 26 #endif
ian@0 27
ian@0 28 if (B_c != FP_CLS_NAN)
ian@0 29 B_s ^= 1;
ian@0 30
ian@0 31 if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF)
ian@0 32 ret |= EFLAG_VXISI;
ian@0 33
ian@0 34 FP_ADD_D(R, A, B);
ian@0 35
ian@0 36 #ifdef DEBUG
ian@0 37 printk("D: %ld %lu %lu %ld (%ld)\n", R_s, R_f1, R_f0, R_e, R_c);
ian@0 38 #endif
ian@0 39
ian@0 40 return (ret | __FP_PACK_D(frD, R));
ian@0 41 }