COMPRESSION: Remove long lines.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2020-08-24 22:15:54 -03:00
parent 1cac584c46
commit e23f97bbd6

View File

@ -260,8 +260,9 @@ module compression
#ifdef ZSTD #ifdef ZSTD
case(compression_zstd) case(compression_zstd)
allocate(buffer(zstd_bound(size(input, kind=8)))) allocate(buffer(zstd_bound(size(input, kind=8))))
csize = zstd_compress(c_loc(buffer), size(buffer, kind=8), & csize = zstd_compress(c_loc(buffer), size(buffer, kind=8), &
c_loc(input), size(input, kind=8), compression_level) c_loc(input), size(input, kind=8), &
compression_level)
if (csize > 0 .and. csize <= size(output, kind=8)) then if (csize > 0 .and. csize <= size(output, kind=8)) then
output(1:csize) = buffer(1:csize) output(1:csize) = buffer(1:csize)
else else
@ -274,7 +275,7 @@ module compression
prefs(5:6) = transfer(size(input, kind=8), [ 0_4 ]) prefs(5:6) = transfer(size(input, kind=8), [ 0_4 ])
prefs(9) = compression_level prefs(9) = compression_level
allocate(buffer(lz4_bound(size(input, kind=8), c_loc(prefs)))) allocate(buffer(lz4_bound(size(input, kind=8), c_loc(prefs))))
csize = lz4_compress(c_loc(buffer), size(buffer, kind=8), & csize = lz4_compress(c_loc(buffer), size(buffer, kind=8), &
c_loc(input), size(input, kind=8), c_loc(prefs)) c_loc(input), size(input, kind=8), c_loc(prefs))
if (csize > 0 .and. csize <= size(output, kind=8)) then if (csize > 0 .and. csize <= size(output, kind=8)) then
output(1:csize) = buffer(1:csize) output(1:csize) = buffer(1:csize)
@ -288,7 +289,7 @@ module compression
csize = 0 csize = 0
allocate(buffer(size(input))) allocate(buffer(size(input)))
ret = lzma_compress(compression_level, 4, c_null_ptr, & ret = lzma_compress(compression_level, 4, c_null_ptr, &
c_loc(input), size(input, kind=8), & c_loc(input), size(input, kind=8), &
c_loc(buffer), c_loc(csize), size(buffer, kind=8)) c_loc(buffer), c_loc(csize), size(buffer, kind=8))
if (ret == 0 .and. csize <= size(output, kind=8)) then if (ret == 0 .and. csize <= size(output, kind=8)) then
output(1:csize) = buffer(1:csize) output(1:csize) = buffer(1:csize)