Changes between Version 11 and Version 12 of Libraries
- Timestamp:
- 05/22/23 15:42:16 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Libraries
v11 v12 28 28 * This function copies the data from the given bundle into the memory region starting at `ptr`. The memory region extends for `$bundle_size(b)` bytes. 29 29 * `$atomic_f void $bundle_unpack_apply($bundle data, void *buf, $operation op, int count, void *result)` 30 * This function unpacks the bundle and applies the specified operation on the contents of the bundle. For every binary operation defined in operation, the content of the bundle will be used as the left operand and `buf` will be used as the right operand. The result of the operation is stored in `buf`. Parameter `count` is the number of elements in the bundle; `buf` should point to a region of memory with at these last many elements of the sametype.30 * This function unpacks the bundle while applying the specified numeric operation. Parameter `op` specifies a binary operation. For each ''i'' in 0..''count''-1, the operation is applied to the ''i''-th element of `buf` and the ''i''-th element of the bundle, and the result replaces the ''i''-th element of `buf`. Parameter `count` is the number of elements in the bundle; `buf` should point to a region of memory with at least `count` elements. The elements should all have the same numeric type. 31 31 32 32 == comm
