Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:swap_words_32 - swap two elements in 32-bit chunks*@a: pointer to the first element to swap*@b: pointer to the second element to swap*@n: element size (must be a multiple of 4)* Exchange the two objects in memory. This exploits base+index addressing,

Proto:static void swap_words_32(void *a, void *b, size_t n)

Type:void

Parameter:

TypeParameterName
void *a
void *b
size_tn
60  Do
61  t = *(a + (n -= 4))
62  *(a + n) = *(b + n)
63  *(b + n) = t
64  When n cycle
Caller
NameDescribe
do_swapThe function pointer is last to make tail calls most efficient if the* compiler decides not to inline this function.