summaryrefslogtreecommitdiff
path: root/include/compression/fixpoint.h
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-04 16:05:42 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-08 13:35:27 (GMT)
commitb6c0fbcbb224c894eb90cc920c6ecb8e8d48e66a (patch)
tree945db6cb55f72e09c56e2846eaa355f8c6bc472d /include/compression/fixpoint.h
parentdb972bad9178b95ee16110de186074476579bf89 (diff)
Made function arguments const where relevant.
Change-Id: I5b196b57976c8c718b079336a805188ccb03ef4b
Diffstat (limited to 'include/compression/fixpoint.h')
-rw-r--r--include/compression/fixpoint.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/compression/fixpoint.h b/include/compression/fixpoint.h
index 6be7482..7b6a667 100644
--- a/include/compression/fixpoint.h
+++ b/include/compression/fixpoint.h
@@ -17,16 +17,16 @@
typedef unsigned long fix_t;
/* Positive double to 32 bit fixed point value */
-fix_t Ptngc_ud_to_fix_t(double d,double max);
+fix_t Ptngc_ud_to_fix_t(double d, const double max);
/* double to signed 32 bit fixed point value */
-fix_t Ptngc_d_to_fix_t(double d,double max);
+fix_t Ptngc_d_to_fix_t(double d, const double max);
/* 32 bit fixed point value to positive double */
-double Ptngc_fix_t_to_ud(fix_t f, double max);
+double Ptngc_fix_t_to_ud(fix_t f, const double max);
/* signed 32 bit fixed point value to double */
-double Ptngc_fix_t_to_d(fix_t f, double max);
+double Ptngc_fix_t_to_d(fix_t f, const double max);
/* Convert a floating point variable to two 32 bit integers with range
-2.1e9 to 2.1e9 and precision to somewhere around 1e-9. */
contact: Jan Huwald // Impressum