From 77452a26e7d95d29dbaa797595ae683f03a3345b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 19 Jun 2011 20:47:29 -0700 Subject: temporary undoing of renaming --- softfloat/s_add128.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 softfloat/s_add128.c (limited to 'softfloat/s_add128.c') diff --git a/softfloat/s_add128.c b/softfloat/s_add128.c new file mode 100755 index 0000000..59c0348 --- /dev/null +++ b/softfloat/s_add128.c @@ -0,0 +1,17 @@ + +#include +#include "platform.h" +#include "primitives.h" + +struct uint128 + softfloat_add128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) +{ + struct uint128 z; + + z.v0 = a0 + b0; + z.v64 = a64 + b64; + z.v64 += ( z.v0 < a0 ); + return z; + +} + -- cgit v1.1