<commit_before>#include "arch/execution.hpp"

namespace ecl
{

#if USE_SYSTMR

static volatile uint32_t event_cnt;

namespace systmr
{

uint32_t events()
{
    return event_cnt;
}

} // namespace systmr

#endif // USE_SYSTMR

} // namespace ecl

#if USE_SYSTMR

// User can override systimer handler to receive events on its side.
extern "C" void systmr_handler(void) __attribute__((weak));

extern "C" void systmr_handler(void)
{
}

extern "C" void SysTick_Handler(void)
{
    ecl::event_cnt++;
    systmr_handler();
}

extern "C"  void __attribute__((naked)) arch_delay(uint32_t loop_count)
{
    (void)loop_count;

   __asm("    subs    r0, #1\n"
          "    bne    arch_delay\n"
          "    bx     lr");
}

#endif // USE_SYSTMR<commit_msg>Added GNUC guard to the assembly code for arch_delay()<commit_after>#include "arch/execution.hpp"

namespace ecl
{

#if USE_SYSTMR

static volatile uint32_t event_cnt;

namespace systmr
{

uint32_t events()
{
    return event_cnt;
}

} // namespace systmr

#endif // USE_SYSTMR

} // namespace ecl

#if USE_SYSTMR

// User can override systimer handler to receive events on its side.
extern "C" void systmr_handler(void) __attribute__((weak));

extern "C" void systmr_handler(void)
{
}

extern "C" void SysTick_Handler(void)
{
    ecl::event_cnt++;
    systmr_handler();
}

extern "C"  void __attribute__((naked)) arch_delay(uint32_t loop_count)
{
    (void)loop_count;
#if defined ( __GNUC__ )
   __asm("    subs    r0, #1\n"
          "    bne    arch_delay\n"
          "    bx     lr");
#endif
}

#endif // USE_SYSTMR
{'fraction_non_alphanumeric': 0.1159235668789809, 'fraction_numerical': 0.01019108280254777, 'mean_word_length': 3.339779005524862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1971191', 'n_tokens_mistral': 606, 'n_tokens_neox': 579, 'n_words': 145}