[compiler-rt] r253829 - Use cabsl for long double, not cabs.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 22 10:53:43 PST 2015
Author: joerg
Date: Sun Nov 22 12:53:43 2015
New Revision: 253829
URL: http://llvm.org/viewvc/llvm-project?rev=253829&view=rev
Log:
Use cabsl for long double, not cabs.
Modified:
compiler-rt/trunk/test/builtins/Unit/divtc3_test.c
Modified: compiler-rt/trunk/test/builtins/Unit/divtc3_test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/builtins/Unit/divtc3_test.c?rev=253829&r1=253828&r2=253829&view=diff
==============================================================================
--- compiler-rt/trunk/test/builtins/Unit/divtc3_test.c (original)
+++ compiler-rt/trunk/test/builtins/Unit/divtc3_test.c Sun Nov 22 12:53:43 2015
@@ -104,7 +104,7 @@ int test__divtc3(long double a, long dou
{
long double _Complex z = (a * c + b * d) / (c * c + d * d)
+ (b * c - a * d) / (c * c + d * d) * _Complex_I;
- if (cabs((r - z)/r) > 1.e-6)
+ if (cabsl((r - z)/r) > 1.e-6)
return 1;
}
break;
More information about the llvm-commits
mailing list