@@ -36,23 +36,23 @@ _primitive primitive_value = _primitive{0.0};
36
36
static const _primitive MIN_PRIMITIVE;
37
37
// / Largest finite primitive value.
38
38
static const _primitive MAX_PRIMITIVE;
39
- // / Smallest finite [`@doc.self`](sus- num- @doc.self.html ).
39
+ // / Smallest finite [`@doc.self`]($ sus:: num:: @doc.self).
40
40
static const _self MIN;
41
- // / Largest finite [`@doc.self`](sus- num- @doc.self.html ).
41
+ // / Largest finite [`@doc.self`]($ sus:: num:: @doc.self).
42
42
static const _self MAX;
43
43
// / The radix or base of the internal representation of
44
- // / [`@doc.self`](sus- num- @doc.self.html ).
44
+ // / [`@doc.self`]($ sus:: num:: @doc.self).
45
45
static const u32 RADIX;
46
46
// / Approximate number of significant digits in base 2.
47
47
static const u32 MANTISSA_DIGITS;
48
48
// / Approximate number of significant digits in base 10.
49
49
static const u32 DIGITS;
50
- // / Machine epsilon value for [`@doc.self`](sus- num- @doc.self.html ).
50
+ // / Machine epsilon value for [`@doc.self`]($ sus:: num:: @doc.self).
51
51
// /
52
52
// / This is the difference between 1.0 and the next larger representable
53
53
// / number.
54
54
static const _self EPSILON;
55
- // / Smallest positive normal [`@doc.self`](sus- num- @doc.self.html ) value.
55
+ // / Smallest positive normal [`@doc.self`]($ sus:: num:: @doc.self) value.
56
56
static const _self MIN_POSITIVE;
57
57
// / One greater than the minimum possible normal power of 2 exponent.
58
58
static const i32 MIN_EXP;
@@ -123,7 +123,7 @@ struct consts {
123
123
124
124
// / Default constructor, which sets the value to 0.
125
125
// /
126
- // / Satisfies the [`Default`](sus- construct- Default.html ) concept.
126
+ // / Satisfies the [`Default`]($ sus:: construct:: Default) concept.
127
127
// /
128
128
// / #[doc.overloads=ctor.default]
129
129
constexpr inline _self () noexcept = default;
@@ -180,14 +180,14 @@ constexpr inline _self& operator=(P v) noexcept {
180
180
return *this ;
181
181
}
182
182
183
- // / Constructs a [`@doc.self `](sus- num- @doc.self.html ) from an
184
- // / [`Iterator`](sus- iter- Iterator.html ) by computing the sum of all elements in
183
+ // / Constructs a [`@doc.self `]($ sus:: num:: @doc.self) from an
184
+ // / [`Iterator`]($ sus:: iter:: Iterator) by computing the sum of all elements in
185
185
// / the iterator.
186
186
// /
187
187
// / This method should rarely be called directly, as it is used to satisfy the
188
- // / [`Sum`](sus- iter- Sum.html ) concept so that
189
- // / [`Iterator::sum()`](sus- iter- IteratorBase.html#method. sum) can be called for
190
- // / iterators over [`@doc.self `](sus- num- @doc.self.html ).
188
+ // / [`Sum`]($ sus:: iter:: Sum) concept so that
189
+ // / [`Iterator::sum()`]($ sus:: iter:: IteratorBase# sum) can be called for
190
+ // / iterators over [`@doc.self `]($ sus:: num:: @doc.self).
191
191
static constexpr _self from_sum (::sus::iter::Iterator<_self> auto && it) noexcept
192
192
requires(::sus::mem::IsMoveRef<decltype (it)>)
193
193
{
@@ -196,13 +196,13 @@ static constexpr _self from_sum(::sus::iter::Iterator<_self> auto&& it) noexcept
196
196
return p;
197
197
}
198
198
199
- // / Constructs a [`@doc.self `](sus- num- @doc.self.html ) from an `Iterator` by
199
+ // / Constructs a [`@doc.self `]($ sus:: num:: @doc.self) from an `Iterator` by
200
200
// / computing the product of all elements in the iterator.
201
201
// /
202
202
// / This method should rarely be called directly, as it is used to satisfy the
203
- // / [`Product`](sus- iter- Product.html ) concept so that
204
- // / [`Iterator::product()`](sus- iter- IteratorBase.html#method. product) can be
205
- // / called for iterators over [`@doc.self `](sus- num- @doc.self.html ).
203
+ // / [`Product`]($ sus:: iter:: Product) concept so that
204
+ // / [`Iterator::product()`]($ sus:: iter:: IteratorBase# product) can be
205
+ // / called for iterators over [`@doc.self `]($ sus:: num:: @doc.self).
206
206
static constexpr _self from_product (
207
207
::sus::iter::Iterator<_self> auto && it) noexcept
208
208
requires(::sus::mem::IsMoveRef<decltype (it)>)
@@ -215,7 +215,7 @@ static constexpr _self from_product(
215
215
// / Conversion from the numeric type to a C++ primitive type.
216
216
// /
217
217
// / This converts to floating point primitives which are at least as large as
218
- // / the [`@doc.self`](sus- num- @doc.self.html ).
218
+ // / the [`@doc.self`]($ sus:: num:: @doc.self).
219
219
// /
220
220
// / ```
221
221
// / auto d = double{3_f64}; // Compiles.
@@ -228,7 +228,7 @@ static constexpr _self from_product(
228
228
// / ```
229
229
// /
230
230
// / Potentially-lossy type conversions can be forced through the
231
- // / [`Transmogrify`](sus- construct- Transmogrify.html ) concept, such as
231
+ // / [`Transmogrify`]($ sus:: construct:: Transmogrify) concept, such as
232
232
// / `sus::mog<float>(3_f64)` or `sus::mog<f32>(3_f64)`.
233
233
template <PrimitiveFloat U>
234
234
requires (::sus::mem::size_of<U>() >= ::sus::mem::size_of<_primitive>())
@@ -292,8 +292,8 @@ operator<=>(_self l, PrimitiveFloat auto r) noexcept {
292
292
// / positive quiet NaN.
293
293
// /
294
294
// / The ordering established by this function does not always agree with the
295
- // / [`PartialOrd`](sus- ops- PartialOrd.html ) and [`Eq`](sus- ops-Eq.html )
296
- // / implementations of [`@doc.self`](sus- num- @doc.self.html ). For example, they
295
+ // / [`PartialOrd`]($ sus:: ops:: PartialOrd) and [`Eq`]($ sus:: ops::Eq )
296
+ // / implementations of [`@doc.self`]($ sus:: num:: @doc.self). For example, they
297
297
// / consider negative and positive zero equal, while
298
298
// / [`total_cmp`](#method.total_cmp) doesn't.
299
299
// /
@@ -305,19 +305,19 @@ operator<=>(_self l, PrimitiveFloat auto r) noexcept {
305
305
// /
306
306
// / This method returns
307
307
// / [`std::weak_ordering`](https://en.cppreference.com/w/cpp/utility/compare/weak_ordering)
308
- // / which can be used in situations that require [`Ord`](sus- ops- Ord.html )
308
+ // / which can be used in situations that require [`Ord`]($ sus:: ops:: Ord)
309
309
// / because different NaNs will be ordered equivalently.
310
310
sus_pure constexpr std::weak_ordering total_cmp (_self other) const & noexcept {
311
311
return __private::float_strong_ordering (primitive_value,
312
312
other.primitive_value );
313
313
}
314
314
315
- // / Satisfies the [`Neg<@doc.self>`](sus- num- Neg.html ) concept.
315
+ // / Satisfies the [`Neg<@doc.self>`]($ sus:: num:: Neg) concept.
316
316
sus_pure constexpr inline _self operator -() const {
317
317
return _self (-primitive_value);
318
318
}
319
319
320
- // / Satisfies the [`Add<@doc.self>`](sus- num- Add.html ) concept.
320
+ // / Satisfies the [`Add<@doc.self>`]($ sus:: num:: Add) concept.
321
321
// / #[doc.overloads=float.+]
322
322
[[nodiscard]] sus_pure friend constexpr inline _self operator +(
323
323
_self l, _self r) noexcept {
@@ -345,7 +345,7 @@ friend constexpr inline _self operator+(_self l, U r) noexcept = delete;
345
345
template <PrimitiveFloat U>
346
346
requires (!std::convertible_to<U, _self>)
347
347
friend constexpr inline _self operator+(U l, _self r) noexcept = delete;
348
- // / Satisfies the [`Sub<@doc.self>`](sus- num- Sub.html ) concept.
348
+ // / Satisfies the [`Sub<@doc.self>`]($ sus:: num:: Sub) concept.
349
349
// / #[doc.overloads=float.-]
350
350
[[nodiscard]] sus_pure friend constexpr inline _self operator -(
351
351
_self l, _self r) noexcept {
@@ -373,7 +373,7 @@ friend constexpr inline _self operator-(_self l, U r) noexcept = delete;
373
373
template <PrimitiveFloat U>
374
374
requires (!std::convertible_to<U, _self>)
375
375
friend constexpr inline _self operator-(U l, _self r) noexcept = delete;
376
- // / Satisfies the [`Mul<@doc.self>`](sus- num- Mul.html ) concept.
376
+ // / Satisfies the [`Mul<@doc.self>`]($ sus:: num:: Mul) concept.
377
377
// / #[doc.overloads=float.*]
378
378
[[nodiscard]] sus_pure friend constexpr inline _self operator *(
379
379
_self l, _self r) noexcept {
@@ -401,7 +401,7 @@ friend constexpr inline _self operator*(_self l, U r) noexcept = delete;
401
401
template <PrimitiveFloat U>
402
402
requires (!std::convertible_to<U, _self>)
403
403
friend constexpr inline _self operator*(U l, _self r) noexcept = delete;
404
- // / Satisfies the [`Div<@doc.self>`](sus- num- Div.html ) concept.
404
+ // / Satisfies the [`Div<@doc.self>`]($ sus:: num:: Div) concept.
405
405
// / #[doc.overloads=float./]
406
406
[[nodiscard]] sus_pure friend constexpr inline _self operator /(
407
407
_self l, _self r) noexcept {
@@ -429,7 +429,7 @@ friend constexpr inline _self operator/(_self l, U r) noexcept = delete;
429
429
template <PrimitiveFloat U>
430
430
requires (!std::convertible_to<U, _self>)
431
431
friend constexpr inline _self operator/(U l, _self r) noexcept = delete;
432
- // / Satisfies the [`Rem<@doc.self>`](sus- num- Rem.html ) concept.
432
+ // / Satisfies the [`Rem<@doc.self>`]($ sus:: num:: Rem) concept.
433
433
// /
434
434
// / The remainder from the division of two floats.
435
435
// /
@@ -466,23 +466,23 @@ template <PrimitiveFloat U>
466
466
requires (!std::convertible_to<U, _self>)
467
467
friend constexpr inline _self operator%(U l, _self r) noexcept = delete;
468
468
469
- // / Satisfies the [`AddAssign<@doc.self>`](sus- num- AddAssign.html ) concept.
469
+ // / Satisfies the [`AddAssign<@doc.self>`]($ sus:: num:: AddAssign) concept.
470
470
constexpr inline void operator +=(_self r) & noexcept {
471
471
primitive_value += r.primitive_value ;
472
472
}
473
- // / Satisfies the [`SubAssign<@doc.self>`](sus- num- SubAssign.html ) concept.
473
+ // / Satisfies the [`SubAssign<@doc.self>`]($ sus:: num:: SubAssign) concept.
474
474
constexpr inline void operator -=(_self r) & noexcept {
475
475
primitive_value -= r.primitive_value ;
476
476
}
477
- // / Satisfies the [`MulAssign<@doc.self>`](sus- num- MulAssign.html ) concept.
477
+ // / Satisfies the [`MulAssign<@doc.self>`]($ sus:: num:: MulAssign) concept.
478
478
constexpr inline void operator *=(_self r) & noexcept {
479
479
primitive_value *= r.primitive_value ;
480
480
}
481
- // / Satisfies the [`DivAssign<@doc.self>`](sus- num- DivAssign.html ) concept.
481
+ // / Satisfies the [`DivAssign<@doc.self>`]($ sus:: num:: DivAssign) concept.
482
482
constexpr inline void operator /=(_self r) & noexcept {
483
483
primitive_value /= r.primitive_value ;
484
484
}
485
- // / Satisfies the [`RemAssign<@doc.self>`](sus- num- RemAssign.html ) concept.
485
+ // / Satisfies the [`RemAssign<@doc.self>`]($ sus:: num:: RemAssign) concept.
486
486
// /
487
487
// / Assigns the remainder from the division of two floats.
488
488
// /
0 commit comments