2 ** libgcc support for software floating point.
3 ** Copyright (C) 1991 by Pipeline Associates, Inc. All rights reserved.
4 ** Permission is granted to do *anything* you want with this file,
5 ** commercial or otherwise, provided this message remains intact. So there!
6 ** I would appreciate receiving any updates/patches/changes that anyone
7 ** makes, and am willing to be the repository for said changes (am I
8 ** making a big mistake?).
11 ** Pipeline Associates, Inc.
12 ** pipeline!phw@motown.com or
13 ** sun!pipeline!phw or
14 ** uunet!motown!pipeline!phw
30 float __fsadd (float a1, float a2) _FS_REENTRANT
32 volatile union float_long fl1, fl2;
35 unsigned long sign = 0;
40 /* check for zero args */
64 mant2 >>= exp1 - exp2;
68 mant1 >>= exp2 - exp1;
82 while (mant1<HIDDEN) {
88 while (mant1 & 0xff000000) {
95 /* turn off hidden bit */
98 /* pack up and go home */
99 fl1.l = PACK (sign, (unsigned long) exp1, mant1);