diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16.asciidoc index 88b6c73b02514..4167a91570d97 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16.asciidoc @@ -135,13 +135,11 @@ public: bfloat16(const float &a); bfloat16 &operator=(const float &a); - // Convert from bfloat16 to float + // Convert bfloat16 to floating-point types operator float() const; + operator sycl::half() const; - // Get bfloat16 as uint16. - operator storage_t() const; - - // Convert to bool type + // Convert bfloat16 to bool type explicit operator bool(); friend bfloat16 operator-(bfloat16 &bf) { /* ... */ } @@ -195,11 +193,11 @@ Table 1. Member functions of `bfloat16` class. | `operator float() const;` | Return `bfloat16` value converted to `float`. -| `operator storage_t() const;` -| Return `uint16_t` value, whose bits represent `bfloat16` value. +| `operator sycl::half() const;` +| Return `bfloat16` value converted to `sycl::half`. | `explicit operator bool() { /* ... */ }` -| Convert `bfloat16` to `bool` type. Return `false` if the value equals to +| Convert `bfloat16` to `bool` type. Return `false` if the `value` equals to zero, return `true` otherwise. | `friend bfloat16 operator-(bfloat16 &bf) { /* ... */ }` @@ -333,4 +331,5 @@ None. Apply code review suggestions |3|2021-08-18|Alexey Sotkin |Remove `uint16_t` constructor |4|2022-03-07|Aidan Belton and Jack Kirk |Switch from Intel vendor specific to oneapi +|5|2022-05-02|Alexey Sotkin |Add `operator sycl::half()` |========================================