mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Add support for Float16Array
Implements TC39 stage three proposal for Float16Arrays: https://tc39.es/proposal-float16array
This commit is contained in:
parent
c1ec2ddb63
commit
ea20545853
Notes:
github-actions[bot]
2024-11-10 21:49:20 +00:00
Author: https://github.com/rmg-x
Commit: ea20545853
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2184
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
49 changed files with 133 additions and 8 deletions
|
@ -223,6 +223,11 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
explicit Value(f16 value)
|
||||
: Value(static_cast<double>(value))
|
||||
{
|
||||
}
|
||||
|
||||
// NOTE: A couple of integral types are excluded here:
|
||||
// - i32 has its own dedicated Value constructor
|
||||
// - i64 cannot safely be cast to a double
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue