Skip to content

Commit 2134a30

Browse files
authored
Update SYCL_INTEL_bf16_conversion.asciidoc
1 parent a7354b4 commit 2134a30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/doc/extensions/Bf16Conversion/SYCL_INTEL_bf16_conversion.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ public:
145145
operator storage_t() const;
146146
147147
// Convert to bool type
148-
explicit operator bool()
148+
explicit operator bool();
149149
150-
friend bfloat16 operator-() { /* ... */ }
150+
friend bfloat16 operator-(bfloat16 &bf) { /* ... */ }
151151
152152
// OP is: prefix ++, --
153-
friend bfloat16 &operatorOP() { /* ... */ }
153+
friend bfloat16 &operatorOP(bfloat16 &bf) { /* ... */ }
154154
155155
// OP is: postfix ++, --
156-
friend bfloat16 operatorOP(int) { /* ... */ }
156+
friend bfloat16 operatorOP(bfloat16 &bf, int) { /* ... */ }
157157
158158
// OP is: +=, -=, *=, /=
159159
friend bfloat16 &operatorOP(bfloat16 &lhs, const bfloat16 &rhs) { /* ... */ }
@@ -189,7 +189,7 @@ Table 1. Member functions of `bfloat16` class.
189189
| `static float to_float(const storage_t &a);`
190190
| Interpret `a` as `bfloat16` and explicitly convert it to `float`.
191191

192-
| `bfloat16(const storage_t& a)`
192+
| `bfloat16(const storage_t& a);`
193193
| Initialize with an integer value which is interpreted as a `bfloat16` type.
194194

195195
| `bfloat16(const float& a);`

0 commit comments

Comments
 (0)