aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-html.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-07 22:28:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-08 15:22:09 -0700
commit2a966ac2a9a807f4ae45d671cca8b245f8f70ece (patch)
tree05e049de89fb104420b9d5f2057bb85eb6910de4 /core/save-html.h
parent78f425de68cdb1504e477519577d22efd694fec0 (diff)
downloadsubsurface-2a966ac2a9a807f4ae45d671cca8b245f8f70ece.tar.gz
Cleanup: replace macro by inline function in gas-model.c
Replace a macro calculating a degree-three polynomial by an inline function. Moreover, calculate the powers 1, 2 and 3 of the pressure inside the function. The compiler will be smart enough to optimize this to the same code. The only important thing is to write "x*x*x*coeff" instead of "coeff*x*x*x". The compiler can't optimize the latter because ... wonderful floating point semantics. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-html.h')
0 files changed, 0 insertions, 0 deletions