for (int bpv = bitsPerValue; bpv <= maxBitsPerValue; ++bpv) { if (Format.PACKED_SINGLE_BLOCK.isSupported(bpv)) { float overhead = Format.PACKED_SINGLE_BLOCK.overheadPerValue(bpv); float acceptableOverhead = acceptableOverheadPerValue + bitsPerValue - bpv; if (overhead <= acceptableOverhead) {
for (int bpv = bitsPerValue; bpv <= maxBitsPerValue; ++bpv) { if (Format.PACKED_SINGLE_BLOCK.isSupported(bpv)) { float overhead = Format.PACKED_SINGLE_BLOCK.overheadPerValue(bpv); float acceptableOverhead = acceptableOverheadPerValue + bitsPerValue - bpv; if (overhead <= acceptableOverhead) {
for (int bpv = bitsPerValue; bpv <= maxBitsPerValue; ++bpv) { if (Format.PACKED_SINGLE_BLOCK.isSupported(bpv)) { float overhead = Format.PACKED_SINGLE_BLOCK.overheadPerValue(bpv); float acceptableOverhead = acceptableOverheadPerValue + bitsPerValue - bpv; if (overhead <= acceptableOverhead) {
for (int bpv = bitsPerValue; bpv <= maxBitsPerValue; ++bpv) { if (Format.PACKED_SINGLE_BLOCK.isSupported(bpv)) { float overhead = Format.PACKED_SINGLE_BLOCK.overheadPerValue(bpv); float acceptableOverhead = acceptableOverheadPerValue + bitsPerValue - bpv; if (overhead <= acceptableOverhead) {
/** * Returns the overhead ratio (<code>overhead per value / bits per value</code>). */ public final float overheadRatio(int bitsPerValue) { assert isSupported(bitsPerValue); return overheadPerValue(bitsPerValue) / bitsPerValue; } }
/** * Returns the overhead ratio (<code>overhead per value / bits per value</code>). */ public final float overheadRatio(int bitsPerValue) { assert isSupported(bitsPerValue); return overheadPerValue(bitsPerValue) / bitsPerValue; } }
/** * Returns the overhead ratio (<code>overhead per value / bits per value</code>). */ public final float overheadRatio(int bitsPerValue) { assert isSupported(bitsPerValue); return overheadPerValue(bitsPerValue) / bitsPerValue; } }
/** * Returns the overhead ratio (<code>overhead per value / bits per value</code>). */ public final float overheadRatio(int bitsPerValue) { assert isSupported(bitsPerValue); return overheadPerValue(bitsPerValue) / bitsPerValue; } }