<html><head><base href="x-msg://479/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Are they wrong?  Seems strange that they worked previously!<br>
<br><div><div>On Nov 23, 2010, at 1:46 PM, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">None yet. But notice the endian checks around the insert_mn or extract_mn uses in cg.m3.<br>The change would be to remove those.<br><br> - Jay<br><br><br><hr id="stopSpelling">Subject: Re: [M3devel] bit field operations for insert/extract<br>From:<span class="Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>Date: Tue, 23 Nov 2010 09:37:00 -0500<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br><br>Refresh my memory.  What m3front change did you make?<div><br><br><div><div>On Nov 23, 2010, at 3:33 AM, Jay K wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium; "><div class="ecxhmmessage" style="font-size: 10pt; font-family: Tahoma; ">Tony, I'm going to try again to use bitfield operations for extract_mn.<br>And insert_mn.<br>I think I know what went wrong before for extract_mn: just remove the endian check in m3front.<br>But I'm going to be sure test p240 covers it well.<br><br>The easy part, duh, your original extract_mn was correct I think, just, again, missing the m3front change.<br><br>Insert_mn is less obvious.<br>I started writing it... bitfield_ref..modify_expr...uh, seems suspicious, to be modifying an existing value.<br><br>I guess it's more like, that, but with a temp that starts with the full value of x:<br> create temp<br> modify(temp, x)<br> modify(bitfield_ref(temp, count, offset), y);<br> m3_load(temp)<span class="ecxApple-converted-space"> </span><br><br>?<br><br>I'll try something like that.<br>It seems unfortunate.<br>Maybe we can know if x is already a value and not a variable?<br><br><br> - Jay<br></div></span></blockquote></div><br></div></div></span><br class="Apple-interchange-newline"></blockquote></div><br></body></html>