diff options
Diffstat (limited to 'usr/src/lib/libresolv2/common/dnssafe/bigabs.c')
-rw-r--r-- | usr/src/lib/libresolv2/common/dnssafe/bigabs.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/usr/src/lib/libresolv2/common/dnssafe/bigabs.c b/usr/src/lib/libresolv2/common/dnssafe/bigabs.c new file mode 100644 index 0000000000..f6a105988d --- /dev/null +++ b/usr/src/lib/libresolv2/common/dnssafe/bigabs.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 1999 by Sun Microsystems, Inc. + * All rights reserved. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +/* Copyright (C) RSA Data Security, Inc. created 1986, 1996. This is an + unpublished work protected as such under copyright law. This work + contains proprietary, confidential, and trade secret information of + RSA Data Security, Inc. Use, disclosure or reproduction without the + express written authorization of RSA Data Security, Inc. is + prohibited. + */ + +#include "port_before.h" +#include "global.h" +#include "bigmath.h" +#include "port_after.h" + +/* BigAbs (a, b, n) -- a = ABS (b). + */ +void BigAbs (a, b, n) +UINT2 *a, *b; +unsigned int n; +{ + if (BigSign (b, n) >= 0) + BigCopy (a, b, n); + else + BigNeg (a, b, n); +} |