|
Ran
|
Jobs
1
|
Files
89
|
Run time
8s
|
Badge
README BADGES
|
push
github
x86/x64: Fix math.ceil(-0.9) result sign. Reported by minoki. (cherry-picked from commit 674afcd4e) The `ceil` (`floor`) math function implementation calculates (|x| + 2^52) - 2^52 for its argument to determine the fractional part of x, so it will be rounded to the nearest integer and its sign is restored. After that, if the original value is < (>) than the result, the -1 (1) is subtracted from it. Take a look at the `ceil()` case. The result of the operation `-1 - (-1)` is +0 for FP arithmetic, against -0 expected as a result. This patch changes the `- (-1)` operation to `+ 1` and restores sign after it again. NB: Since in DUALNUM mode on x86/x64 all results are tried to be converted to integers, the sign of 0 is neglected. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#9145 Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org> Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Igor Munkin <imun@tarantool.org> (cherry picked from commit 439a3a039)
5324 of 5955 branches covered (0.0%)
Branch coverage included in aggregate %.
20413 of 23212 relevant lines covered (87.94%)
690708.79 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
95.91 |
-0.18% | src/lj_opt_mem.c |
| 6 |
76.31 |
-0.24% | src/lj_opt_fold.c |
| 6 |
82.22 |
-2.67% | src/lj_sysprof.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 6849941258.1 | 89 |
88.24 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|