s_signbit.c

来自「用于嵌入式Linux系统的标准C的库函数」· C语言 代码 · 共 31 行

C
31
字号
/* Copyright (C) 2002 by  Red Hat, Incorporated. All rights reserved. * * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. */#include "fdlibm.h"int __signbitf (float x);int __signbitd (double x);int__signbitf (float x){  unsigned int w;  GET_FLOAT_WORD(w,x);  return (w & 0x80000000);}int__signbitd (double x){  unsigned int msw;  GET_HIGH_WORD(msw, x);  return (msw & 0x80000000);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?