[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[task #16114] Print warning where integer overflow happens
From: |
Mohammad Akhlaghi |
Subject: |
[task #16114] Print warning where integer overflow happens |
Date: |
Wed, 24 May 2023 08:56:28 -0400 (EDT) |
Follow-up Comment #13, task #16114 (project gnuastro):
Thanks Siyang.
Now that the building time is done, let's test the effect of the over-flow
check on the run-time of a program. This will help to decide if we want to
have it as the default mode (so no-overflow check should be given an option),
or not.
You can make an arbitrarily large (in this case 10000x10000 pixels) unsigned
8-bit integer image with the command below.
$ astarithmetic 10000 10000 2 makenew 100 u8 + \
20 mknoise-sigma u8 -onoised.fits
Then try a basic '+' operator on the noised image two times: once when you
build Arithmetic with over-flow check and once without it. Just make sure to
empty your RAM (as root) before every run (so the loading time is not
included):
$ sudo su
# sync; echo 3 > /proc/sys/vm/drop_caches
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?16114>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/