xref: /csrg-svn/lib/libc/quad/fixdfdi.c (revision 53436)
1 /*-
2  * Copyright (c) 1992 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)fixdfdi.c	5.1 (Berkeley) 05/12/92";
10 #endif /* LIBC_SCCS and not lint */
11 
12 #include "longlong.h"
13 
14 long long
15 __fixdfdi (a)
16      double a;
17 {
18   long long __fixunsdfdi (double a);
19 
20   if (a < 0)
21     return - __fixunsdfdi (-a);
22   return __fixunsdfdi (a);
23 }
24