Removing unneccesary floating point conversions.
authorMandeep Shetty <mandeep.shetty@intel.com>
Thu, 5 Mar 2015 22:35:29 +0000 (14:35 -0800)
committerSashi Penta <sashi.kumar.penta@intel.com>
Fri, 6 Mar 2015 01:37:11 +0000 (01:37 +0000)
commit2da010ceef43c7d289862d6efaabb042df4e9c4b
treed89d753c8693640475aeb8336b3d50346d5b5f5c
parent2a6a0c09eed171bc0fe37c97b6c48f2b0858f47d
Removing unneccesary floating point conversions.

Remove casting uint types to float in presence bounds calculation
and using division with a single floating point constant instead.

Change-Id: I7b1738753ccec3109c698774204d3d92fde7de21
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/443
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/csdk/stack/src/ocstack.c