[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: email@example.com
- Subject: Binary manipulation
- From: firstname.lastname@example.org (Jeffrey B Kane)
- Date: Mon, 23 Nov 1992 11:30:46 -0500
What is the best way to do binary manipulation of data within MCL?
I need to do the equivalent of shifts, ands, nors, ors, etc., but the problem
I'm having is doing these with integers and fixnums How would you convert the following
short var1 47;
unsigned long var2 0x322459;
*((var1 & 0x7 << 3) + var2)
going back and forth between MCL fixnum and bit-arrays (without losing data)?
Jeffrey Kane, MD
Kane Biomedical Systems
[Don't take life too seriously... it's not like anyone gets out of it alive.]