[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is there a C API that could exchange the values at different index of the stack?
- From: Andrew Gierth <andrew@...>
- Date: Sat, 23 Jan 2021 06:44:22 +0000
>>>>> "孙世龙" == 孙世龙 sunshilong <sunshilong369@gmail.com> writes:
>> I toyed with the idea, but discarded it as it needs still more
>> normalization and possibly ordering of the parameters
孙世龙> Could you please explain that in more detail?
Doing it with rotates requires knowing which of the supplied stack
positions is lower on the stack, because rotating the deeper index to
the top would move the position of the shallower element.
--
Andrew.