this repo has no description
1/*
2 * fdim.c
3 * cLibm
4 *
5 * Created by Ian Ollmann on 6/13/07.
6 * Copyright 2007 Apple Inc. All rights reserved.
7 *
8 */
9
10#include <math.h>
11
12double fdim( double x, double y )
13{
14 double result = 0.0;
15
16 if( x != x || y != y )
17 return x + y;
18
19 if( x > y )
20 result = x - y;
21
22 return result;
23}