Testing module

black_box

procedureextensionsince 0.31.0Source

Returns value and hides it from the optimizer: the compiler cannot know the result, and cannot drop the work that made it, so wrap what a bench computes and the inputs it must not see through. It is an intrinsic that costs no instruction: an empty assembly block takes the value and may change it (and any memory), see docs/language/intrinsics.md.

black_box :: (value: $T) -> T

Parameters

value: $T

Returns

T

See also