-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SIMD to String::isAscii, check if this builds in every platform…
… or I have to revert. Fixed emscripten 3 and 4 build issues (i had 2 mains defined 🤦).
- Loading branch information
Showing
3 changed files
with
46 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include <eepp/config.hpp> | ||
|
||
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN | ||
|
||
#if __has_include( <simd>) && __cplusplus >= 202002L | ||
#include <simd> // C++23 std::simd | ||
#define USE_STD_SIMD | ||
#elif __has_include( <experimental/simd>) | ||
#include <experimental/simd> // Parallelism TS v2 | ||
#define USE_EXPERIMENTAL_SIMD | ||
#endif | ||
|
||
#ifdef USE_STD_SIMD | ||
namespace simd = std; | ||
#elif defined( USE_EXPERIMENTAL_SIMD ) | ||
namespace simd = std::experimental; | ||
#endif | ||
|
||
#if defined( USE_STD_SIMD ) || defined( USE_EXPERIMENTAL_SIMD ) | ||
#define EE_STD_SIMD | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.