From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randi Botse Subject: Re: Help on bit operation Date: Fri, 28 Aug 2009 11:52:25 +0700 Message-ID: <34e1241d0908272152r32591e52wb1885433edb9a9ff@mail.gmail.com> References: <34e1241d0908261602k4d07d422o7ea69b606210701a@mail.gmail.com> <19093.53306.413232.981055@cerise.gclements.plus.com> <34e1241d0908262343p1cd899a8o4c9e956371d570b3@mail.gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=LcXDe/EZp21SjVqJ/X4X0bH0QgaJ4xNZj8bcJdS/rhc=; b=cFu3OdNcDHH82z1OC8y54EFxAXYNkGVR8c3h2u1rqSLrO/00+CsMsFBeNXGJFBxswD UFb0TO3K2xfwzAY4IPR3YySGLGsM7G7Y7B+wbRatRONs81OR/DTtY6Ga4FevJaIw6GjY VapR+xnLm/FDjlXy7BiU1GLSrNi4wyFS4XYPI= In-Reply-To: <34e1241d0908262343p1cd899a8o4c9e956371d570b3@mail.gmail.com> Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org Hi again. I was able to solve my bit packing/unpacking problems with bit mask and shift operations, but i have no idea how to do this using a bit-field structure, can someone give me a example? Thanks - Randi