[OpenBIOS] [PATCH 10/10] Adding filll Forth primitive (v2)
Segher Boessenkool
segher at kernel.crashing.org
Mon Aug 22 16:19:04 CEST 2011
> +static void
> +filll(void)
> +{
> + uint32_t value = POP();
> + int count = POP();
> + uint32_t *dest = (uint32_t*)cell2pointer(POP());
> +
> + int i;
> + for (i = count; i > 0; i -= sizeof(uint32_t)) {
> + *dest++ = value;
> + }
> +}
This isn't going to work with -fstrict-aliasing, but I guess
openbios has that disabled anyway?
Segher
More information about the OpenBIOS
mailing list