• Ng Zhi An's avatar
    Implement Min and Max using std::min and std::max · c90ff8bd
    Ng Zhi An authored
    The existing implementation gives different results for certain floating
    points values from std::min and std::max. This patch makes it the same,
    so it is less surprising.
    
    Took a quick look at some usages for Min and Max, they are all integral
    types, so this wouldn't change any behavior.
    
    Min and Max has been in the code base right from the initial import,
    and I'm not sure why we needed it, since it should simply be
    std::min/std::max. With C++14, std::min and std::max are constexpr,
    so this change is also fine.
    
    Change-Id: If8ec53bedff3ef336aa21b082f1a16ce716b8f87
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2464146Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#70494}
    c90ff8bd
Name
Last commit
Last update
..
OWNERS Loading commit data...
address-map.cc Loading commit data...
address-map.h Loading commit data...
allocation.cc Loading commit data...
allocation.h Loading commit data...
bit-vector.cc Loading commit data...
bit-vector.h Loading commit data...
boxed-float.h Loading commit data...
detachable-vector.cc Loading commit data...
detachable-vector.h Loading commit data...
identity-map.cc Loading commit data...
identity-map.h Loading commit data...
locked-queue-inl.h Loading commit data...
locked-queue.h Loading commit data...
memcopy.cc Loading commit data...
memcopy.h Loading commit data...
ostreams.cc Loading commit data...
ostreams.h Loading commit data...
pointer-with-payload.h Loading commit data...
scoped-list.h Loading commit data...
utils-inl.h Loading commit data...
utils.cc Loading commit data...
utils.h Loading commit data...
v8dll-main.cc Loading commit data...
vector.h Loading commit data...
version.cc Loading commit data...
version.h Loading commit data...