On Mon, 25 Feb 2013 11:49:59 -0600, John McKown wrote: >Depends on the contents of register 11. B040 will be quad word aligned only >if register 11 is itself quad word aligned. If you got this from a STORAGE >OBTAIN or GETMAIN, then the alignment is only guaranteed to be double word >aligned, unless you ask for it to be page aligned. > My earlier suggestion was wretchedly non-reentrant.
OK. So OBTAIN 16 more bytes than needed. Use modulo arithmetic to point to the first quadword boundary there. Save the original address from OBTAIN in order to free the block. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
