• ahaas's avatar
    [turbofan] Implement rounding of floats on x64 and ia32 without sse4.1. · fa5d09e5
    ahaas authored
    The implementation sets the rounding mode flag and then uses the
    cvtsd2si and cvtsi2sd instructions (convert between float and int) to do
    the rounding. Input values outside int range either don't have to be
    rounded anyways, or are rounded by calculating input + 2^52 - 2^52 for
    positive inputs, or input -2^52 + 2^52 for negative inputs. The original
    rounding mode is restored afterwards.
    
    R=titzer@chromium.org
    
    B=575379
    
    Review URL: https://codereview.chromium.org/1584663007
    
    Cr-Commit-Position: refs/heads/master@{#33367}
    fa5d09e5
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...