mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Update comment.
This commit is contained in:
parent
4968229efc
commit
ff915d21b6
|
@ -275,8 +275,8 @@ int ceil_log2(int x) YS_ATTRIBUTE(const);
|
||||||
|
|
||||||
inline std::string vstringf(const char *fmt, va_list ap)
|
inline std::string vstringf(const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
// For the common case of strings shorter than 128 (including the trailing
|
// For the common case of strings shorter than 128, save a heap
|
||||||
// '\0'), save a heap allocation by using a stack allocated buffer.
|
// allocation by using a stack allocated buffer.
|
||||||
const int kBufSize = 128;
|
const int kBufSize = 128;
|
||||||
char buf[kBufSize];
|
char buf[kBufSize];
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue