Re: const versus __attribute__((const))

From: H. Peter Anvin
Date: Mon Dec 08 2003 - 22:23:25 EST


Jamie Lokier wrote:
>
> It would be nice to have a way to declare an asm like "pure" not
> "const", so that it's allowed to read memory but multiple calls can be
> eliminated; I don't know of a way to express that.
>

Just specify memory input operands.

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/