<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
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: hosking@cs.purdue.edu<br>Date: Tue, 23 Nov 2010 09:37:00 -0500<br>CC: m3devel@elegosoft.com<br>To: jay.krell@cornell.edu<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><base>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> </body>
</html>