diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-29 07:00:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-29 07:00:44 +0000 |
commit | f914a00e263cbf8a66b0665e0446f72bd315da7d (patch) | |
tree | 1a6075633e3e7b57b53b3eb329bf435a1f6b681f /docs/LangRef.html | |
parent | 55476163925d7772186515cb558e9368ac0b3f3b (diff) | |
download | external_llvm-f914a00e263cbf8a66b0665e0446f72bd315da7d.zip external_llvm-f914a00e263cbf8a66b0665e0446f72bd315da7d.tar.gz external_llvm-f914a00e263cbf8a66b0665e0446f72bd315da7d.tar.bz2 |
llvm.sqrt(-0.0) is defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index a2ee339..90ba0cc 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4677,7 +4677,9 @@ types however. The '<tt>llvm.sqrt</tt>' intrinsics return the sqrt of the specified operand, returning the same value as the libm '<tt>sqrt</tt>' functions would. Unlike <tt>sqrt</tt> in libm, however, <tt>llvm.sqrt</tt> has undefined behavior for -negative numbers (which allows for better optimization). +negative numbers other than -0.0 (which allows for better optimization, because +there is no need to worry about errno being set). <tt>llvm.sqrt(-0.0)</tt> is +defined to return -0.0 like IEEE sqrt. </p> <h5>Arguments:</h5> |