// Append a digit to a value and check for overflow. #define APPEND_DIGIT(val, dig) \ do { \ if ((val) > INT_MAX / 10) \
errno = ENOMEM; \ else { \
(val) *= 10; \ if ((val) > INT_MAX - to_digit((dig))) \
errno = ENOMEM; \ else \
(val) += to_digit((dig)); \
} \
} while (0)
#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-function" // Translate a fixed size integer argument for the %w/%wf format to a // flag representation. Supported sizes are 8, 16, 32, and 64 so far. // See details in bionic/libc/include/stdint.h staticint w_to_flag(int size, bool fast) { static constexpr int fast_size = sizeof(void*) == 8 ? LLONG : 0; if (size == 8) return SHORTSHORT; if (size == 16) return fast ? fast_size : SHORT; if (size == 32) return fast ? fast_size : 0; if (size == 64) return LLONG;
__fortify_fatal("%%w%s%d is unsupported", fast ? "f" : "", size);
} #pragma clang diagnostic pop
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.