/* +-------------------------------------------------------------------+ */ /* | Copyright 1988,1991, David Koblas. | */ /* | Permission to use, copy, modify, and distribute this software | */ /* | and its documentation for any purpose and without fee is hereby | */ /* | granted, provided that the above copyright notice appear in all | */ /* | copies and that both that copyright notice and this permission | */ /* | notice appear in supporting documentation. This software is | */ /* | provided "as is" without express or implied warranty. | */ /* +-------------------------------------------------------------------+ */ #include #include #ifdef TEST main(argc,argv) int argc; char **argv; { int i; for (i=1;i=type) goto out; val = (val*type)+n; } out: return(val * sign); }