Michale asks:
> I have a user who wants to read some COBOL packed decimal fields in C. He
> informs me that there are some intrinsics for doing this but that they are
> not documented. The intrinsics that he is interested in are: HPPACCVAD,
> HPPACCVBD, and HPPACCVDB.
>
> A search of the WWW finds a document regarding these intrinsics but they are
> quoting a Series 800 manual. Are these "intrinsics" callable on the
> HP/3000? Under Posix?
<plug>
CSEQ [2.4] - LPS Toolbox [A.04a] (c) 1995 Lund Performance Solutions
Procedure HPPACCVAD (
addr1 : anyvar record ; {R26, @32 -> 8}
len1 : int32 ; {R25}
addr2 : anyvar record ; {R24, @32 -> 8}
len2 : int32 ; {R23}
Parm_5 : var int32 ; {SP-$0034} := nil, align 32}
Parm_6 : var int32 ) {SP-$0038} := nil, align 32}
{Contact HP for documentation }
</plug>
Looks like they're on MPE/iX.
Sure...call them from C under POSIX, if you want. Just get the calling
sequence correct (#pragma intrinsic for HP C, <correct-definition> for
gcc)
--
Stan Sieler [log in to unmask]http://www.allegro.com/sieler.html