Bitmanipulation in Ada
From: Bernd Specht (Bernd.Specht_at_gmx.com)
Date: 08/18/04
- Next message: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Previous message: Simon Wright: "Re: STORAGE_ERROR in adainit"
- Next in thread: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Reply: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Reply: see below: "Re: Bitmanipulation in Ada"
- Reply: Martin Dowie: "Re: Bitmanipulation in Ada"
- Reply: Alfred Hilscher: "Bitordering? was Re: Bitmanipulation in Ada"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Aug 2004 20:37:08 GMT
Hi,
i have some questions regarding bitmanipulations:
1. I found bitwise "and", "or" and "xor" operations, but as far as I
understand they are applicable only for modular types or packed boolean
arrays. Is this correct?
2. I did not found shift and rotate operations. Did I miss something or are
there really none?
3. When I want treat a value both as an integer and as a boolean array, how
can i do this? In pascal I would use a tagless record like
TYPE ov is record
case boolean of
true : i : integer;
false : byte_array;
end;
end;
Such overlay structures are not valid with Ada, so what do instead?
thanks
- Next message: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Previous message: Simon Wright: "Re: STORAGE_ERROR in adainit"
- Next in thread: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Reply: Ludovic Brenta: "Re: Bitmanipulation in Ada"
- Reply: see below: "Re: Bitmanipulation in Ada"
- Reply: Martin Dowie: "Re: Bitmanipulation in Ada"
- Reply: Alfred Hilscher: "Bitordering? was Re: Bitmanipulation in Ada"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|