Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\bch.c Create Date:2022-07-28 06:59:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:deg

Proto:static inline int deg(unsigned int poly)

Type:int

Parameter:

TypeParameterName
unsigned intpoly
288  Return ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last - 1
Caller
NameDescribe
compute_syndromesmpute 2t syndromes of ecc polynomial, i.e. ecc(a^j) for j=1..2t
find_poly_deg2_rootsmpute roots of a degree 2 polynomial over GF(2^m)
build_gf_tablesgenerate Galois field lookup tables
build_mod8_tablesmpute generator polynomial remainder tables for fast encoding