Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:modulo replacement for galois field arithmetics*@rs: Pointer to the RS codec*@x: the value to reduce* where* Simple arithmetic modulo would return a wrong result for values* >= 3 * rs->nn

Proto:static inline int rs_modnn(struct rs_codec *rs, int x)

Type:int

Parameter:

TypeParameterName
struct rs_codec *rs>mm = number of bits per symbol
intx
124  When x >= nn cycle
125  x -= nn
126  x = (x >> mm) + (x & nn)
128  Return x
Caller
NameDescribe
codec_initdec_init - Initialize a Reed-Solomon codec*@symsize: symbol size, bits (1-8)*@gfpoly: Field generator polynomial coefficients*@gffunc: Field generator function*@fcr: first root of RS code generator polynomial, index form*@prim: primitive element to
compute_syndrome