api: hs_valid_platform

This commit is contained in:
Matthew Barr
2016-11-29 16:08:14 +11:00
parent c3a73446ee
commit 0d0e1a5106
4 changed files with 85 additions and 9 deletions

View File

@@ -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
*