Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitops.h Create Date:2022-07-28 05:34:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sign_extend32 - sign extend a 32-bit value using specified bit as sign-bit*@value: value to sign extend*@index: 0 based bit index (0<=index<32) to sign bit* This is safe to use for 16- and 8-bit types as well.

Proto:static inline __s32 sign_extend32(__u32 value, int index)

Type:__s32

Parameter:

TypeParameterName
__u32value
intindex
164  shift = 31 - index
165  Return value << shift >> shift
Caller
NameDescribe
futex_atomic_op_inuser