root/arch/nds32/math-emu/fui2s.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. fui2s

   1 // SPDX-License-Identifier: GPL-2.0
   2 // Copyright (C) 2005-2019 Andes Technology Corporation
   3 #include <linux/uaccess.h>
   4 
   5 #include <asm/sfp-machine.h>
   6 #include <math-emu/soft-fp.h>
   7 #include <math-emu/single.h>
   8 
   9 void fui2s(void *ft, void *fa)
  10 {
  11         unsigned int a = *(unsigned int *)fa;
  12 
  13         FP_DECL_S(R);
  14         FP_DECL_EX;
  15 
  16         FP_FROM_INT_S(R, a, 32, int);
  17 
  18         FP_PACK_SP(ft, R);
  19 
  20         __FPU_FPCSR |= FP_CUR_EXCEPTIONS;
  21 
  22 }

/* [<][>][^][v][top][bottom][index][help] */