diff options
author | Greg Kaiser <gkaiser@google.com> | 2016-10-12 21:28:07 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-10-12 21:28:07 +0000 |
commit | 4bb0566678f194bd192f774e8a9a79185b1a25ab (patch) | |
tree | 710ed1b74ba87aa65df79a85af2540af69209b66 | |
parent | 08aaa78dee7eccc8ee0125d98005f1a9b112071f (diff) | |
parent | 5ebeca0a88416f74373b85403e6bae9ffb4213b3 (diff) | |
download | contexthub-4bb0566678f194bd192f774e8a9a79185b1a25ab.tar.gz |
CHRE API: Document float/double requirements
am: 5ebeca0a88
Change-Id: I4d1e955ea98acecf97028e8ebdc47b93a9316cda
-rw-r--r-- | inc/chre.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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. |