From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7419 invoked by alias); 18 Apr 2008 20:42:59 -0000 Received: (qmail 7408 invoked by uid 22791); 18 Apr 2008 20:42:58 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Apr 2008 20:42:39 +0000 Received: by an-out-0708.google.com with SMTP id b36so185146ana.111 for ; Fri, 18 Apr 2008 13:42:37 -0700 (PDT) Received: by 10.100.216.3 with SMTP id o3mr311410ang.62.1208551357046; Fri, 18 Apr 2008 13:42:37 -0700 (PDT) Received: from ?128.84.79.231? ( [128.84.79.231]) by mx.google.com with ESMTPS id d21sm726006and.30.2008.04.18.13.42.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Apr 2008 13:42:36 -0700 (PDT) Message-ID: <480907B5.8020201@gmail.com> Date: Fri, 18 Apr 2008 20:42:00 -0000 From: Mehak Mahajan User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: brolley@redhat.com, cgen@sources.redhat.com Subject: Is there a function in cgen for parsing short integers? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00002.txt.bz2 Hi, Thanks for your reply. :) I am doing precisely what you have decribed. However, I need to differentiate between -1 which is represented as a 16 bit number (0xFFFF) and -1 which is represented as a 32 bit number (0xFFFFFFFF). Is there a way to do that? Cheers, Mehak