root/lib/math/d2d.c

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

DEFINITIONS

This source file includes following definitions.
  1. d2d

   1 #include "fdlibm.h"
   2 
   3 #ifndef __VFP_FP__
   4 #define USE_ASM_D2D
   5 
   6 double d2d(double value) {
   7 #ifndef USE_ASM_D2D
   8     unsigned int h, l;
   9 
  10     EXTRACT_WORDS(h, l, value);
  11     INSERT_WORDS(value, l, h);
  12 #else
  13     asm volatile (
  14          "EOR     %Q0, %R0\n"
  15          "EOR     %R0, %Q0\n"
  16          "EOR     %Q0, %R0\n"
  17          :"=r" (value)
  18          :"0" (value)
  19          );
  20 #endif
  21     return value;
  22 }
  23 #endif
  24 

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