diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-08-16 22:08:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-08-16 22:08:39 +0000 |
commit | eef5e17953f2d10cf4ed549b528a686437cd6ec2 (patch) | |
tree | 79eb55bec52b52561229816f134d558aab538c59 /docs | |
parent | b8b260edfffc7fd60dfada944b57fe1efdba389e (diff) | |
download | clang-eef5e17953f2d10cf4ed549b528a686437cd6ec2.tar.gz |
[doc] Fix some minor formatting issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LanguageExtensions.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst index 2731bae415..67cdbb7da9 100644 --- a/docs/LanguageExtensions.rst +++ b/docs/LanguageExtensions.rst @@ -496,9 +496,11 @@ Clang supports two half-precision (16-bit) floating point types: ``__fp16`` and ``__fp16`` is supported on every target, as it is purely a storage format; see below. ``_Float16`` is currently only supported on the following targets, with further targets pending ABI standardization: -- 32-bit ARM -- 64-bit ARM (AArch64) -- SPIR + +* 32-bit ARM +* 64-bit ARM (AArch64) +* SPIR + ``_Float16`` will be supported on more targets as they define ABIs for it. ``__fp16`` is a storage and interchange format only. This means that values of @@ -531,10 +533,8 @@ Because ``__fp16`` operands are always immediately promoted to ``float``, the common real type of ``__fp16`` and ``_Float16`` for the purposes of the usual arithmetic conversions is ``float``. -A literal can be given ``_Float16`` type using the suffix ``f16``; for example: -``` -3.14f16 -``` +A literal can be given ``_Float16`` type using the suffix ``f16``. For example, +``3.14f16``. Because default argument promotion only applies to the standard floating-point types, ``_Float16`` values are not promoted to ``double`` when passed as variadic |