diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2016-06-05 18:11:52 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2016-06-05 18:11:52 +0000 | 
| commit | c7e5c1785338855b919c7c73769c04b47d5e69d2 (patch) | |
| tree | e8f256f6c8e7bf97fa6de734594702873a326cd6 /lib/libc/stdlib/div.c | |
| parent | b014914de710ce006aaaedb9ac8f64dff58474b7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/div.c')
| -rw-r--r-- | lib/libc/stdlib/div.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/lib/libc/stdlib/div.c b/lib/libc/stdlib/div.c index 7dfe553f4a05..0bafbe607037 100644 --- a/lib/libc/stdlib/div.c +++ b/lib/libc/stdlib/div.c @@ -46,6 +46,7 @@ div(num, denom)  	r.quot = num / denom;  	r.rem = num % denom; +#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)  	/*  	 * The ANSI standard says that |r.quot| <= |n/d|, where  	 * n/d is to be computed in infinite precision.  In other @@ -73,5 +74,6 @@ div(num, denom)  		r.quot++;  		r.rem -= denom;  	} +#endif  	return (r);  } | 
