diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-08-26 12:23:40 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-08-26 12:23:40 +0000 |
commit | 8ed31e1809b9b62df050f92b08501e96f485c677 (patch) | |
tree | 7d1c1ede52dd154cb81adcbded913d5e6d6abc64 /sys/dev/usb/udl.c | |
parent | eeed523198867ebd135391608cc58cb62ed7f6ce (diff) |
Also avoid __packed struct to Huffman table in the driver side in favour
of performance. Instead generate the Huffman table with two ints.
Suggested, help and OK deraadt@
Diffstat (limited to 'sys/dev/usb/udl.c')
-rw-r--r-- | sys/dev/usb/udl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index 8020aa11849..34f8bfcff18 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.23 2009/08/25 19:46:51 mglocker Exp $ */ +/* $OpenBSD: udl.c,v 1.24 2009/08/26 12:23:39 mglocker Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -1052,10 +1052,10 @@ udl_cmd_insert_buf_comp(struct udl_softc *sc, uint8_t *buf, uint32_t len) { struct udl_cmd_buf *cb = &sc->sc_cmd_buf; struct udl_huffman *h; - uint8_t bit_count, bit_pos; + uint8_t bit_pos; uint16_t *pixels, prev; int16_t diff; - uint32_t bit_pattern, bit_cur; + uint32_t bit_count, bit_pattern, bit_cur; int i, j, bytes, eob, padding; udl_cmd_insert_check(cb, len); |