Re: C++ ptrmemfun break if FUNCTION_BOUNDARY < 2 * BITS_PER_UNIT

Joern Rennecke
2001-04-09T12:29:00Z

Is it safe to use arithmetic SHIFTs instead of letting the compiler
> choose them instead of DIVs and MULTs? For some reason, on
> mn10300-elf, the div makes it to the generated code, which we
> certainly don't want.

A signed division is not a portable way to extract a bit. And for
negative values, it just doesn't work.
Why don't you use an unsigned division or a logical shift?