mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
Everywhere: Add sv suffix to strings relying on StringView(char const*)
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
This commit is contained in:
parent
e5f09ea170
commit
3f3f45580a
762 changed files with 8315 additions and 8316 deletions
|
@ -87,7 +87,7 @@ private:
|
|||
|
||||
void fpu_dump_env()
|
||||
{
|
||||
reportln("Exceptions: #I:{} #D:{} #Z:{} #O:{} #U:{} #P:{} #SF:{} Summary:{}",
|
||||
reportln("Exceptions: #I:{} #D:{} #Z:{} #O:{} #U:{} #P:{} #SF:{} Summary:{}"sv,
|
||||
m_fpu_error_invalid,
|
||||
m_fpu_error_denorm,
|
||||
m_fpu_error_zero_div,
|
||||
|
@ -96,18 +96,18 @@ private:
|
|||
m_fpu_error_precision,
|
||||
m_fpu_error_stackfault,
|
||||
m_fpu_error_summary);
|
||||
reportln("Masks: #I:{} #D:{} #Z:{} #O:{} #U:{} #P:{}",
|
||||
reportln("Masks: #I:{} #D:{} #Z:{} #O:{} #U:{} #P:{}"sv,
|
||||
m_fpu_cw.mask_invalid,
|
||||
m_fpu_cw.mask_denorm,
|
||||
m_fpu_cw.mask_zero_div,
|
||||
m_fpu_cw.mask_overflow,
|
||||
m_fpu_cw.mask_underflow,
|
||||
m_fpu_cw.mask_precision);
|
||||
reportln("C0:{} C1:{} C2:{} C3:{}", c0(), c1(), c2(), c3());
|
||||
reportln("fpu-stacktop: {}", m_fpu_stack_top);
|
||||
reportln("fpu-stack /w stacktop (real):");
|
||||
reportln("C0:{} C1:{} C2:{} C3:{}"sv, c0(), c1(), c2(), c3());
|
||||
reportln("fpu-stacktop: {}"sv, m_fpu_stack_top);
|
||||
reportln("fpu-stack /w stacktop (real):"sv);
|
||||
for (u8 i = 0; i < 8; ++i) {
|
||||
reportln("\t{} ({}): fp {} ({}), mmx {:016x}",
|
||||
reportln("\t{} ({}): fp {} ({}), mmx {:016x}"sv,
|
||||
i, (u8)((m_fpu_stack_top + i) % 8),
|
||||
m_storage[(m_fpu_stack_top + i) % 8].fp, fpu_is_set(i) ? "set" : "free",
|
||||
m_storage[(m_fpu_stack_top + i) % 8].mmx.raw);
|
||||
|
@ -142,14 +142,14 @@ private:
|
|||
|
||||
ALWAYS_INLINE void fpu_set_stack_overflow()
|
||||
{
|
||||
reportln("Stack Overflow");
|
||||
reportln("Stack Overflow"sv);
|
||||
set_c1(1);
|
||||
fpu_set_exception(FPU_Exception::StackFault);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE void fpu_set_stack_underflow()
|
||||
{
|
||||
reportln("Stack Underflow");
|
||||
reportln("Stack Underflow"sv);
|
||||
set_c1(0);
|
||||
fpu_set_exception(FPU_Exception::StackFault);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue