diff options
author | Sascha Schumann <sas@php.net> | 2004-03-07 22:35:26 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2004-03-07 22:35:26 +0000 |
commit | 048e66b2a9b0ce089b15920618044a3834feb276 (patch) | |
tree | d2070e926c1c417250ef85c3f9f471be59d90f54 /ext/sqlite/php_sqlite.h | |
parent | 70757063a7cca44d333c9d6c209bb676d0d35eb4 (diff) | |
download | php-git-048e66b2a9b0ce089b15920618044a3834feb276.tar.gz |
Avoid using floating point arithmetic and rely on safe_emalloc
for the multiplication.
The actual size requirement is spelled out as:
** The result is written into a preallocated output buffer "out".
** "out" must be able to hold at least 2 +(257*n)/254 bytes.
** In other words, the output will be expanded by as much as 3
** bytes for every 254 bytes of input plus 2 bytes of fixed overhead.
** (This is approximately 2 + 1.0118*n or about a 1.2% size increase.)
Diffstat (limited to 'ext/sqlite/php_sqlite.h')
0 files changed, 0 insertions, 0 deletions