Skip to content

Instantly share code, notes, and snippets.

View mattkretz's full-sized avatar

Matthias Kretz mattkretz

View GitHub Profile
#include <type_traits>
#include <utility>
template<typename T> struct X { typedef std::true_type type; };
template<typename T>
using tester = typename X<T>::type;
template<typename T>
typename std::enable_if<tester<T>::value, int>::type foo()
#include <type_traits>
#include <utility>
template<typename F, typename A>
std::true_type test(int bla);
template<typename F, typename A>
std::false_type test(...);
template<typename F, typename A>
template <typename... Ts> struct A
{
template <typename U, template <typename, typename, U> class C, U value>
using B = C<Ts..., value>;
};
@mattkretz
mattkretz / .gitconfig
Last active November 27, 2015 11:26 — forked from ErisDS/.gitconfig
Changelog generator: add this to your ~/.gitconfig file, and then run `git cl x.x.x..x.x.x+1` E.g. `git cl 0.7.1..0.7.2`
[alias]
cl = log --no-merges --pretty=tformat:'* [`%h`](https://github.com/VcDevel/Vc/commit/%h) %s - %an'
  • 3c82ead Adjust tests to avoid invalid SimdArray instantiations - Matthias Kretz
  • cb2f84c SimdArray: error for instantiations that break subscripting - Matthias Kretz
  • c62972d MIC: Fix copysign implementation - Matthias Kretz
  • da83c44 Deprecate Vector::copySign in favor of Vc::copysign - Matthias Kretz
  • f121987 Add test for copysign - Matthias Kretz
  • 2701e14 New SimdArray ctor overloads to fix loads from C-arrays - Matthias Kretz
  • cbbb6d2 Extend load test to load from T[] - Matthias Kretz
  • 8137441 test case for failing construction of Vc::SimdArray<int,2> - Sandro Wenzel
  • [02baab4](https://github.com/VcDev
  • 9a0d148 docs: document SimdMaskArray using mostly \copydoc - Matthias Kretz
  • 66c3fee SimdArray: add missing new/delete operator overloads - Matthias Kretz
  • 3ecaee2 docs: document new/delete operator overloads - Matthias Kretz
  • 730eab7 SimdArray: rename parameter VectorType to V - Matthias Kretz
  • 28f05c5 docs: Documentation for SimdArray copying from Vector - Matthias Kretz
  • 21a9b12 docs: Fix doxygen warnings by adding more documentation - Matthias Kretz
  • 85f4e21 docs: Document deprecated gather/scatter - Matthias Kretz
  • f3be3ea docs: SimdArray math functions documented - Matthias Kretz
  • [40d491e](https://
  • dbeb19a Update README for 1.3 - Matthias Kretz
  • 362e5c9 Tests: fix corner case on simd_for_each - Matthias Kretz
  • a3dbc3f Remove stale ROOT release script - Matthias Kretz
  • 5b50cd9 Test simd_for_each_n and fix it - Matthias Kretz
  • c4c342e Adding simd_for_each_n - Hartmut Kaiser
  • 6357205 MSVC: work around isnan miscompilation - Matthias Kretz
  • 826aa8f SimdArray: use inline instead of Vc_INTRINSIC - Matthias Kretz
  • 444ad27 MSVC: work around miscompilation - Matthias Kretz
  • 3bd5bfc SimdArray: fix linkage & use inline/Vc_INTRINSIC - Matthias Kretz
  • [74897b8](
  • 53f6759 CMake: Skip MIC builds with non-Makefile generators - Matthias Kretz
  • 9ac1335 Remove spline example - Matthias Kretz
  • 0763c0c CMake: glob examples directories instead of listing them - Matthias Kretz
  • c3dfebe Mention AoVS - Matthias Kretz
  • 3f78772 CTest: ignore warning addressing Vc users - Matthias Kretz
  • 57aa8d5 CTest: Find the right file if the branch name has a / - Matthias Kretz
  • b3cb9da CTest: Omit git hash on nightlies - Matthias Kretz
  • 975ccdb CTest: Improve CDash sorting and presentation - Matthias Kretz
  • 72c3d25 Examples: End recursion earl
  • 71f831c Silence Wignored-attributes in user code - Matthias Kretz
  • 2a2dbf1 OFA: Add more Intel family numbers + kaby-lake - Matthias Kretz
0000000000c0e060 <Vc::v2::datapar<double, Vc::v2::datapar_abi::fixed_size<8> > sqr<Vc::v2::datapar<double, Vc::v2::datapar_abi::fixed_size<8> > >(Vc::v2::datapar<double, Vc::v2::datapar_abi::fixed_size<8> > const&)>:
c0e060:· vmovapd (%rsi),%ymm1
c0e064:· mov %rdi,%rax
c0e067:· vmovapd 0x20(%rsi),%ymm0
c0e06c:· vmulpd %ymm1,%ymm1,%ymm1
c0e070:· vmulpd %ymm0,%ymm0,%ymm0
c0e074:· vmovapd %ymm1,(%rdi)
c0e078:· vmovapd %ymm0,0x20(%rdi)
c0e07d:· vzeroupper·
c0e080:· retq