mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888613 - Micro-optimization of js::ToInteger. r=jwalden
--HG-- extra : rebase_source : 3e5774bec875860659b500ae9ab87c404f213c47
This commit is contained in:
parent
70a0130389
commit
7e9b9262b5
@ -292,9 +292,7 @@ ToInteger(double d)
|
||||
return d;
|
||||
}
|
||||
|
||||
bool neg = (d < 0);
|
||||
d = floor(neg ? -d : d);
|
||||
return neg ? -d : d;
|
||||
return d < 0 ? ceil(d) : floor(d);
|
||||
}
|
||||
|
||||
} /* namespace js */
|
||||
|
Loading…
Reference in New Issue
Block a user