~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to sysdeps/x86_64/fpu/e_sqrt.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Square root of floating point number.
2
 
   Copyright (C) 2002 Free Software Foundation, Inc.
 
2
   Copyright (C) 2002, 2011 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
5
5
   The GNU C Library is free software; you can redistribute it and/or
19
19
 
20
20
#include <math_private.h>
21
21
 
 
22
#undef __ieee754_sqrt
22
23
double
23
24
__ieee754_sqrt (double x)
24
25
{
25
26
  double res;
26
27
 
27
 
  asm ("sqrtsd %0, %1" : "=x" (res) : "x" (x));
 
28
  asm ("sqrtsd %1, %0" : "=x" (res) : "xm" (x));
28
29
 
29
30
  return res;
30
31
}
 
32
strong_alias (__ieee754_sqrt, __sqrt_finite)