-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=273927 rdar://127795191 Reviewed by Keith Miller. This patch adds wtf/SIMDHelpers.h, which offers various SIMD abstraction on the top of simde. The main motivation is writing SIMD code for LChar / UChar in the same code. Also, we add some x64 specific optimizations for some of particular primitive operations. * Source/JavaScriptCore/runtime/JSONObject.cpp: (JSC::FastStringifier<CharType>::append): * Source/JavaScriptCore/runtime/LiteralParser.cpp: (JSC::LiteralParser<CharType>::Lexer::lexString): * Source/WTF/WTF.xcodeproj/project.pbxproj: * Source/WTF/wtf/CMakeLists.txt: * Source/WTF/wtf/SIMDHelpers.h: Added. (WTF::SIMD::splat): (WTF::SIMD::load): (WTF::SIMD::store): (WTF::SIMD::merge): (WTF::SIMD::isNonZero): (WTF::SIMD::findFirstNonZeroIndex): (WTF::SIMD::equal): (WTF::SIMD::lessThan): * Source/WTF/wtf/text/StringCommon.h: Canonical link: https://commits.webkit.org/278572@main
- Loading branch information
1 parent
0d5648d
commit d99e74d
Showing
6 changed files
with
234 additions
and
167 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
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 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 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
Oops, something went wrong.