lean2/src/util/numerics
Soonho Kong 39645390ff chore(util/*): add cstddef header before including gmp.h/mpfr.h
Reference: https://gcc.gnu.org/gcc-4.9/porting_to.html

------

Header <cstddef> changes

The <cstddef> header was updated for C++11 support and this breaks some
libraries which misuse macros meant for internal use by GCC only. For
instance with GMP versions up to 5.1.3, you may see:

/usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been declared
   using ::max_align_t;
           ^
Another possible error is:

someheader.h:99:13: error: ‘ptrdiff_t’ does not name a type

A workaround until libraries get updated is to include <cstddef> or
<stddef.h> before any headers from that library.
2014-10-07 02:36:57 -04:00
..
CMakeLists.txt refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
double.cpp refactor(*): replace LEAN_THREAD_LOCAL with MK_THREAD_LOCAL_GET, the new macro uses the Boost thread_local_ptr instead of 'thread_local' directive 2014-06-07 10:18:36 -07:00
double.h chore(util/*): add cstddef header before including gmp.h/mpfr.h 2014-10-07 02:36:57 -04:00
float.cpp refactor(*): replace LEAN_THREAD_LOCAL with MK_THREAD_LOCAL_GET, the new macro uses the Boost thread_local_ptr instead of 'thread_local' directive 2014-06-07 10:18:36 -07:00
float.h chore(util/*): add cstddef header before including gmp.h/mpfr.h 2014-10-07 02:36:57 -04:00
gcd.h feat(numerics): add gcd and extended gcd templates (for primitive types) 2013-10-16 18:18:20 -07:00
init_module.cpp chore(util/*): add cstddef header before including gmp.h/mpfr.h 2014-10-07 02:36:57 -04:00
init_module.h refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
mpbq.cpp refactor(*): remove dependency to thread_local C++11 keyword, the 2014-09-24 12:51:04 -07:00
mpbq.h refactor(*): remove dependency to thread_local C++11 keyword, the 2014-09-24 12:51:04 -07:00
mpfp.cpp refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
mpfp.h chore(util/*): add cstddef header before including gmp.h/mpfr.h 2014-10-07 02:36:57 -04:00
mpq.cpp refactor(*): remove dependency to thread_local C++11 keyword, the 2014-09-24 12:51:04 -07:00
mpq.h refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
mpz.cpp refactor(*): remove dependency to thread_local C++11 keyword, the 2014-09-24 12:51:04 -07:00
mpz.h chore(util/*): add cstddef header before including gmp.h/mpfr.h 2014-10-07 02:36:57 -04:00
numeric_traits.cpp Use fullpath in #include directives, add missing STL headers 2013-09-13 03:35:29 -07:00
numeric_traits.h Add numeric_traits for double and float 2013-08-06 20:00:37 -07:00
power.h feat(numerics/zpz): add numeric_traits for zpz numerals 2013-10-18 14:41:18 -07:00
primes.cpp refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
primes.h refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
register_module.h refactor(frontends/lua): rename leanlua_state to script_state, and move it to util 2013-11-27 14:57:36 -08:00
remainder.h feat(numerics): add finite field Z/pZ 2013-10-18 13:27:28 -07:00
xnumeral.h test(util/numerics): more tests to improve coverage 2013-09-28 23:38:17 -07:00
zpz.cpp refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00
zpz.h refactor(util/numerics): explicit initialization/finalization 2014-09-24 10:12:29 -07:00