revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / mathieeesingbas / ieeespsub.c
blob44bd0d6fd4f477060e9f291e9024603ed502ba8b
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathieeesingbas_intern.h"
8 /*****************************************************************************
10 NAME */
12 AROS_LH2(float, IEEESPSub,
14 /* SYNOPSIS */
15 AROS_LHA(float, y, D0),
16 AROS_LHA(float, z, D1),
18 /* LOCATION */
19 struct LibHeader *, MathIeeeSingBasBase, 12, Mathieeesingbas)
21 /* FUNCTION
22 Subtract two ieeesp numbers
23 x = y-z;
25 INPUTS
27 RESULT
28 Flags:
29 zero : result is zero
30 negative : result is negative
31 overflow : result is out of range
33 BUGS
35 INTERNALS
36 ALGORITHM:
37 x = y - z = y + (-z).
39 *****************************************************************************/
41 AROS_LIBFUNC_INIT
43 return IEEESPAdd(y, z ^ IEEESPSign_Mask);
45 AROS_LIBFUNC_EXIT