s_significandf.c 780 B

1234567891011121314151617181920212223242526
  1. /* s_significandf.c -- float version of s_significand.c.
  2. * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
  3. */
  4. /*
  5. * ====================================================
  6. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  7. *
  8. * Developed at SunPro, a Sun Microsystems, Inc. business.
  9. * Permission to use, copy, modify, and distribute this
  10. * software is freely granted, provided that this notice
  11. * is preserved.
  12. * ====================================================
  13. */
  14. #include "cdefs-compat.h"
  15. //__FBSDID("$FreeBSD: src/lib/msun/src/s_significandf.c,v 1.8 2008/02/22 02:30:36 das Exp $");
  16. #include "openlibm.h"
  17. #include "math_private.h"
  18. DLLEXPORT float
  19. significandf(float x)
  20. {
  21. return __ieee754_scalbf(x,(float) -ilogbf(x));
  22. }