aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_eval_uper.funcs
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-19 15:46:53 +0100
committerBjörn Gustavsson <[email protected]>2013-01-22 19:20:12 +0100
commitfbcb7fe589edbfe79d10d7fe01be8a9f77926b89 (patch)
treea7e5a695db24fb32d2baff4eb35baa795aa5be1e /lib/asn1/src/asn1ct_eval_uper.funcs
parenta822c4a25d9855381632c124ed8ca0882a792e96 (diff)
downloadotp-fbcb7fe589edbfe79d10d7fe01be8a9f77926b89.tar.gz
otp-fbcb7fe589edbfe79d10d7fe01be8a9f77926b89.tar.bz2
otp-fbcb7fe589edbfe79d10d7fe01be8a9f77926b89.zip
Optimize encoding of ENUMERATED in per and uper
Always pre-encode the values for the enumeration. Clean up the code and let the per and uper back-ends share the code.
Diffstat (limited to 'lib/asn1/src/asn1ct_eval_uper.funcs')
-rw-r--r--lib/asn1/src/asn1ct_eval_uper.funcs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_eval_uper.funcs b/lib/asn1/src/asn1ct_eval_uper.funcs
new file mode 100644
index 0000000000..884a486f40
--- /dev/null
+++ b/lib/asn1/src/asn1ct_eval_uper.funcs
@@ -0,0 +1,2 @@
+{uper,encode_constrained_number,2}.
+{uper,encode_small_number,1}.