Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/b3fb282713fcbc409435f05e3b6e265d to your computer and use it in GitHub Desktop.
Save trycf/b3fb282713fcbc409435f05e3b6e265d to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
v = {
maxint16: inputBaseN("7FFF",16),
maxint32: inputBaseN("7FFFFFFF",16),
vals: []
};
for(i=-3; i<=3; i++) {
v.vals.append({
i:i,
value16: v.maxint16+i,
masked16: bitAnd(v.maxint16+i,v.maxint16),
value32: v.maxint32+i,
masked32: bitAnd(v.maxint32+i,v.maxint32)
});
}
writeDump( var="#v#" );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment