projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4 development
[unix-history]
/
usr
/
src
/
lib
/
libF77
/
d_mod.c
double
d_mod
(
x
,
y
)
double
*
x
, *
y
;
{
double
floor
(),
quotient
;
if
( (
quotient
= *
x
/ *
y
) >=
0
)
quotient
=
floor
(
quotient
);
else
quotient
= -
floor
(-
quotient
);
return
(*
x
- (*
y
) *
quotient
);
}