LCOV - code coverage report
Current view: top level - lib/acl - acl_run_avx2.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 8 8 100.0 %
Date: 2025-03-01 20:23:48 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 6 6 100.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2010-2014 Intel Corporation
       3                 :            :  */
       4                 :            : 
       5                 :            : 
       6                 :            : #include "acl_run_avx2.h"
       7                 :            : 
       8                 :            : /*
       9                 :            :  * Note, that to be able to use AVX2 classify method,
      10                 :            :  * both compiler and target cpu have to support AVX2 instructions.
      11                 :            :  */
      12                 :            : int
      13                 :     269528 : rte_acl_classify_avx2(const struct rte_acl_ctx *ctx, const uint8_t **data,
      14                 :            :         uint32_t *results, uint32_t num, uint32_t categories)
      15                 :            : {
      16         [ +  + ]:     269528 :         if (likely(num >= MAX_SEARCHES_AVX16))
      17                 :     203190 :                 return search_avx2x16(ctx, data, results, num, categories);
      18         [ +  + ]:      66338 :         else if (num >= MAX_SEARCHES_SSE8)
      19                 :      33168 :                 return search_sse_8(ctx, data, results, num, categories);
      20         [ +  + ]:      33170 :         else if (num >= MAX_SEARCHES_SSE4)
      21                 :      16584 :                 return search_sse_4(ctx, data, results, num, categories);
      22                 :            :         else
      23                 :      16586 :                 return rte_acl_classify_scalar(ctx, data, results, num,
      24                 :            :                         categories);
      25                 :            : }

Generated by: LCOV version 1.14