/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1988 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* IEEE function implementations. */
#include "base_conversion.h"
enum fp_class_type
{
kluge.x = *x;
return fp_zero;
else
return fp_subnormal;
return fp_infinity;
return fp_quiet;
else
return fp_signaling;
} else
return fp_normal;
}
enum fp_class_type
{
kluge.x[0] = (*x)[0];
return fp_zero;
else
return fp_subnormal;
return fp_infinity;
return fp_quiet;
else
return fp_signaling;
} else
return fp_normal;
}
void
{
int i;
x.x = *px;
for (i = 1; i < UNPACKED_SIZE; i++)
pu->significand[i] = 0;
return;
} else { /* subnormal */
return;
}
return;
} else { /* nan */
} else {/* signaling */
}
return;
}
}
}
void
{
int i;
x.x[0] = (*px)[0];
for (i = 2; i < UNPACKED_SIZE; i++)
pu->significand[i] = 0;
return;
} else { /* nan */
} else {/* signaling */
}
return;
}
}
return;
} else { /* unnormal */
return;
}
}
}
void
{
int i, e;
(void) printf(" unpacked ");
(void) printf("-");
else
(void) printf("+");
case fp_zero:
(void) printf("0");
break;
case fp_infinity:
(void) printf("Infinity");
break;
case fp_quiet:
(void) printf("NaN(quiet)");
break;
case fp_signaling:
(void) printf("NaN(signaling)");
break;
case fp_subnormal:
case fp_normal:
for (i = 0; i < UNPACKED_SIZE; i++) {
e -= 32;
}
}
(void) printf("\n");
}