home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / LIBC / LIBC-4.6 / LIBC-4 / libc-linux / sysdeps / linux / m68k / math / frexp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-19  |  976 b   |  34 lines

  1. /* Copyright (C) 1993  Hongjiu Lu
  2. This file is part of the Linux C Library.
  3.  
  4. The Linux C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The Linux C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details. */
  13.  
  14. #include <ansidecl.h>
  15. #define _NO_MATH_INLINES
  16. #include <math.h>
  17.  
  18. /*  Stores binary exponent of d in e, and returns whole fraction of d
  19.  *   (with binary exponent of 0) (special case for d=0)
  20.  */
  21. double
  22. DEFUN (frexp, (d, e),
  23.        double d AND int *e)
  24. {
  25.   return __m81_u (frexp) (d, e);
  26. }
  27.  
  28. double
  29. DEFUN (ldexp, (x, exp),
  30.        double x AND int exp)
  31. {
  32.   return __m81_u (ldexp) (x, exp);
  33. }
  34.