pub unsafe extern "C" fn hs_valid_platform() -> hs_error_t
Expand description

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.