aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/big.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-05-16 10:47:44 +0200
committerGitHub <[email protected]>2017-05-16 10:47:44 +0200
commit8fd3466d1fef48a09a45f7fd7f031addf3855dc2 (patch)
tree86164a6d5475cd80378af352d6734044b1a1f513 /erts/emulator/beam/big.c
parent836d89d9423b4aa01fc887286b6a97721f62c02e (diff)
parente6437e926340c3024449b83826f8013d187caaed (diff)
downloadotp-8fd3466d1fef48a09a45f7fd7f031addf3855dc2.tar.gz
otp-8fd3466d1fef48a09a45f7fd7f031addf3855dc2.tar.bz2
otp-8fd3466d1fef48a09a45f7fd7f031addf3855dc2.zip
Merge pull request #1436 from garazdawi/lukas/erts/remove_unused_functions
erts: Remove old unused functions
Diffstat (limited to 'erts/emulator/beam/big.c')
-rw-r--r--erts/emulator/beam/big.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/erts/emulator/beam/big.c b/erts/emulator/beam/big.c
index 4baee7900b..1f6feade1c 100644
--- a/erts/emulator/beam/big.c
+++ b/erts/emulator/beam/big.c
@@ -2266,21 +2266,6 @@ Eterm big_minus(Eterm x, Eterm y, Eterm *r)
}
/*
-** Subtract a digit from big number
-*/
-Eterm big_minus_small(Eterm x, Eterm y, Eterm *r)
-{
- Eterm* xp = big_val(x);
-
- if (BIG_SIGN(xp))
- return big_norm(r, D_add(BIG_V(xp),BIG_SIZE(xp), (ErtsDigit) y, BIG_V(r)),
- (short) BIG_SIGN(xp));
- else
- return big_norm(r, D_sub(BIG_V(xp),BIG_SIZE(xp), (ErtsDigit) y, BIG_V(r)),
- (short) BIG_SIGN(xp));
-}
-
-/*
** Multiply smallnums
*/
@@ -2412,16 +2397,6 @@ Eterm big_rem(Eterm x, Eterm y, Eterm *r)
}
}
-Eterm big_neg(Eterm x, Eterm *r)
-{
- Eterm* xp = big_val(x);
- dsize_t xsz = BIG_SIZE(xp);
- short xsgn = BIG_SIGN(xp);
-
- MOVE_DIGITS(BIG_V(r), BIG_V(xp), xsz);
- return big_norm(r, xsz, (short) !xsgn);
-}
-
Eterm big_band(Eterm x, Eterm y, Eterm *r)
{
Eterm* xp = big_val(x);