Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:clear_multiples

Proto:static unsigned long clear_multiples(unsigned long x, unsigned long *p, unsigned long start, unsigned long end)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longx
unsigned long *p
unsigned longstart
unsigned longend
97  m = 2 * x
98  If m < start Then m = undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(start, x)
101  When m < end cycle
102  __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
103  m += x
106  Return x
Caller
NameDescribe
expand_to_next_prime