2015-05-24 04:32:32 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <algorithm>
|
|
|
|
#include <array>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <bitset>
|
|
|
|
#include <cassert>
|
|
|
|
#include <cctype>
|
|
|
|
#include <cerrno>
|
|
|
|
#include <cmath>
|
|
|
|
#include <cstdarg>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
|
|
|
#include <ctime>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <deque>
|
|
|
|
#include <errno.h>
|
2014-08-15 06:51:13 +00:00
|
|
|
#if !defined ANDROID && !defined _WIN32
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <execinfo.h>
|
2013-10-21 14:36:40 +00:00
|
|
|
#endif
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
2014-08-15 06:51:13 +00:00
|
|
|
#ifndef _WIN32
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <getopt.h>
|
2014-08-15 06:51:13 +00:00
|
|
|
#endif
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <iomanip>
|
|
|
|
#include <iostream>
|
2015-03-01 13:52:09 +00:00
|
|
|
#include <limits.h>
|
2016-06-24 08:43:46 +00:00
|
|
|
#include <limits>
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <list>
|
|
|
|
#include <locale.h>
|
|
|
|
#include <map>
|
|
|
|
#include <math.h>
|
2015-03-01 13:52:09 +00:00
|
|
|
#include <memory.h>
|
2016-06-24 08:43:46 +00:00
|
|
|
#include <memory>
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <mutex>
|
|
|
|
#include <numeric>
|
2014-08-15 06:51:13 +00:00
|
|
|
#ifndef _WIN32
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <pthread.h>
|
2014-08-15 06:51:13 +00:00
|
|
|
#endif
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <queue>
|
|
|
|
#include <set>
|
|
|
|
#include <sstream>
|
|
|
|
#include <stack>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <thread>
|
|
|
|
#include <time.h>
|
|
|
|
#include <type_traits>
|
2014-08-15 06:51:13 +00:00
|
|
|
#ifndef _WIN32
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <unistd.h>
|
2014-08-15 06:51:13 +00:00
|
|
|
#endif
|
2013-10-17 04:06:34 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
2014-02-18 11:09:38 +00:00
|
|
|
|
2014-08-15 06:51:13 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
2018-07-05 20:51:30 +00:00
|
|
|
#if _MSC_FULL_VER < 191426433
|
2017-06-02 22:12:33 +00:00
|
|
|
#error Please update your build environment to the latest Visual Studio 2017!
|
2014-08-15 06:51:13 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2014-02-18 11:09:38 +00:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/Thread.h"
|