Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleRotateLeft8 (0.12 sec)

  1. src/math/bits/example_test.go

    }
    
    func ExampleOnesCount64() {
    	fmt.Printf("OnesCount64(%064b) = %d\n", 14, bits.OnesCount64(14))
    	// Output:
    	// OnesCount64(0000000000000000000000000000000000000000000000000000000000001110) = 3
    }
    
    func ExampleRotateLeft8() {
    	fmt.Printf("%08b\n", 15)
    	fmt.Printf("%08b\n", bits.RotateLeft8(15, 2))
    	fmt.Printf("%08b\n", bits.RotateLeft8(15, -2))
    	// Output:
    	// 00001111
    	// 00111100
    	// 11000011
    }
    
    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