fsel.c (96916090f488986a4ebb8e9ffa6a3b50881d5ccd) fsel.c (d2b194ed820880eb19c43b9c10d9f5f30026ee54)
1#include <linux/types.h>
2#include <linux/errno.h>
3#include <asm/uaccess.h>
4
1#include <linux/types.h>
2#include <linux/errno.h>
3#include <asm/uaccess.h>
4
5#include "soft-fp.h"
6#include "double.h"
5#include <asm/sfp-machine.h>
6#include <math-emu/soft-fp.h>
7#include <math-emu/double.h>
7
8int
9fsel(u32 *frD, void *frA, u32 *frB, u32 *frC)
10{
11 FP_DECL_D(A);
8
9int
10fsel(u32 *frD, void *frA, u32 *frB, u32 *frC)
11{
12 FP_DECL_D(A);
13 FP_DECL_EX;
12
13#ifdef DEBUG
14 printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
15#endif
16
14
15#ifdef DEBUG
16 printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
17#endif
18
17 __FP_UNPACK_D(A, frA);
19 FP_UNPACK_DP(A, frA);
18
19#ifdef DEBUG
20 printk("A: %ld %lu %lu %ld (%ld)\n", A_s, A_f1, A_f0, A_e, A_c);
21 printk("B: %08x %08x\n", frB[0], frB[1]);
22 printk("C: %08x %08x\n", frC[0], frC[1]);
23#endif
24
25 if (A_c == FP_CLS_NAN || (A_c != FP_CLS_ZERO && A_s)) {

--- 13 unchanged lines hidden ---
20
21#ifdef DEBUG
22 printk("A: %ld %lu %lu %ld (%ld)\n", A_s, A_f1, A_f0, A_e, A_c);
23 printk("B: %08x %08x\n", frB[0], frB[1]);
24 printk("C: %08x %08x\n", frC[0], frC[1]);
25#endif
26
27 if (A_c == FP_CLS_NAN || (A_c != FP_CLS_ZERO && A_s)) {

--- 13 unchanged lines hidden ---