Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/types.h>
0003 #include <linux/errno.h>
0004 #include <linux/uaccess.h>
0005 
0006 #include <asm/sfp-machine.h>
0007 #include <math-emu/soft-fp.h>
0008 #include <math-emu/double.h>
0009 
0010 int
0011 fctiw(u32 *frD, void *frB)
0012 {
0013     FP_DECL_D(B);
0014     FP_DECL_EX;
0015     unsigned int r;
0016 
0017     FP_UNPACK_DP(B, frB);
0018     FP_TO_INT_D(r, B, 32, 1);
0019     frD[1] = r;
0020 
0021 #ifdef DEBUG
0022     printk("%s: D %p, B %p: ", __func__, frD, frB);
0023     dump_double(frD);
0024     printk("\n");
0025 #endif
0026 
0027     return 0;
0028 }