summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2016-10-12 21:28:07 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-12 21:28:07 +0000
commit4bb0566678f194bd192f774e8a9a79185b1a25ab (patch)
tree710ed1b74ba87aa65df79a85af2540af69209b66
parent08aaa78dee7eccc8ee0125d98005f1a9b112071f (diff)
parent5ebeca0a88416f74373b85403e6bae9ffb4213b3 (diff)
downloadcontexthub-4bb0566678f194bd192f774e8a9a79185b1a25ab.tar.gz
CHRE API: Document float/double requirements
am: 5ebeca0a88 Change-Id: I4d1e955ea98acecf97028e8ebdc47b93a9316cda
-rw-r--r--inc/chre.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/chre.h b/inc/chre.h
index 0f2f8ca1..3cad8930 100644
--- a/inc/chre.h
+++ b/inc/chre.h
@@ -114,6 +114,22 @@
*/
/**
+ * Floating point support.
+ *
+ * The C type 'float' is used in this API, and thus a CHRE implementation
+ * is required to support 'float's.
+ *
+ * Support of the C types 'double' and 'long double' is optional for a
+ * CHRE implementation. Note that if a CHRE decides to support them, unlike
+ * 'float' support, there is no requirement that this support is particularly
+ * efficient. So nanoapp authors should be aware this may be inefficient.
+ *
+ * If a CHRE implementation choses not to support 'double' or
+ * 'long double', then the build toolchain setup provided needs to set
+ * the preprocessor define CHRE_NO_DOUBLE_SUPPORT.
+ */
+
+/**
* CHRE and Nanoapp compatibility.
*
* The Android N release introduces the first version of this API.