| /minix3/include/ |
| H A D | complex.h | 11 #define complex _Complex macro 21 double complex cacos(double complex); 22 float complex cacosf(float complex); 23 long double complex cacosl(long double complex); 26 double complex casin(double complex); 27 float complex casinf(float complex); 28 long double complex casinl(long double complex); 31 double complex catan(double complex); 32 float complex catanf(float complex); 33 long double complex catanl(long double complex); [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/ |
| H A D | cases.h | 20 std::complex<double> x[] = 22 std::complex<double>( 1.e-6, 1.e-6), 23 std::complex<double>(-1.e-6, 1.e-6), 24 std::complex<double>(-1.e-6, -1.e-6), 25 std::complex<double>( 1.e-6, -1.e-6), 27 std::complex<double>( 1.e+6, 1.e-6), 28 std::complex<double>(-1.e+6, 1.e-6), 29 std::complex<double>(-1.e+6, -1.e-6), 30 std::complex<double>( 1.e+6, -1.e-6), 32 std::complex<double>( 1.e-6, 1.e+6), [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/ |
| H A D | cases.h | 20 std::complex<double> x[] = 22 std::complex<double>( 1.e-6, 1.e-6), 23 std::complex<double>(-1.e-6, 1.e-6), 24 std::complex<double>(-1.e-6, -1.e-6), 25 std::complex<double>( 1.e-6, -1.e-6), 27 std::complex<double>( 1.e+6, 1.e-6), 28 std::complex<double>(-1.e+6, 1.e-6), 29 std::complex<double>(-1.e+6, -1.e-6), 30 std::complex<double>( 1.e+6, -1.e-6), 32 std::complex<double>( 1.e-6, 1.e+6), [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/include/ |
| H A D | complex | 2 //===--------------------------- complex ----------------------------------===// 15 complex synopsis 21 class complex 26 complex(const T& re = T(), const T& im = T()); // constexpr in C++14 27 complex(const complex&); // constexpr in C++14 28 template<class X> complex(const complex<X>&); // constexpr in C++14 36 complex<T>& operator= (const T&); 37 complex<T>& operator+=(const T&); 38 complex<T>& operator-=(const T&); 39 complex<T>& operator*=(const T&); [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/complex.ops/ |
| H A D | stream_input.pass.cpp | 24 std::complex<double> c; in main() 26 assert(c == std::complex<double>(5, 0)); in main() 31 std::complex<double> c; in main() 33 assert(c == std::complex<double>(5, 0)); in main() 38 std::complex<double> c; in main() 40 assert(c == std::complex<double>(5, 0)); in main() 45 std::complex<double> c; in main() 47 assert(c == std::complex<double>(0, 0)); in main() 52 std::complex<double> c; in main() 54 assert(c == std::complex<double>(5.5, 0)); in main() [all …]
|
| H A D | complex_plus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(5.0, 7.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(-2.0, 2.0); in test()
|
| H A D | complex_minus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(-2.0, -2.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(5.0, -7.0); in test()
|
| H A D | complex_equals_complex.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 42 std::complex<T> lhs(1.5, 2.5); in test() 43 std::complex<T> rhs(1.5, -2.5); in test() 47 std::complex<T> lhs(1.5, 2.5); in test() 48 std::complex<T> rhs(1.5, 2.5); in test()
|
| H A D | complex_not_equals_complex.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 43 std::complex<T> lhs(1.5, 2.5); in test() 44 std::complex<T> rhs(1.5, -2.5); in test() 48 std::complex<T> lhs(1.5, 2.5); in test() 49 std::complex<T> rhs(1.5, 2.5); in test()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/complex.ops/ |
| H A D | stream_input.pass.cpp | 24 std::complex<double> c; in main() 26 assert(c == std::complex<double>(5, 0)); in main() 31 std::complex<double> c; in main() 33 assert(c == std::complex<double>(5, 0)); in main() 38 std::complex<double> c; in main() 40 assert(c == std::complex<double>(5, 0)); in main() 45 std::complex<double> c; in main() 47 assert(c == std::complex<double>(0, 0)); in main() 52 std::complex<double> c; in main() 54 assert(c == std::complex<double>(5.5, 0)); in main() [all …]
|
| H A D | complex_minus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(-2.0, -2.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(5.0, -7.0); in test()
|
| H A D | complex_plus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(5.0, 7.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(-2.0, 2.0); in test()
|
| H A D | complex_equals_complex.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 42 std::complex<T> lhs(1.5, 2.5); in test() 43 std::complex<T> rhs(1.5, -2.5); in test() 47 std::complex<T> lhs(1.5, 2.5); in test() 48 std::complex<T> rhs(1.5, 2.5); in test()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/cmplx.over/ |
| H A D | pow.pass.cpp | 40 test(T x, const std::complex<U>& y) in test() 43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y))); in test() 49 test(const std::complex<T>& x, U y) in test() 52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0))); in test() 58 test(const std::complex<T>& x, const std::complex<U>& y) in test() 61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y))); in test() 69 test(T(3), std::complex<U>(4, 5)); in test() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/cmplx.over/ |
| H A D | pow.pass.cpp | 40 test(T x, const std::complex<U>& y) in test() 43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y))); in test() 49 test(const std::complex<T>& x, U y) in test() 52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0))); in test() 58 test(const std::complex<T>& x, const std::complex<U>& y) in test() 61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y))); in test() 69 test(T(3), std::complex<U>(4, 5)); in test() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/complex.literals/ |
| H A D | literals.pass.cpp | 22 static_assert ( std::is_same<decltype( 3.0il ), std::complex<long double>>::value, "" ); in main() 23 static_assert ( std::is_same<decltype( 3il ), std::complex<long double>>::value, "" ); in main() 24 static_assert ( std::is_same<decltype( 3.0i ), std::complex<double>>::value, "" ); in main() 25 static_assert ( std::is_same<decltype( 3i ), std::complex<double>>::value, "" ); in main() 26 static_assert ( std::is_same<decltype( 3.0if ), std::complex<float>>::value, "" ); in main() 27 static_assert ( std::is_same<decltype( 3if ), std::complex<float>>::value, "" ); in main() 30 std::complex<long double> c1 = 3.0il; in main() 31 assert ( c1 == std::complex<long double>(0, 3.0)); in main() 37 std::complex<double> c1 = 3.0i; in main() 38 assert ( c1 == std::complex<double>(0, 3.0)); in main() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/complex.literals/ |
| H A D | literals.pass.cpp | 22 static_assert ( std::is_same<decltype( 3.0il ), std::complex<long double>>::value, "" ); in main() 23 static_assert ( std::is_same<decltype( 3il ), std::complex<long double>>::value, "" ); in main() 24 static_assert ( std::is_same<decltype( 3.0i ), std::complex<double>>::value, "" ); in main() 25 static_assert ( std::is_same<decltype( 3i ), std::complex<double>>::value, "" ); in main() 26 static_assert ( std::is_same<decltype( 3.0if ), std::complex<float>>::value, "" ); in main() 27 static_assert ( std::is_same<decltype( 3if ), std::complex<float>>::value, "" ); in main() 30 std::complex<long double> c1 = 3.0il; in main() 31 assert ( c1 == std::complex<long double>(0, 3.0)); in main() 37 std::complex<double> c1 = 3.0i; in main() 38 assert ( c1 == std::complex<double>(0, 3.0)); in main() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/complex.value.ops/ |
| H A D | conj.pass.cpp | 21 test(const std::complex<T>& z, std::complex<T> x) in test() 30 test(std::complex<T>(1, 2), std::complex<T>(1, -2)); in test() 31 test(std::complex<T>(-1, 2), std::complex<T>(-1, -2)); in test() 32 test(std::complex<T>(1, -2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, -2), std::complex<T>(-1, 2)); in test()
|
| H A D | proj.pass.cpp | 23 test(const std::complex<T>& z, std::complex<T> x) in test() 32 test(std::complex<T>(1, 2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, 2), std::complex<T>(-1, 2)); in test() 34 test(std::complex<T>(1, -2), std::complex<T>(1, -2)); in test() 35 test(std::complex<T>(-1, -2), std::complex<T>(-1, -2)); in test() 43 std::complex<double> r = proj(x[i]); in test_edges()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
| H A D | conj.pass.cpp | 21 test(const std::complex<T>& z, std::complex<T> x) in test() 30 test(std::complex<T>(1, 2), std::complex<T>(1, -2)); in test() 31 test(std::complex<T>(-1, 2), std::complex<T>(-1, -2)); in test() 32 test(std::complex<T>(1, -2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, -2), std::complex<T>(-1, 2)); in test()
|
| H A D | proj.pass.cpp | 23 test(const std::complex<T>& z, std::complex<T> x) in test() 32 test(std::complex<T>(1, 2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, 2), std::complex<T>(-1, 2)); in test() 34 test(std::complex<T>(1, -2), std::complex<T>(1, -2)); in test() 35 test(std::complex<T>(-1, -2), std::complex<T>(-1, -2)); in test() 43 std::complex<double> r = proj(x[i]); in test_edges()
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/ |
| H A D | cxx1y-user-defined-literals.cpp | 21 template<typename T> struct complex {}; struct 22 complex<float> operator""if(long double); 23 complex<float> operator""if(unsigned long long); 24 complex<double> operator""i(long double); 25 complex<double> operator""i(unsigned long long); 26 complex<long double> operator""il(long double); 27 complex<long double> operator""il(unsigned long long); 40 complex<float> cf1 = 1if, cf2 = 2.if, cf3 = 0x3if; 41 complex<double> cd1 = 1i, cd2 = 2.i, cd3 = 0b0110101i; 42 complex<long double> cld1 = 1il, cld2 = 2.il, cld3 = 0047il;
|
| /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/ |
| H A D | widen_load-1.ll | 21 "file complex.c, line 27, bb1": 23 br label %"file complex.c, line 27, bb13" 25 "file complex.c, line 27, bb13": ; preds = %"file complex.c, line 27, bb1" 31 br label %"file complex.c, line 34, bb4" 33 "file complex.c, line 34, bb4": ; preds = %"file complex.c, line 27, bb13" 38 br i1 %r8, label %"file complex.c, line 34, bb7", label %"file complex.c, line 27, bb5" 40 "file complex.c, line 27, bb5": ; preds = %"file complex.c, line 34, bb4" 41 br label %"file complex.c, line 35, bb6" 43 "file complex.c, line 35, bb6": ; preds = %"file complex.c, line 27, bb5" 47 br label %"file complex.c, line 34, bb7" [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
| H A D | tan.pass.cpp | 23 test(const std::complex<T>& c, std::complex<T> x) in test() 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test() 33 test(std::complex<T>(10000, -10000), std::complex<T>(0, -1)); in test() 38 typedef std::complex<double> C; in test_edges() 43 std::complex<double> r = tan(x[i]); in test_edges() 44 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges() 45 std::complex<double> t2 = tanh(t1); in test_edges() 46 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/numerics/complex.number/complex.transcendentals/ |
| H A D | tan.pass.cpp | 23 test(const std::complex<T>& c, std::complex<T> x) in test() 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test() 33 test(std::complex<T>(10000, -10000), std::complex<T>(0, -1)); in test() 38 typedef std::complex<double> C; in test_edges() 43 std::complex<double> r = tan(x[i]); in test_edges() 44 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges() 45 std::complex<double> t2 = tanh(t1); in test_edges() 46 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
|