Prusa MINI Firmware overview
|
Go to the documentation of this file.
11 extern constexpr
char nth_char(int32_t
i,
size_t n);
12 extern constexpr
int pow_int(
int val,
size_t pow);
53 constexpr
int pow_int(
int val,
size_t pow) {
54 return pow == 0 ? 1 : val *
pow_int(val, pow - 1);
65 #endif //_INT_TO_CSTR_H
uint8_t i
Definition: screen_test_graph.c:72
static constexpr char nth_char_unsigned(uint32_t ui, size_t n)
Definition: int_to_cstr.h:40
static constexpr size_t count_digits_unsigned(uint32_t ui)
Definition: int_to_cstr.h:22
constexpr int remove_front_digit(int32_t i)
Definition: int_to_cstr.h:61
constexpr int pow_int(int val, size_t pow)
Definition: int_to_cstr.h:53
static constexpr size_t _count_digits_unsigned(uint32_t ui)
Definition: int_to_cstr.h:17
constexpr bool is_negative(int32_t i)
Definition: int_to_cstr.h:26
static constexpr int remove_front_digit_unsigned(uint32_t ui)
Definition: int_to_cstr.h:57
static constexpr char nth_char_negative(int32_t i, size_t n)
Definition: int_to_cstr.h:45
constexpr char nth_char(int32_t i, size_t n)
Definition: int_to_cstr.h:49
constexpr size_t count_digits(int32_t i)
Definition: int_to_cstr.h:30
static constexpr char valid_nth_char_unsigned(uint32_t ui, size_t n)
Definition: int_to_cstr.h:35