00001 /* 00002 (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. 00003 See the copyright notice in the ACK home directory, in the file "Copyright". 00004 */ 00005 00006 /* $Header: /opt/proj/minix/cvsroot/src/lib/float/sbf8.c,v 1.1.1.1 2005/04/21 14:56:11 beng Exp $ */ 00007 00008 /* 00009 SUBTRACT TWO FLOATS - DOUBLE Precision (SBF 8) 00010 */ 00011 00012 #include "FP_types.h" 00013 00014 void 00015 sbf8(s2,s1) 00016 DOUBLE s1,s2; 00017 { 00018 EXTEND e1, e2; 00019 00020 if (s2.d[0] == 0 && s2.d[1] == 0) { 00021 return; 00022 } 00023 extend(&s1.d[0],&e1,sizeof(DOUBLE)); 00024 extend(&s2.d[0],&e2,sizeof(DOUBLE)); 00025 sub_ext(&e1,&e2); 00026 compact(&e1,&s1.d[0],sizeof(DOUBLE)); 00027 }
1.4.6