xref: /openbsd/lib/libm/arch/sh/s_fabsf.c (revision d415bd75)
1 /*	$OpenBSD: s_fabsf.c,v 1.2 2014/04/18 15:09:52 guenther Exp $	*/
2 
3 /*
4  * Written by Martynas Venckus.  Public domain
5  */
6 
7 #include <math.h>
8 
9 float
10 fabsf(float f)
11 {
12 	/* Same operation is performed regardless of precision. */
13 	__asm__ volatile ("fabs %0" : "+f" (f));
14 
15 	return (f);
16 }
17 
18