Hex Artifact Content
Not logged in

Artifact 51476576aab59c348ae624bf5b0714cb868742da:


0000: 2f 2f 3d 3d 3d 2d 2d 20 6c 69 62 2f 74 72 75 6e  //===-- lib/trun
0010: 63 74 66 73 66 32 2e 63 20 2d 20 71 75 61 64 20  ctfsf2.c - quad 
0020: 2d 3e 20 73 69 6e 67 6c 65 20 63 6f 6e 76 65 72  -> single conver
0030: 73 69 6f 6e 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  sion -----------
0040: 2d 2d 2d 2a 2d 20 43 20 2d 2a 2d 3d 3d 3d 2f 2f  ---*- C -*-===//
0050: 0a 2f 2f 0a 2f 2f 20 20 20 20 20 20 20 20 20 20  .//.//          
0060: 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 4c             The L
0070: 4c 56 4d 20 43 6f 6d 70 69 6c 65 72 20 49 6e 66  LVM Compiler Inf
0080: 72 61 73 74 72 75 63 74 75 72 65 0a 2f 2f 0a 2f  rastructure.//./
0090: 2f 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 64  / This file is d
00a0: 75 61 6c 20 6c 69 63 65 6e 73 65 64 20 75 6e 64  ual licensed und
00b0: 65 72 20 74 68 65 20 4d 49 54 20 61 6e 64 20 74  er the MIT and t
00c0: 68 65 20 55 6e 69 76 65 72 73 69 74 79 20 6f 66  he University of
00d0: 20 49 6c 6c 69 6e 6f 69 73 20 4f 70 65 6e 0a 2f   Illinois Open./
00e0: 2f 20 53 6f 75 72 63 65 20 4c 69 63 65 6e 73 65  / Source License
00f0: 73 2e 20 53 65 65 20 4c 49 43 45 4e 53 45 2e 54  s. See LICENSE.T
0100: 58 54 20 66 6f 72 20 64 65 74 61 69 6c 73 2e 0a  XT for details..
0110: 2f 2f 0a 2f 2f 3d 3d 3d 2d 2d 2d 2d 2d 2d 2d 2d  //.//===--------
0120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0150: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 3d 3d  --------------==
0160: 3d 2f 2f 0a 0a 23 64 65 66 69 6e 65 20 51 55 41  =//..#define QUA
0170: 44 5f 50 52 45 43 49 53 49 4f 4e 0a 23 69 6e 63  D_PRECISION.#inc
0180: 6c 75 64 65 20 22 66 70 5f 6c 69 62 2e 68 22 0a  lude "fp_lib.h".
0190: 0a 23 69 66 20 64 65 66 69 6e 65 64 28 43 52 54  .#if defined(CRT
01a0: 5f 48 41 53 5f 31 32 38 42 49 54 29 20 26 26 20  _HAS_128BIT) && 
01b0: 64 65 66 69 6e 65 64 28 43 52 54 5f 4c 44 42 4c  defined(CRT_LDBL
01c0: 5f 31 32 38 42 49 54 29 0a 23 64 65 66 69 6e 65  _128BIT).#define
01d0: 20 53 52 43 5f 51 55 41 44 0a 23 64 65 66 69 6e   SRC_QUAD.#defin
01e0: 65 20 44 53 54 5f 53 49 4e 47 4c 45 0a 23 69 6e  e DST_SINGLE.#in
01f0: 63 6c 75 64 65 20 22 66 70 5f 74 72 75 6e 63 5f  clude "fp_trunc_
0200: 69 6d 70 6c 2e 69 6e 63 22 0a 0a 43 4f 4d 50 49  impl.inc"..COMPI
0210: 4c 45 52 5f 52 54 5f 41 42 49 20 66 6c 6f 61 74  LER_RT_ABI float
0220: 20 5f 5f 74 72 75 6e 63 74 66 73 66 32 28 6c 6f   __trunctfsf2(lo
0230: 6e 67 20 64 6f 75 62 6c 65 20 61 29 20 7b 0a 20  ng double a) {. 
0240: 20 20 20 72 65 74 75 72 6e 20 5f 5f 74 72 75 6e     return __trun
0250: 63 58 66 59 66 32 5f 5f 28 61 29 3b 0a 7d 0a 0a  cXfYf2__(a);.}..
0260: 23 65 6e 64 69 66 0a                             #endif.