Skip to content

Commit

Permalink
Use godoc format.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Jul 15, 2024
1 parent ac86110 commit aac72a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/fft/fft_fr.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (fs *FFTSettings) InplaceFFT(vals []fr.Element, out []fr.Element, inv bool)
}
}

// Returns true if the provided integer v is a power of 2.
// IsPowerOfTwo Returns true if the provided integer v is a power of 2.
func IsPowerOfTwo(v uint64) bool {
return (v&(v-1) == 0) && (v != 0)
}

0 comments on commit aac72a1

Please sign in to comment.