fpu-set.h
来自「基于LWVCL开发的库」· C头文件 代码 · 共 34 行
H
34 行
/* * config/i386/fpu-set.h * Setup the CPU in double mode. * * Copyright(c) 2005 * The Kaffe.org's developers. All rights reserved. * See ChangeLog for details. * * See the file "license.terms" for information on usage and redistribution * of this file. */#ifndef __FPU_SET_H#define __FPU_SET_Hstatic inline voidset_fpu_precision(void){ unsigned int fpu_control; __asm__ __volatile__ ( "fnstcw %0\n\t" /* Get the FPU state */ "mov %0, %%ax\n\t" "and $0xfc, %%ah\n\t" /* Remove the extended mode flag */ "or $0x2, %%ah\n\t" /* Put the double mode flag */ "mov %%ax, %0\n\t" /* Put back the new flag in memory */ "fldcw %0\n\t" /* and setup the FPU */ : "+m" (fpu_control) : : "eax");}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?