[XviD-devel] gmc weirdo
skal
skal at planet-d.net
Mon Aug 18 16:54:36 CEST 2003
Hi everybody,
On Sun, 2003-08-10 at 15:35, Christoph Lampert wrote:
> Which on machines with 2's complement for negative number (and I don't
> think any other are still available) is just the same as interpreting the
> "signed" bitpattern as "unsigned". In any way, every negative number
> becomes larger than any positive number, so the check does exactly
> what it's supposed to do.
>
> Anyway, the code is correct, but that doesn't help the users, does it?
> We'll need a workaroud for VC++.
Some ideas:
- try the opposite tests:
if ((uint32_t)W>=(uint32_t)u)
- try pointer dereferencing (shouldn't incur overhead
when -correctly- optimized):
if (*(uint32_t*)&u<=(uint32_t)W)
my 0.03euros (yeah, the additional 0.01euros are
for the aspirin;)
bye!
Skal
More information about the XviD-devel
mailing list