Skip to content

Instantly share code, notes, and snippets.

View mgaunard's full-sized avatar

Mathias Gaunard mgaunard

  • Crypto startup
  • London
View GitHub Profile
@mgaunard
mgaunard / ipa.js
Last active July 6, 2025 00:24 — forked from tantalor/ipa.js
// This work is licensed under the Creative Commons Attribution 3.0 United States License. To view
// a copy of this license, visit http://creativecommons.org/licenses/by/3.0/us/ or send a letter
// to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
// Copyright 2009 John Tantalo <john.tantalo@gmail.com>
// Copyright 2014 Mathias Gaunard <mathias@gaunard.com>
(function () {
// get selection
var selection = window.getSelection ? window.getSelection() :
@mgaunard
mgaunard / gist:5685444
Last active December 17, 2015 22:58 — forked from anonymous/gist:5685297
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//==============================================================================
#define NT2_UNIT_MODULE "nt2 arithmetic toolbox - abs/simd Mode"
@mgaunard
mgaunard / gist:4001714
Created November 2, 2012 14:33 — forked from psiha/gist:4001645
blunder
namespace boost { namespace simd { namespace ext
{
BOOST_SIMD_FUNCTOR_IMPLEMENTATION( boost::simd::tag::minus_, boost::simd::tag::cpu_
, (A0)
, ((simd_<arithmetic_<A0>, boost::simd::tag::simd_emulation_<16> >))
((simd_<arithmetic_<A0>, boost::simd::tag::simd_emulation_<16> >))
)
{
typedef A0 result_type;
@mgaunard
mgaunard / native.patch
Created August 19, 2011 15:44
native patch
@@ -10,22 +10,61 @@
#define BOOST_SIMD_SDK_SIMD_NATIVE_HPP_INCLUDED
#include <boost/utility/enable_if.hpp>
#include <boost/dispatch/meta/fusion.hpp>
#include <boost/simd/sdk/simd/category.hpp>
#include <boost/simd/sdk/memory/overload.hpp>
+#include <boost/dispatch/attributes.hpp>
#include <boost/dispatch/error/static_assert.hpp>
#include <boost/simd/sdk/simd/meta/is_vectorizable.hpp>