ref: 79b51e588d41bc7df8c27f1f1aee57832a9d45ad
parent: 0f9bc249e79a9181613b46effd008f15d9bc7904
author: Paul Batchelor <[email protected]>
date: Fri Mar 5 11:05:35 EST 2021
biscale: replace division with multiply
--- a/modules/biscale.c
+++ b/modules/biscale.c
@@ -22,6 +22,6 @@
int sp_biscale_compute(sp_data *sp, sp_biscale *p, SPFLOAT *in, SPFLOAT *out)
{
- *out = p->min + (*in + 1.0) / 2.0 * (p->max - p->min);
+ *out = p->min + (*in + 1.0) * 0.5 * (p->max - p->min);
return SP_OK;
}