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 / i386 / math / hypot.S < prev    next >
Encoding:
Text File  |  1994-08-26  |  873 b   |  40 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.     .file "hypot.S"
  15.  
  16.     .text
  17. #ifdef __ELF__
  18. #define _hypot hypot
  19. #endif
  20.  
  21.     .globl    _hypot
  22.  
  23. #ifdef __i486__
  24.     .align    4,0x90
  25. #else
  26.     .align    2,0x90
  27. #endif
  28. _hypot:
  29.     fldl    4(%esp)
  30.     fmull    4(%esp)
  31.     fldl    12(%esp)
  32.     fmull    12(%esp)
  33.     faddp    %st,%st(1)
  34.     fsqrt
  35.     ret
  36.  
  37. #ifdef __ELF__
  38. .type hypot,@function
  39. #endif
  40.