__signbitf.c\math\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/__signbitf.c
blob: 40ad3cfd0cbe6e4d420df2c8b3f9355bf4152cd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "libm.h"
// FIXME: macro in math.h
int __signbitf(float x)
{
	union {
		float f;
		uint32_t i;
	} y = { x };
	return y.i>>31;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月01日 10:09:29 +0000

AltStyle によって変換されたページ (->オリジナル) /