mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00:00
AK: Add 16-bit float type
This commit is contained in:
parent
653c8f231d
commit
c1ec2ddb63
Notes:
github-actions[bot]
2024-11-10 21:49:27 +00:00
Author: https://github.com/rmg-x
Commit: c1ec2ddb63
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2184
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
5 changed files with 34 additions and 0 deletions
|
@ -1012,6 +1012,13 @@ ErrorOr<void> Formatter<long double>::format(FormatBuilder& builder, long double
|
|||
return builder.put_f80(value, base, upper_case, m_use_separator, m_align, m_width.value(), m_precision.value(), m_fill, m_sign_mode, real_number_display_mode);
|
||||
}
|
||||
|
||||
ErrorOr<void> Formatter<f16>::format(FormatBuilder& builder, f16 value)
|
||||
{
|
||||
// FIXME: Create a proper put_f16() implementation
|
||||
Formatter<double> formatter { *this };
|
||||
return TRY(formatter.format(builder, static_cast<double>(value)));
|
||||
}
|
||||
|
||||
ErrorOr<void> Formatter<double>::format(FormatBuilder& builder, double value)
|
||||
{
|
||||
u8 base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue