Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleReverse16 (0.54 sec)

  1. src/math/bits/example_test.go

    }
    
    func ExampleReverse8() {
    	fmt.Printf("%08b\n", 19)
    	fmt.Printf("%08b\n", bits.Reverse8(19))
    	// Output:
    	// 00010011
    	// 11001000
    }
    
    func ExampleReverse16() {
    	fmt.Printf("%016b\n", 19)
    	fmt.Printf("%016b\n", bits.Reverse16(19))
    	// Output:
    	// 0000000000010011
    	// 1100100000000000
    }
    
    func ExampleReverse32() {
    	fmt.Printf("%032b\n", 19)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:16:09 UTC 2019
    - 5.3K bytes
    - Viewed (0)
Back to top