j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
+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
On Mon, Aug 22, 2011 at 7:19 AM, Segher Boessenkool segher@kernel.crashing.org wrote:
This isn't going to work with -fstrict-aliasing, but I guess openbios has that disabled anyway?
I don't think it breaks strict aliasing rules. A cell is defined as a 32bit integer on 32bit architectures and this code will only be compiled on ppc32. I just wrote it as a uint32_t for clarity.
William Hahne
Segher
-- OpenBIOS http://openbios.org/ Mailinglist: http://lists.openbios.org/mailman/listinfo Free your System - May the Forth be with you