Skip to content

Commit 71d0bf2

Browse files
ericastorcopybara-github
authored andcommitted
[std] Let users access apfloat::raw_mul directly
This is usually not the right plan - it requires taking over responsibility for the ways `raw_mul` produces an unfinished result - but some applications call for direct manipulation of the intermediate floating-point value. PiperOrigin-RevId: 839430508
1 parent 4aaa592 commit 71d0bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xls/dslx/stdlib/apfloat.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,7 @@ struct RawProduct<SIGNED_EXP: u32, WIDE_FRACTION: u32> {
34233423

34243424
// Returns the full result of a floating-point multiplication, without any rounding or truncation.
34253425
// The only exception is that input denormals are flushed to/treated as 0.
3426-
fn raw_mul
3426+
pub fn raw_mul
34273427
<EXP_SZ: u32, FRACTION_SZ_X: u32, FRACTION_SZ_Y: u32, SIGNED_EXP: u32 = {EXP_SZ + u32:2},
34283428
WIDE_FRACTION: u32 = {FRACTION_SZ_X + FRACTION_SZ_Y + u32:2}>
34293429
(x: APFloat<EXP_SZ, FRACTION_SZ_X>, y: APFloat<EXP_SZ, FRACTION_SZ_Y>)

0 commit comments

Comments
 (0)