Skip to content

Commit

Permalink
Fix var name.
Browse files Browse the repository at this point in the history
Signed-off-by: Pan Li <[email protected]>
  • Loading branch information
Incarnation-p-lee committed May 8, 2024
1 parent 43fae3a commit 8eba4ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/float/inf.sail
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ $include <float/common.sail>
val float_is_inf : fp_bits -> bool
function float_is_inf (op) = {
let struct {_, exp, mantissa} = float_decompose(op);
let is_nan = exp == sail_ones(length(exp))
let is_inf = exp == sail_ones(length(exp))
& mantissa == sail_zeros(length(mantissa));

is_nan
is_inf
}

$endif

0 comments on commit 8eba4ac

Please sign in to comment.