LCOV - code coverage report
Current view: top level - asmjit - formatter_p.h (source / functions) Hit Total Coverage
Test: plumed test coverage (other modules) Lines: 0 2 0.0 %
Date: 2026-11-05 10:19:06 Functions: 0 0 -

          Line data    Source code
       1             : #ifdef __PLUMED_HAS_ASMJIT
       2             : // This file is part of AsmJit project <https://asmjit.com>
       3             : //
       4             : // See asmjit.h or LICENSE.md for license and copyright information
       5             : // SPDX-License-Identifier: Zlib
       6             : 
       7             : #ifndef ASMJIT_CORE_FORMATTER_P_H_INCLUDED
       8             : #define ASMJIT_CORE_FORMATTER_P_H_INCLUDED
       9             : 
      10             : #include "formatter.h"
      11             : 
      12             : ASMJIT_BEGIN_NAMESPACE
      13             : 
      14             : //! \cond INTERNAL
      15             : //! \addtogroup asmjit_logging
      16             : //! \{
      17             : 
      18             : namespace Formatter {
      19             : 
      20             : static ASMJIT_FORCE_INLINE size_t paddingFromOptions(const FormatOptions& formatOptions, FormatPaddingGroup group) noexcept {
      21             :   static constexpr uint16_t _defaultPaddingTable[uint32_t(FormatPaddingGroup::kMaxValue) + 1] = { 44, 26 };
      22             :   static_assert(uint32_t(FormatPaddingGroup::kMaxValue) + 1 == 2, "If a new group is defined it must be added here");
      23             : 
      24           0 :   size_t padding = formatOptions.padding(group);
      25           0 :   return padding ? padding : size_t(_defaultPaddingTable[uint32_t(group)]);
      26             : }
      27             : 
      28             : } // {Formatter}
      29             : 
      30             : //! \}
      31             : //! \endcond
      32             : 
      33             : ASMJIT_END_NAMESPACE
      34             : 
      35             : #endif // ASMJIT_CORE_FORMATTER_H_P_INCLUDED
      36             : 
      37             : #endif // __PLUMED_HAS_ASMJIT

Generated by: LCOV version 1.16