blob: d234fb018508d8729735449fe200c0a2f9495923 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* $OpenBSD: fabs.c,v 1.7 2011/07/08 22:28:33 martynas Exp $ */
/*
* Written by Miodrag Vallat. Public domain
*/
#include <sys/cdefs.h>
double
fabs(double val)
{
__asm__ __volatile__("fabs,dbl %0,%0" : "+f" (val));
return (val);
}
__weak_alias(fabsl, fabs);
|