1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix code format

This commit is contained in:
bolero-MURAKAMI 2016-04-05 11:57:06 +09:00
parent aa8e265188
commit a0060119ab
31 changed files with 379 additions and 379 deletions

View file

@ -1,14 +1,14 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_HPP
#define SPROUT_PREDEF_HARDWARE_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd.hpp>
#endif // #ifndef SPROUT_PREDEF_HARDWARE_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_HPP
#define SPROUT_PREDEF_HARDWARE_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd.hpp>
#endif // #ifndef SPROUT_PREDEF_HARDWARE_HPP

View file

@ -1,47 +1,47 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86.hpp>
#include <sprout/predef/hardware/simd/x86_amd.hpp>
#include <sprout/predef/hardware/simd/arm.hpp>
#include <sprout/predef/hardware/simd/ppc.hpp>
#if defined(SPROUT_HW_SIMD_ARM_AVAILABLE) && defined(SPROUT_HW_SIMD_PPC_AVAILABLE) \
|| defined(SPROUT_HW_SIMD_ARM_AVAILABLE) && defined(SPROUT_HW_SIMD_X86_AVAILABLE) \
|| defined(SPROUT_HW_SIMD_PPC_AVAILABLE) && defined(SPROUT_HW_SIMD_X86_AVAILABLE)
# error "Multiple SIMD architectures detected, this cannot happen!"
#endif
#if defined(SPROUT_HW_SIMD_X86_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_X86
#endif
#if defined(SPROUT_HW_SIMD_X86_AMD_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_X86_AMD
#endif
#if defined(SPROUT_HW_SIMD_ARM_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_ARM
#endif
#if defined(SPROUT_HW_SIMD_PPC_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_PPC
#endif
#if defined(SPROUT_HW_SIMD)
# define SPROUT_HW_SIMD_AVAILABLE
#else
# define SPROUT_HW_SIMD 0
#endif
#define SPROUT_HW_SIMD_NAME "Hardware SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86.hpp>
#include <sprout/predef/hardware/simd/x86_amd.hpp>
#include <sprout/predef/hardware/simd/arm.hpp>
#include <sprout/predef/hardware/simd/ppc.hpp>
#if defined(SPROUT_HW_SIMD_ARM_AVAILABLE) && defined(SPROUT_HW_SIMD_PPC_AVAILABLE) \
|| defined(SPROUT_HW_SIMD_ARM_AVAILABLE) && defined(SPROUT_HW_SIMD_X86_AVAILABLE) \
|| defined(SPROUT_HW_SIMD_PPC_AVAILABLE) && defined(SPROUT_HW_SIMD_X86_AVAILABLE)
# error "Multiple SIMD architectures detected, this cannot happen!"
#endif
#if defined(SPROUT_HW_SIMD_X86_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_X86
#endif
#if defined(SPROUT_HW_SIMD_X86_AMD_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_X86_AMD
#endif
#if defined(SPROUT_HW_SIMD_ARM_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_ARM
#endif
#if defined(SPROUT_HW_SIMD_PPC_AVAILABLE)
# define SPROUT_HW_SIMD SPROUT_HW_SIMD_PPC
#endif
#if defined(SPROUT_HW_SIMD)
# define SPROUT_HW_SIMD_AVAILABLE
#else
# define SPROUT_HW_SIMD 0
#endif
#define SPROUT_HW_SIMD_NAME "Hardware SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_HPP

View file

@ -1,29 +1,29 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/arm/versions.hpp>
#define SPROUT_HW_SIMD_ARM 0
#undef SPROUT_HW_SIMD_ARM
#if !defined(SPROUT_HW_SIMD_ARM) && (defined(__ARM_NEON__) || defined(__aarch64__) || defined (_M_ARM))
# define SPROUT_HW_SIMD_ARM SPROUT_HW_SIMD_ARM_NEON_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_ARM)
# define SPROUT_HW_SIMD_ARM 0
#else
# define SPROUT_HW_SIMD_ARM_AVAILABLE
#endif
#define SPROUT_HW_SIMD_ARM_NAME "ARM SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/arm/versions.hpp>
#define SPROUT_HW_SIMD_ARM 0
#undef SPROUT_HW_SIMD_ARM
#if !defined(SPROUT_HW_SIMD_ARM) && (defined(__ARM_NEON__) || defined(__aarch64__) || defined (_M_ARM))
# define SPROUT_HW_SIMD_ARM SPROUT_HW_SIMD_ARM_NEON_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_ARM)
# define SPROUT_HW_SIMD_ARM 0
#else
# define SPROUT_HW_SIMD_ARM_AVAILABLE
#endif
#define SPROUT_HW_SIMD_ARM_NAME "ARM SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_HPP

View file

@ -1,16 +1,16 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_ARM_NEON_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_ARM_NEON_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_HPP

View file

@ -1,35 +1,35 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/ppc/versions.hpp>
#define SPROUT_HW_SIMD_PPC 0
#undef SPROUT_HW_SIMD_PPC
#if !defined(SPROUT_HW_SIMD_PPC) && defined(__VECTOR4DOUBLE__)
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_QPX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC) && defined(__VSX__)
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_VSX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC) && (defined(__ALTIVEC__) || defined(__VEC__))
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_VMX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC)
# define SPROUT_HW_SIMD_PPC 0
#else
# define SPROUT_HW_SIMD_PPC_AVAILABLE
#endif
#define SPROUT_HW_SIMD_PPC_NAME "PPC SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/ppc/versions.hpp>
#define SPROUT_HW_SIMD_PPC 0
#undef SPROUT_HW_SIMD_PPC
#if !defined(SPROUT_HW_SIMD_PPC) && defined(__VECTOR4DOUBLE__)
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_QPX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC) && defined(__VSX__)
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_VSX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC) && (defined(__ALTIVEC__) || defined(__VEC__))
# define SPROUT_HW_SIMD_PPC SPROUT_HW_SIMD_PPC_VMX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_PPC)
# define SPROUT_HW_SIMD_PPC 0
#else
# define SPROUT_HW_SIMD_PPC_AVAILABLE
#endif
#define SPROUT_HW_SIMD_PPC_NAME "PPC SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_HPP

View file

@ -1,20 +1,20 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_PPC_VMX_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#define SPROUT_HW_SIMD_PPC_VSX_VERSION SPROUT_VERSION_NUMBER(1, 1, 0)
#define SPROUT_HW_SIMD_PPC_QPX_VERSION SPROUT_VERSION_NUMBER(2, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_PPC_VMX_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#define SPROUT_HW_SIMD_PPC_VSX_VERSION SPROUT_VERSION_NUMBER(1, 1, 0)
#define SPROUT_HW_SIMD_PPC_QPX_VERSION SPROUT_VERSION_NUMBER(2, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_HPP

View file

@ -1,59 +1,59 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86/versions.hpp>
#define SPROUT_HW_SIMD_X86 0
#undef SPROUT_HW_SIMD_X86
#if !defined(SPROUT_HW_SIMD_X86) && defined(__MIC__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_MIC_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__AVX2__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_AVX2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__AVX__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_AVX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__FMA__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_FMA_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE4_2__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE4_2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE4_1__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE4_1_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSSE3__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSSE3_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE3__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE3_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && (defined(__SSE2__) || defined(_M_X64) || _M_IX86_FP >= 2)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && (defined(__SSE__) || defined(_M_X64) || _M_IX86_FP >= 1)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__MMX__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_MMX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86)
# define SPROUT_HW_SIMD_X86 0
#else
# define SPROUT_HW_SIMD_X86_AVAILABLE
#endif
#define SPROUT_HW_SIMD_X86_NAME "x86 SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86/versions.hpp>
#define SPROUT_HW_SIMD_X86 0
#undef SPROUT_HW_SIMD_X86
#if !defined(SPROUT_HW_SIMD_X86) && defined(__MIC__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_MIC_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__AVX2__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_AVX2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__AVX__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_AVX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__FMA__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_FMA_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE4_2__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE4_2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE4_1__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE4_1_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSSE3__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSSE3_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__SSE3__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE3_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && (defined(__SSE2__) || defined(_M_X64) || _M_IX86_FP >= 2)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE2_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && (defined(__SSE__) || defined(_M_X64) || _M_IX86_FP >= 1)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_SSE_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86) && defined(__MMX__)
# define SPROUT_HW_SIMD_X86 SPROUT_HW_SIMD_X86_MMX_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86)
# define SPROUT_HW_SIMD_X86 0
#else
# define SPROUT_HW_SIMD_X86_AVAILABLE
#endif
#define SPROUT_HW_SIMD_X86_NAME "x86 SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_HPP

View file

@ -1,36 +1,36 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_X86_MMX_VERSION SPROUT_VERSION_NUMBER(0, 99, 0)
#define SPROUT_HW_SIMD_X86_SSE_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#define SPROUT_HW_SIMD_X86_SSE2_VERSION SPROUT_VERSION_NUMBER(2, 0, 0)
#define SPROUT_HW_SIMD_X86_SSE3_VERSION SPROUT_VERSION_NUMBER(3, 0, 0)
#define SPROUT_HW_SIMD_X86_SSSE3_VERSION SPROUT_VERSION_NUMBER(3, 1, 0)
#define SPROUT_HW_SIMD_X86_SSE4_1_VERSION SPROUT_VERSION_NUMBER(4, 1, 0)
#define SPROUT_HW_SIMD_X86_SSE4_2_VERSION SPROUT_VERSION_NUMBER(4, 2, 0)
#define SPROUT_HW_SIMD_X86_AVX_VERSION SPROUT_VERSION_NUMBER(5, 0, 0)
#define SPROUT_HW_SIMD_X86_FMA3_VERSION SPROUT_VERSION_NUMBER(5, 2, 0)
#define SPROUT_HW_SIMD_X86_AVX2_VERSION SPROUT_VERSION_NUMBER(5, 3, 0)
#define SPROUT_HW_SIMD_X86_MIC_VERSION SPROUT_VERSION_NUMBER(9, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_X86_MMX_VERSION SPROUT_VERSION_NUMBER(0, 99, 0)
#define SPROUT_HW_SIMD_X86_SSE_VERSION SPROUT_VERSION_NUMBER(1, 0, 0)
#define SPROUT_HW_SIMD_X86_SSE2_VERSION SPROUT_VERSION_NUMBER(2, 0, 0)
#define SPROUT_HW_SIMD_X86_SSE3_VERSION SPROUT_VERSION_NUMBER(3, 0, 0)
#define SPROUT_HW_SIMD_X86_SSSE3_VERSION SPROUT_VERSION_NUMBER(3, 1, 0)
#define SPROUT_HW_SIMD_X86_SSE4_1_VERSION SPROUT_VERSION_NUMBER(4, 1, 0)
#define SPROUT_HW_SIMD_X86_SSE4_2_VERSION SPROUT_VERSION_NUMBER(4, 2, 0)
#define SPROUT_HW_SIMD_X86_AVX_VERSION SPROUT_VERSION_NUMBER(5, 0, 0)
#define SPROUT_HW_SIMD_X86_FMA3_VERSION SPROUT_VERSION_NUMBER(5, 2, 0)
#define SPROUT_HW_SIMD_X86_AVX2_VERSION SPROUT_VERSION_NUMBER(5, 3, 0)
#define SPROUT_HW_SIMD_X86_MIC_VERSION SPROUT_VERSION_NUMBER(9, 0, 0)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_VERSIONS_HPP

View file

@ -1,40 +1,40 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86_amd/versions.hpp>
#define SPROUT_HW_SIMD_X86_AMD 0
#undef SPROUT_HW_SIMD_X86_AMD
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__XOP__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_XOP_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__FMA4__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_FMA4_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__SSE4A__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_SSE4A_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD)
# define SPROUT_HW_SIMD_X86_AMD 0
#else
# include <sprout/predef/hardware/simd/x86.h>
# if SPROUT_HW_SIMD_X86 > SPROUT_HW_SIMD_X86_AMD
# undef SPROUT_HW_SIMD_X86_AMD
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86
# endif
# define SPROUT_HW_SIMD_X86_AMD_AVAILABLE
#endif
#define SPROUT_HW_SIMD_X86_AMD_NAME "x86 (AMD) SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP
#include <sprout/config.hpp>
#include <sprout/predef/hardware/simd/x86_amd/versions.hpp>
#define SPROUT_HW_SIMD_X86_AMD 0
#undef SPROUT_HW_SIMD_X86_AMD
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__XOP__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_XOP_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__FMA4__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_FMA4_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD) && defined(__SSE4A__)
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86_AMD_SSE4A_VERSION
#endif
#if !defined(SPROUT_HW_SIMD_X86_AMD)
# define SPROUT_HW_SIMD_X86_AMD 0
#else
# include <sprout/predef/hardware/simd/x86.h>
# if SPROUT_HW_SIMD_X86 > SPROUT_HW_SIMD_X86_AMD
# undef SPROUT_HW_SIMD_X86_AMD
# define SPROUT_HW_SIMD_X86_AMD SPROUT_HW_SIMD_X86
# endif
# define SPROUT_HW_SIMD_X86_AMD_AVAILABLE
#endif
#define SPROUT_HW_SIMD_X86_AMD_NAME "x86 (AMD) SIMD"
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_HPP

View file

@ -1,20 +1,20 @@
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_X86_AMD_SSE4A_VERSION SPROUT_VERSION_NUMBER(4, 0, 0)
#define SPROUT_HW_SIMD_X86_AMD_FMA4_VERSION SPROUT_VERSION_NUMBER(5, 1, 0)
#define SPROUT_HW_SIMD_X86_AMD_XOP_VERSION SPROUT_VERSION_NUMBER(5, 1, 1)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP
/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP
#define SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP
#include <sprout/config.hpp>
#include <sprout/predef/version_number.hpp>
#define SPROUT_HW_SIMD_X86_AMD_SSE4A_VERSION SPROUT_VERSION_NUMBER(4, 0, 0)
#define SPROUT_HW_SIMD_X86_AMD_FMA4_VERSION SPROUT_VERSION_NUMBER(5, 1, 0)
#define SPROUT_HW_SIMD_X86_AMD_XOP_VERSION SPROUT_VERSION_NUMBER(5, 1, 1)
#endif // #ifndef SPROUT_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_HPP

View file

@ -13,12 +13,12 @@
#define SPROUT_LANG_OBJC 0
#if defined(__OBJC__)
# undef SPROUT_LANG_OBJC
# define SPROUT_LANG_OBJC 1
# undef SPROUT_LANG_OBJC
# define SPROUT_LANG_OBJC 1
#endif
#if SPROUT_LANG_OBJC
# define SPROUT_LANG_OBJC_AVAILABLE
# define SPROUT_LANG_OBJC_AVAILABLE
#endif
#define SPROUT_LANG_OBJC_NAME "Objective-C"

View file

@ -14,20 +14,20 @@
#define SPROUT_LANG_STDC 0
#if defined(__STDC__)
# undef SPROUT_LANG_STDC
# if defined(__STDC_VERSION__)
# if (__STDC_VERSION__ > 100)
# define SPROUT_LANG_STDC SPROUT_PREDEF_MAKE_YYYYMM(__STDC_VERSION__)
# else
# define SPROUT_LANG_STDC 1
# endif
# else
# define SPROUT_LANG_STDC 1
# endif
# undef SPROUT_LANG_STDC
# if defined(__STDC_VERSION__)
# if (__STDC_VERSION__ > 100)
# define SPROUT_LANG_STDC SPROUT_PREDEF_MAKE_YYYYMM(__STDC_VERSION__)
# else
# define SPROUT_LANG_STDC 1
# endif
# else
# define SPROUT_LANG_STDC 1
# endif
#endif
#if SPROUT_LANG_STDC
# define SPROUT_LANG_STDC_AVAILABLE
# define SPROUT_LANG_STDC_AVAILABLE
#endif
#define SPROUT_LANG_STDC_NAME "Standard C"

View file

@ -14,16 +14,16 @@
#define SPROUT_LANG_STDCPP 0
#if defined(__cplusplus)
# undef SPROUT_LANG_STDCPP
# if (__cplusplus > 100)
# define SPROUT_LANG_STDCPP SPROUT_PREDEF_MAKE_YYYYMM(__cplusplus)
# else
# define SPROUT_LANG_STDCPP 1
# endif
# undef SPROUT_LANG_STDCPP
# if (__cplusplus > 100)
# define SPROUT_LANG_STDCPP SPROUT_PREDEF_MAKE_YYYYMM(__cplusplus)
# else
# define SPROUT_LANG_STDCPP 1
# endif
#endif
#if SPROUT_LANG_STDCPP
# define SPROUT_LANG_STDCPP_AVAILABLE
# define SPROUT_LANG_STDCPP_AVAILABLE
#endif
#define SPROUT_LANG_STDCPP_NAME "Standard C++"
@ -31,16 +31,16 @@
#define SPROUT_LANG_STDCPPCLI 0
#if defined(__cplusplus_cli)
# undef SPROUT_LANG_STDCPPCLI
# if (__cplusplus_cli > 100)
# define SPROUT_LANG_STDCPPCLI SPROUT_PREDEF_MAKE_YYYYMM(__cplusplus_cli)
# else
# define SPROUT_LANG_STDCPPCLI 1
# endif
# undef SPROUT_LANG_STDCPPCLI
# if (__cplusplus_cli > 100)
# define SPROUT_LANG_STDCPPCLI SPROUT_PREDEF_MAKE_YYYYMM(__cplusplus_cli)
# else
# define SPROUT_LANG_STDCPPCLI 1
# endif
#endif
#if SPROUT_LANG_STDCPPCLI
# define SPROUT_LANG_STDCPPCLI_AVAILABLE
# define SPROUT_LANG_STDCPPCLI_AVAILABLE
#endif
#define SPROUT_LANG_STDCPPCLI_NAME "Standard C++/CLI"
@ -48,12 +48,12 @@
#define SPROUT_LANG_STDECPP 0
#if defined(__embedded_cplusplus)
# undef SPROUT_LANG_STDECPP
# define SPROUT_LANG_STDECPP 1
# undef SPROUT_LANG_STDECPP
# define SPROUT_LANG_STDECPP 1
#endif
#if SPROUT_LANG_STDECPP
# define SPROUT_LANG_STDECPP_AVAILABLE
# define SPROUT_LANG_STDECPP_AVAILABLE
#endif
#define SPROUT_LANG_STDECPP_NAME "Standard Embedded C++"

View file

@ -17,7 +17,7 @@
# undef SPROUT_PLAT_WINDOWS_DESKTOP
# define SPROUT_PLAT_WINDOWS_DESKTOP 1
#endif
#if SPROUT_PLAT_WINDOWS_DESKTOP
# define SPROUT_PLAT_WINDOWS_DESKTOP_AVALIABLE
# include <sprout/predef/detail/platform_detected.hpp>

View file

@ -17,7 +17,7 @@
# undef SPROUT_PLAT_WINDOWS_PHONE
# define SPROUT_PLAT_WINDOWS_PHONE 1
#endif
#if SPROUT_PLAT_WINDOWS_PHONE
# define SPROUT_PLAT_WINDOWS_PHONE_AVALIABLE
# include <sprout/predef/detail/platform_detected.hpp>

View file

@ -17,7 +17,7 @@
# undef SPROUT_PLAT_WINDOWS_RUNTIME
# define SPROUT_PLAT_WINDOWS_RUNTIME 1
#endif
#if SPROUT_PLAT_WINDOWS_RUNTIME
# define SPROUT_PLAT_WINDOWS_RUNTIME_AVALIABLE
# include <sprout/predef/detail/platform_detected.hpp>

View file

@ -17,7 +17,7 @@
# undef SPROUT_PLAT_WINDOWS_STORE
# define SPROUT_PLAT_WINDOWS_STORE 1
#endif
#if SPROUT_PLAT_WINDOWS_STORE
# define SPROUT_PLAT_WINDOWS_STORE_AVALIABLE
# include <sprout/predef/detail/platform_detected.hpp>

View file

@ -14,7 +14,7 @@
// SPROUT_VERSION_NUMBER
//
#define SPROUT_VERSION_NUMBER(MAJOR, MINOR, PATCH) \
( (((MAJOR) % 100) * 10000000) + (((MINOR) % 100) * 100000) + ((PATCH) % 100000) )
( (((MAJOR) % 100) * 10000000) + (((MINOR) % 100) * 100000) + ((PATCH) % 100000) )
//
// SPROUT_VERSION_NUMBER_MAX
@ -22,19 +22,19 @@
// SPROUT_VERSION_NUMBER_ZERO
//
#define SPROUT_VERSION_NUMBER_MAX \
SPROUT_VERSION_NUMBER(99, 99, 99999)
SPROUT_VERSION_NUMBER(99, 99, 99999)
#define SPROUT_VERSION_NUMBER_MIN \
SPROUT_VERSION_NUMBER(0, 0, 1)
SPROUT_VERSION_NUMBER(0, 0, 1)
#define SPROUT_VERSION_NUMBER_ZERO \
SPROUT_VERSION_NUMBER(0, 0, 0)
SPROUT_VERSION_NUMBER(0, 0, 0)
//
// SPROUT_VERSION_NUMBER_AVAILABLE
// SPROUT_VERSION_NUMBER_NOT_AVAILABLE
//
#define SPROUT_VERSION_NUMBER_AVAILABLE \
SPROUT_VERSION_NUMBER_MIN
SPROUT_VERSION_NUMBER_MIN
#define SPROUT_VERSION_NUMBER_NOT_AVAILABLE \
SPROUT_VERSION_NUMBER_ZERO
SPROUT_VERSION_NUMBER_ZERO
#endif // #ifndef SPROUT_PREDEF_OS_BSD_BSDI_HPP