Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\regset.c Create Date:2022-07-28 07:49:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:twd_fxsr_to_i387

Proto:static inline unsigned int twd_fxsr_to_i387(struct fxregs_state *fxsave)

Type:unsigned int

Parameter:

TypeParameterName
struct fxregs_state *fxsave
189  tos = Status Word >> 11 & 7
190  twd = Tag Word
192  ret = 0xffff0000u
195  When i < 8 cycle
196  If twd & 0x1 Then
197  st = FPREG_ADDR(fxsave, (i - tos) & 7)
200  Case & == 0x7fff
202  Break
203  Case & == 0x0000
204  If Not significand[0] && Not significand[1] && Not significand[2] && Not significand[3] Then tag = FP_EXP_TAG_ZERO
209  Else tag = FP_EXP_TAG_SPECIAL
211  Break
212  Default
213  If significand[3] & 0x8000 Then tag = FP_EXP_TAG_VALID
215  Else tag = FP_EXP_TAG_SPECIAL
217  Break
219  Else
222  ret |= tag << 2 * i
224  Return ret
Caller
NameDescribe
convert_from_fxsrFXSR floating point environment conversions.