summaryrefslogtreecommitdiff
path: root/sms/sms.c
diff options
context:
space:
mode:
authorJohn Glover <john@john-glovers-macbook.local>2010-12-30 18:45:16 +0000
committerJohn Glover <john@john-glovers-macbook.local>2010-12-30 18:45:16 +0000
commit9214a933be3caff80eec7a19d04fd309c3a35388 (patch)
tree87d98e6af862043f689145b9f257876b040fe4d6 /sms/sms.c
parent8f29130d9c2612a7e7867458cae71dbb73b51aeb (diff)
downloadsimpl-9214a933be3caff80eec7a19d04fd309c3a35388.tar.gz
simpl-9214a933be3caff80eec7a19d04fd309c3a35388.tar.bz2
simpl-9214a933be3caff80eec7a19d04fd309c3a35388.zip
Code tidying
Diffstat (limited to 'sms/sms.c')
-rw-r--r--sms/sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sms/sms.c b/sms/sms.c
index 4fee489..27b6724 100644
--- a/sms/sms.c
+++ b/sms/sms.c
@@ -912,7 +912,7 @@ sfloat sms_magToDB(sfloat x)
return 0.0;
else
//return(20. * log10(x * inv_mag_thresh));
- return(TWENTY_OVER_LOG10 * log(x * inv_mag_thresh));
+ return TWENTY_OVER_LOG10 * log(x * inv_mag_thresh);
/*return(TWENTY_OVER_LOG10 * log(x));*/
}
@@ -926,7 +926,7 @@ sfloat sms_dBToMag(sfloat x)
if(x < 0.00001)
return 0.0;
else
- return(mag_thresh * pow(10., x*0.05));
+ return mag_thresh * pow(10., x*0.05);
/*return pow(10.0, x*0.05);*/
}