mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
api: hs_valid_platform
This commit is contained in:
@@ -435,6 +435,23 @@ hs_error_t hs_set_stream_allocator(hs_alloc_t alloc_func, hs_free_t free_func);
|
||||
*/
|
||||
const char *hs_version(void);
|
||||
|
||||
/**
|
||||
* Utility function to test the current system architecture.
|
||||
*
|
||||
* Hyperscan requires the Supplemental Streaming SIMD Extensions 3 instruction
|
||||
* set. This function can be called on any x86 platform to determine if the
|
||||
* system provides the required instruction set.
|
||||
*
|
||||
* This function does not test for more advanced features if Hyperscan has
|
||||
* been built for a more specific architecture, for example the AVX2
|
||||
* instruction set.
|
||||
*
|
||||
* @return
|
||||
* @ref HS_SUCCESS on success, @ref HS_ARCH_ERROR if system does not
|
||||
* support Hyperscan.
|
||||
*/
|
||||
hs_error_t hs_valid_platform(void);
|
||||
|
||||
/**
|
||||
* @defgroup HS_ERROR hs_error_t values
|
||||
*
|
||||
|
Reference in New Issue
Block a user