Issue #1240 - Part 3a - Adjust mozilla::FloatingPoint<T>'s definition. So only the barest details are specified for floating-point encodings, with every other number, bit mask, &c. mathematically derived. Also add a bunch of documentation comments. https://bugzilla.mozilla.org/show_bug.cgi?id=1508725 Prerequisite for our V8 fast forward.

This commit is contained in:
Brian Smith 2023-07-13 03:02:29 -05:00 committed by roytam1
commit ddd49121a6
3 changed files with 77 additions and 37 deletions

View file

@ -54,7 +54,7 @@ template<class T>
bool
js::wasm::RenderNaN(StringBuffer& sb, Raw<T> num)
{
typedef typename mozilla::SelectTrait<T> Traits;
typedef typename mozilla::FloatingPoint<T> Traits;
MOZ_ASSERT(IsNaN(num.fp()));