Line | |
---|
1 | /*
|
---|
2 | (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
---|
3 | See the copyright notice in the ACK home directory, in the file "Copyright".
|
---|
4 | */
|
---|
5 |
|
---|
6 | /* $Header: /cvsup/minix/src/lib/float/sbf4.c,v 1.1.1.1 2005/04/21 14:56:11 beng Exp $ */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | SUBTRACT TWO FLOATS - SINGLE Precision (SBF 4)
|
---|
10 | */
|
---|
11 |
|
---|
12 | #include "FP_types.h"
|
---|
13 |
|
---|
14 | void
|
---|
15 | sbf4(s2,s1)
|
---|
16 | SINGLE s1,s2;
|
---|
17 | {
|
---|
18 | EXTEND e1,e2;
|
---|
19 |
|
---|
20 | if (s2 == (SINGLE) 0) {
|
---|
21 | return;
|
---|
22 | }
|
---|
23 | extend(&s1,&e1,sizeof(SINGLE));
|
---|
24 | extend(&s2,&e2,sizeof(SINGLE));
|
---|
25 | sub_ext(&e1,&e2);
|
---|
26 | compact(&e1,&s1,sizeof(SINGLE));
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.