From: Chris Lattner Date: Tue, 29 Jan 2008 07:00:44 +0000 (+0000) Subject: llvm.sqrt(-0.0) is defined. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=103e2d760f3fb81d426319389106a8aeb21a584d;p=oota-llvm.git llvm.sqrt(-0.0) is defined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46500 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index a2ee339bc0b..90ba0cc058f 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4677,7 +4677,9 @@ types however. The 'llvm.sqrt' intrinsics return the sqrt of the specified operand, returning the same value as the libm 'sqrt' functions would. Unlike sqrt in libm, however, llvm.sqrt 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). llvm.sqrt(-0.0) is +defined to return -0.0 like IEEE sqrt.

Arguments: