common.core: move saturated math to common core
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jul 2016 21:56:31 +0000 (17:56 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Sat, 30 Jul 2016 01:33:10 +0000 (21:33 -0400)
commit16dd744fcb757a0b29af064a4f7fdbd21eb3a113
treebf16618582254ac6f35918c5c30ba26933ac4b53
parent1af9b70f92bf4a1e1b0c4840bca1f6e4b9bd87db
common.core: move saturated math to common core

As overflow problems are more and more common, it is justified
to make saturated (clamped) math available to all packages.

Test coverage is 100%, the code has to be rigourously tested as
this is part of the base of trace compass now.

Change-Id: Icf9771162230b8ff0371015ed0f39cc5ff07a06f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/78107
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
common/org.eclipse.tracecompass.common.core.tests/META-INF/MANIFEST.MF
common/org.eclipse.tracecompass.common.core.tests/src/org/eclipse/tracecompass/common/core/tests/math/SaturatedArithmeticTest.java [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/META-INF/MANIFEST.MF
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/math/SaturatedArithmetic.java [new file with mode: 0644]
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestamp.java
This page took 0.025114 seconds and 5 git commands to generate.