bits

package
v0.0.0-...-986f64f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

本包提供了位操作的函数,没有使用泛型

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getbit

func Getbit(x, index uint) uint

获取从右起第index位的值,index>=0

func Setbit0

func Setbit0(x, index uint) uint

设置从右起第index位的值位0,index>=0

func Setbit1

func Setbit1(x, index uint) uint

设置从右起第index位的值位1,index>=0

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL