Download HP Pascal for OpenVMS Language Reference Manual

Transcript
A pointer can only refer to a VOLATILE variable or a variable allocated by the
NEW procedure.
For More Information:
•
Pointer data types (Section 2.3)
•
On the VOLATILE attribute (Section 10.2.42)
•
On the NEW procedure (Section 8.60)
8.5 AND_ATOMIC Function (OpenVMS I64 and OpenVMS
Alpha systems only)
The AND_ATOMIC function logically ANDs the value of an expression to
the value of a variable, stores the newly computed value in the variable, and
returns the previous value of the variable.
AND_ATOMIC( e, v )
The type of the expression e must be assignment compatible with that of the
variable v. The variable v must be an INTEGER, UNSIGNED, INTEGER64, or
UNSIGNED64 variable and must be allocated on a natural boundary, such as
longword for INTEGER and UNSIGNED and quadword for INTERGER64 and
UNSIGNED64. The result of AND_ATOMIC is the same type as the variable
v.
The AND_ATOMIC function does not provide memory synchronization between
multiple processors. The BARRIER predeclared routine must be used for that
purpose.
This function is used to access data that is shared between two or more threads
of execution.
For More Information
•
On atomic operations (HP Pascal for OpenVMS User Manual)
8.6 ARCTAN Function
The ARCTAN function returns a real value that expresses in radians the
arctangent of the specified parameter.
ARCTAN( x )
The parameter x can be an integer or REAL type.
Predeclared Functions and Procedures 8–5