Standard library / math/bits
bits.Reverse32()
Reverses bit order across the entire word, not just the significant bits. Expected stdout: '13\n'.
Formal Syntax & Structure
go syntaxgo
func Reverse32(x uint32) uint32Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | uint32 | First input operand (or sole input if unary). |
Return Value
uint32
Reverses bit order across the entire word, not just the significant bits.
Working Example
Example Snippetgo
package main
import ( "fmt" "math/bits")
func main() { fmt.Println(bits.Reverse32(bits.Reverse32(13)))}