Stop using allocation trick in fastpath functions (OCaml 4.02).
authorRichard W.M. Jones <rich@annexia.org>
Wed, 30 Jul 2014 20:02:02 +0000 (20:02 +0000)
committerRichard W.M. Jones <rich@annexia.org>
Wed, 30 Jul 2014 20:02:02 +0000 (20:02 +0000)
commit5997a66d9b078d75f821eedc9ba615c9df321e98
tree5656ed55c80d39a59ececc1af97b4e47941688d7
parentddf96ad11dab238189dbc130544aa0bac5ed9c2a
Stop using allocation trick in fastpath functions (OCaml 4.02).

In OCaml 4.02, there is a new compiler optimization which means we can
no longer rely on the trick of passing in a newly allocated `zero'
(ie. Int32.zero or Int64.zero) to our fastpath noalloc functions.

Instead we have to turn these into regular functions, which means they
may be a bit slower.
bitstring.ml
bitstring.mli
bitstring_c.c
pa_bitstring.ml