ia64/linux-2.6.18-xen.hg

annotate arch/powerpc/math-emu/fsubs.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 #include "single.h"
ian@0 8
ian@0 9 int
ian@0 10 fsubs(void *frD, void *frA, void *frB)
ian@0 11 {
ian@0 12 FP_DECL_D(A);
ian@0 13 FP_DECL_D(B);
ian@0 14 FP_DECL_D(R);
ian@0 15 int ret = 0;
ian@0 16
ian@0 17 #ifdef DEBUG
ian@0 18 printk("%s: %p %p %p\n", __FUNCTION__, frD, frA, frB);
ian@0 19 #endif
ian@0 20
ian@0 21 __FP_UNPACK_D(A, frA);
ian@0 22 __FP_UNPACK_D(B, frB);
ian@0 23
ian@0 24 #ifdef DEBUG
ian@0 25 printk("A: %ld %lu %lu %ld (%ld)\n", A_s, A_f1, A_f0, A_e, A_c);
ian@0 26 printk("B: %ld %lu %lu %ld (%ld)\n", B_s, B_f1, B_f0, B_e, B_c);
ian@0 27 #endif
ian@0 28
ian@0 29 if (B_c != FP_CLS_NAN)
ian@0 30 B_s ^= 1;
ian@0 31
ian@0 32 if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF)
ian@0 33 ret |= EFLAG_VXISI;
ian@0 34
ian@0 35 FP_ADD_D(R, A, B);
ian@0 36
ian@0 37 #ifdef DEBUG
ian@0 38 printk("D: %ld %lu %lu %ld (%ld)\n", R_s, R_f1, R_f0, R_e, R_c);
ian@0 39 #endif
ian@0 40
ian@0 41 return (ret | __FP_PACK_DS(frD, R));
ian@0 42 }