Hex Artifact Content
Not logged in

Artifact a906f3239f7ffc037292a05343b5c780bb9489c4:


0000: 2f 2f 3d 3d 3d 2d 2d 20 6c 69 62 2f 61 64 64 64  //===-- lib/addd
0010: 66 33 2e 63 20 2d 20 44 6f 75 62 6c 65 2d 70 72  f3.c - Double-pr
0020: 65 63 69 73 69 6f 6e 20 61 64 64 69 74 69 6f 6e  ecision addition
0030: 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d   ---------------
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 2f 2f 0a 2f 2f 20 54 68 69 73 20 66  =//.//.// This f
0170: 69 6c 65 20 69 6d 70 6c 65 6d 65 6e 74 73 20 64  ile implements d
0180: 6f 75 62 6c 65 2d 70 72 65 63 69 73 69 6f 6e 20  ouble-precision 
0190: 73 6f 66 74 2d 66 6c 6f 61 74 20 61 64 64 69 74  soft-float addit
01a0: 69 6f 6e 20 77 69 74 68 20 74 68 65 20 49 45 45  ion with the IEE
01b0: 45 2d 37 35 34 0a 2f 2f 20 64 65 66 61 75 6c 74  E-754.// default
01c0: 20 72 6f 75 6e 64 69 6e 67 20 28 74 6f 20 6e 65   rounding (to ne
01d0: 61 72 65 73 74 2c 20 74 69 65 73 20 74 6f 20 65  arest, ties to e
01e0: 76 65 6e 29 2e 0a 2f 2f 0a 2f 2f 3d 3d 3d 2d 2d  ven)..//.//===--
01f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0200: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0210: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0220: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0230: 2d 2d 2d 2d 3d 3d 3d 2f 2f 0a 0a 23 64 65 66 69  ----===//..#defi
0240: 6e 65 20 44 4f 55 42 4c 45 5f 50 52 45 43 49 53  ne DOUBLE_PRECIS
0250: 49 4f 4e 0a 23 69 6e 63 6c 75 64 65 20 22 66 70  ION.#include "fp
0260: 5f 61 64 64 5f 69 6d 70 6c 2e 69 6e 63 22 0a 0a  _add_impl.inc"..
0270: 41 52 4d 5f 45 41 42 49 5f 46 4e 41 4c 49 41 53  ARM_EABI_FNALIAS
0280: 28 64 61 64 64 2c 20 61 64 64 64 66 33 29 0a 0a  (dadd, adddf3)..
0290: 43 4f 4d 50 49 4c 45 52 5f 52 54 5f 41 42 49 20  COMPILER_RT_ABI 
02a0: 64 6f 75 62 6c 65 20 5f 5f 61 64 64 64 66 33 28  double __adddf3(
02b0: 64 6f 75 62 6c 65 20 61 2c 20 64 6f 75 62 6c 65  double a, double
02c0: 20 62 29 7b 0a 20 20 20 20 72 65 74 75 72 6e 20   b){.    return 
02d0: 5f 5f 61 64 64 58 66 33 5f 5f 28 61 2c 20 62 29  __addXf3__(a, b)
02e0: 3b 0a 7d 0a                                      ;.}.