sqrtf.c\powerpc\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/powerpc/sqrtf.c
blob: 3431b672d065ffdf0472a8df8f981da16b117981 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>
#if !defined _SOFT_FLOAT && defined _ARCH_PPCSQ
float sqrtf(float x)
{
	__asm__ ("fsqrts %0, %1\n" : "=f" (x) : "f" (x));
	return x;
}
#else
#include "../sqrtf.c"
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 06:34:43 +0000

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