QP/C++  7.0.1
Real-Time Embedded Framework
qf_act.cpp File Reference

QP::QActive services and QF support code. More...

#include "qf_port.hpp"
#include "qf_pkg.hpp"
#include "qassert.h"
#include "qs_port.hpp"
#include "qs_pkg.hpp"

Go to the source code of this file.

Namespaces

namespace  QP
 namespace associated with the QP/C++ framework
 

Functions

std::uint_fast8_t QF_LOG2 (QP::QPSetBits x) noexcept
 function that returns (log2(x) + 1), where x is a 32-bit bitmask More...
 

Detailed Description

Date
Last updated on: 2021-12-23
Version
Last updated for: Version 7.0.0, 2022-04-30

Definition in file qf_act.cpp.

Function Documentation

◆ QF_LOG2()

std::uint_fast8_t QF_LOG2 ( QP::QPSetBits  x)
noexcept
Description
This function returns the 1-based number of the most significant 1-bit of a 32-bit bitmask. This function can be replaced in the QP ports, if the CPU has special instructions, such as CLZ (count leading zeros).

Definition at line 139 of file qf_act.cpp.