Function details for the avm2.intrinsics.memory package.
Public Functions
 FunctionDefined by
  
casi32(addr:int, expectedVal:int, newVal:int):int
A compare-and-swap operation for domainMemory.
avm2.intrinsics.memory
  
lf32(addr:int):Number
Loads a 32-bit floating point value from the given addr in domain memory.
avm2.intrinsics.memory
  
lf64(addr:int):Number
Loads a 64-bit floating point value from the given addr in domain memory.
avm2.intrinsics.memory
  
li16(addr:int):int
Loads a 16-bit integer value from the given addr in domain memory.
avm2.intrinsics.memory
  
li32(addr:int):int
Loads a 32-bit integer value from the given addr in domain memory.
avm2.intrinsics.memory
  
li8(addr:int):int
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
  
sf32(value:Number, addr:int):void
Stores a 32-bit floating point value into the given addr in domain memory.
avm2.intrinsics.memory
  
sf64(value:Number, addr:int):void
Stores a 64-bit floating point value into the given addr in domain memory.
avm2.intrinsics.memory
  
si16(value:int, addr:int):void
Stores a 16-bit integer value into the given addr in domain memory.
avm2.intrinsics.memory
  
si32(value:int, addr:int):void
Stores a 32-bit integer value into the given addr in domain memory.
avm2.intrinsics.memory
  
si8(value:int, addr:int):void
Stores an 8-bit integer value into the given addr in domain memory.
avm2.intrinsics.memory
  
sxi1(value:int):int
Sign-extends a 1-bit integer value to a 32-bit integer value.
avm2.intrinsics.memory
  
sxi16(value:int):int
Sign-extends a 16-bit integer value to a 32-bit integer value.
avm2.intrinsics.memory
  
sxi8(value:int):int
Sign-extends an 8-bit integer value to a 32-bit integer value.
avm2.intrinsics.memory
Function detail
casi32()function
public function casi32(addr:int, expectedVal:int, newVal:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

lf32()function 
public function lf32(addr:int):Number

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

lf64()function 
public function lf64(addr:int):Number

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

li16()function 
public function li16(addr:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

li32()function 
public function li32(addr:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

li8()function 
public function li8(addr:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

mfence()function 
public function mfence():void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

A complete memory barrier for domainMemory (for both load and store instructions).

See also

sf32()function 
public function sf32(value:Number, addr:int):void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

sf64()function 
public function sf64(value:Number, addr:int):void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

si16()function 
public function si16(value:int, addr:int):void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

si32()function 
public function si32(value:int, addr:int):void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

si8()function 
public function si8(value:int, addr:int):void

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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

sxi1()function 
public function sxi1(value:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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.
sxi16()function 
public function sxi16(value:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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.
sxi8()function 
public function sxi8(value:int):int

Language version: ActionScript 3.0
Runtime version: AIR 3.6

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.