mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 16:23:16 +00:00
30 lines
728 B
C++
30 lines
728 B
C++
![]() |
//
|
||
|
// strnlen-avx2.cpp
|
||
|
//
|
||
|
// Copyright (c) Timo Kreuzer
|
||
|
//
|
||
|
// Explicit template instantiations for AVX2 str(n)len code
|
||
|
//
|
||
|
|
||
|
#pragma GCC target("avx2")
|
||
|
#define _UCRT_BUILD_AVX2
|
||
|
#include "strnlen.cpp"
|
||
|
|
||
|
template
|
||
|
size_t __cdecl common_strnlen_simd<bounded, __crt_simd_isa::avx2, uint8_t>(
|
||
|
uint8_t const* const string,
|
||
|
size_t const maximum_count
|
||
|
) throw();
|
||
|
|
||
|
template
|
||
|
size_t __cdecl common_strnlen_simd<bounded, __crt_simd_isa::avx2, uint16_t>(
|
||
|
uint16_t const* const string,
|
||
|
size_t const maximum_count
|
||
|
) throw();
|
||
|
|
||
|
template
|
||
|
size_t __cdecl common_strnlen_simd<unbounded, __crt_simd_isa::avx2, uint16_t>(
|
||
|
uint16_t const* const string,
|
||
|
size_t const maximum_count
|
||
|
) throw();
|