Function details for the avm2.intrinsics.memory package.
Public Functions
| Function | Defined by |
| |
A compare-and-swap operation for domainMemory.
| avm2.intrinsics.memory |
| |
Loads a 32-bit floating point value from the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Loads a 64-bit floating point value from the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Loads a 16-bit integer value from the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Loads a 32-bit integer value from the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Loads an 8-bit integer value from the given addr in domain memory.
| avm2.intrinsics.memory |
| |
A complete memory barrier for domainMemory (for both load and store instructions).
| avm2.intrinsics.memory |
| |
Stores a 32-bit floating point value into the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Stores a 64-bit floating point value into the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Stores a 16-bit integer value into the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Stores a 32-bit integer value into the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Stores an 8-bit integer value into the given addr in domain memory.
| avm2.intrinsics.memory |
| |
Sign-extends a 1-bit integer value to a 32-bit integer value.
| avm2.intrinsics.memory |
| |
Sign-extends a 16-bit integer value to a 32-bit integer value.
| avm2.intrinsics.memory |
| |
Sign-extends an 8-bit integer value to a 32-bit integer value.
| avm2.intrinsics.memory |
public function casi32(addr:int, expectedVal:int, newVal:int):int
Language version: | ActionScript 3.0
|
A compare-and-swap operation for domainMemory.
This behaves like the ByteArray.atomicCompareAndSwapIntAt
method, but operates on the
current domain memory. The 32-bit value found at the addr
offset into domain memory is
checked, and if this is equal to the expectedValue
value, then the newValue
value is written into this offset, and the old (expected) value is returned. Otherwise, the domain
memory is not updated, and the actual value found at this address is returned.
Parameters
| addr:int — The address/offset into the domain memory byte array at which to perform the compare/swap operation.
|
|
| expectedVal:int — Contains the expected value of the integer to be replaced by the newValue parameter.
|
|
| newVal:int — The new value to put into the location at the addr offset, if the existing value equals the exptectedValue parameter.
|
Returns
| int —
Returns the previous value at the specified offset into the domain memory.
|
See also
public function lf32(addr:int):Number
Language version: | ActionScript 3.0
|
Loads a 32-bit floating point value from the given addr
in domain memory.
Parameters
| addr:int — The address/offset into the domain memory byte array from which to load the value.
|
Returns
| Number —
Returns the 32-bit single-precision floating point value found at this memory location.
|
See also
public function lf64(addr:int):Number
Language version: | ActionScript 3.0
|
Loads a 64-bit floating point value from the given addr
in domain memory.
Parameters
| addr:int — The address/offset into the domain memory byte array from which to load the value.
|
Returns
| Number —
Returns the 64-bit double-precsision floating point value found at this memory location.
|
See also
public function li16(addr:int):int
Language version: | ActionScript 3.0
|
Loads a 16-bit integer value from the given addr
in domain memory.
Parameters
| addr:int — The address/offset into the domain memory byte array from which to load the value.
|
Returns
| int —
Returns the 16-bit integer value found at this memory location.
|
See also
public function li32(addr:int):int
Language version: | ActionScript 3.0
|
Loads a 32-bit integer value from the given addr
in domain memory.
Parameters
| addr:int — The address/offset into the domain memory byte array from which to load the value.
|
Returns
| int —
Returns the 32-bit integer value found at this memory location.
|
See also
public function li8(addr:int):int
Language version: | ActionScript 3.0
|
Loads an 8-bit integer value from the given addr
in domain memory.
Parameters
| addr:int — The address/offset into the domain memory byte array from which to load the value.
|
Returns
| int —
Returns the 8-bit integer value found at this memory location.
|
See also
public function mfence():void
Language version: | ActionScript 3.0
|
A complete memory barrier for domainMemory (for both load and store instructions).
See also
public function sf32(value:Number, addr:int):void
Language version: | ActionScript 3.0
|
Stores a 32-bit floating point value into the given addr
in domain memory.
Parameters
| value:Number — The 32-bit single-precision floating point value to be stored into the domain memory.
|
|
| addr:int — The address/offset into the domain memory byte array into which to store the value.
|
See also
public function sf64(value:Number, addr:int):void
Language version: | ActionScript 3.0
|
Stores a 64-bit floating point value into the given addr
in domain memory.
Parameters
| value:Number — The 64-bit double-precision floating point value to be stored into the domain memory.
|
|
| addr:int — The address/offset into the domain memory byte array into which to store the value.
|
See also
public function si16(value:int, addr:int):void
Language version: | ActionScript 3.0
|
Stores a 16-bit integer value into the given addr
in domain memory.
Parameters
| value:int — The integer value treated as a 16-bit value to be stored into the domain memory.
|
|
| addr:int — The address/offset into the domain memory byte array into which to store the value.
|
See also
public function si32(value:int, addr:int):void
Language version: | ActionScript 3.0
|
Stores a 32-bit integer value into the given addr
in domain memory.
Parameters
| value:int — The integer value to be stored into the domain memory.
|
|
| addr:int — The address/offset into the domain memory byte array into which to store the value.
|
See also
public function si8(value:int, addr:int):void
Language version: | ActionScript 3.0
|
Stores an 8-bit integer value into the given addr
in domain memory.
Parameters
| value:int — The integer value treated as an 8-bit value to be stored into the domain memory.
|
|
| addr:int — The address/offset into the domain memory byte array into which to store the value.
|
See also
public function sxi1(value:int):int
Language version: | ActionScript 3.0
|
Sign-extends a 1-bit integer value to a 32-bit integer value.
Parameters
| value:int — The integer value that is treated as a 1-bit value.
|
Returns
| int —
Returns the 32-bit integer value created by sign-extending the 1-bit argument.
|
public function sxi16(value:int):int
Language version: | ActionScript 3.0
|
Sign-extends a 16-bit integer value to a 32-bit integer value.
Parameters
| value:int — The integer value that is treated as a 16-bit value.
|
Returns
| int —
Returns the 32-bit integer value created by sign-extending the 16-bit argument.
|
public function sxi8(value:int):int
Language version: | ActionScript 3.0
|
Sign-extends an 8-bit integer value to a 32-bit integer value.
Parameters
| value:int — The integer value that is treated as an 8-bit value.
|
Returns
| int —
Returns the 32-bit integer value created by sign-extending the 8-bit argument.
|
© 2004-2022 Adobe Systems Incorporated. All rights reserved.
Mon Jun 30 2025, 11:00 AM GMT+01:00