Lines Matching defs:bytes
184 * Calculate the number of bytes needed to hold bits.
186 * @return The number of bytes needed to hold bits.
194 * bytes.
195 * @param bytes The minimum number of bytes needed.
196 * @return The number of 4-byte units needed to hold bytes.
199 bytes_to_int32(const int bytes) {
200 return (((bytes) + 3) >> 2);
204 * Calculate the number of bytes (in multiples of 4) needed to hold bytes.
205 * @param bytes The minimum number of bytes needed.
206 * @return The closest multiple of 4 that is equal or higher than bytes.
209 pad_to_int32(const int bytes) {
210 return (((bytes) + 3) & ~3);