[SLOF] [PATCH slof v5 3/6] fdt: Pass the resulting device tree to QEMU

Alexey Kardashevskiy aik at ozlabs.ru
Mon Oct 16 18:53:45 AEDT 2017


On 16/10/17 18:32, Alexey Kardashevskiy wrote:
> On 16/10/17 18:18, Segher Boessenkool wrote:
>> Hi Alexey,
>>
>> On Mon, Oct 16, 2017 at 04:16:50PM +1100, Alexey Kardashevskiy wrote:
>>> +: fdt-skip-string ( cur -- cur )
>>> +    BEGIN
>>> +        dup c@
>>> +    WHILE
>>> +        1+
>>> +    REPEAT
>>> +    4 + -4 and
>>> +;
>>
>> You could use ZCOUNT, like:
>>
>> : fdt-skip-string ( addr -- addr )  zcount + char+  4 #aligned ;



btw using zcount (which is C's strlen()) here reduced time from 335ms to
243ms. Nice!


-- 
Alexey


More information about the SLOF mailing list