# heliaCORE.Internal.arm_minmax_f32_common

## arm_minmax_f32_impl

`function` · `c`

```c
arm_cmsis_nn_status arm_minmax_f32_impl(
    const cmsis_nn_context *ctx,
    const float32_t *input_1_data,
    const cmsis_nn_dims *input_1_dims,
    const float32_t *input_2_data,
    const cmsis_nn_dims *input_2_dims,
    float32_t *output_data,
    const cmsis_nn_dims *output_dims,
    int32_t select_max
)
```

Shared implementation for arm_minimum_f32 / arm_maximum_f32.

Defined out-of-line in arm_minmax_f32_common.c (rather than inline in this header) so that source-level test coverage tools (e.g. gcov) attribute hits/lines/branches to the real implementation instead of collapsing them into the call site of the thin wrapper that invokes it.

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| ctx | const cmsis_nn_context * | in | Function context. Unused; may be NULL. |
| input_1_data | const float32_t * | in | Pointer to the first input tensor data. |
| input_1_dims | const cmsis_nn_dims * | in | Dimensions of the first input tensor. |
| input_2_data | const float32_t * | in | Pointer to the second input tensor data. |
| input_2_dims | const cmsis_nn_dims * | in | Dimensions of the second input tensor. |
| output_data | float32_t * | out | Pointer to the output tensor data. |
| output_dims | const cmsis_nn_dims * | in | Dimensions of the output tensor. |
| select_max | int32_t | in | Non-zero to compute elementwise maximum, zero for minimum. |

**Returns**

| Name | Type | Description |
| --- | --- | --- |
|  |  | ARM_CMSIS_NN_SUCCESS or ARM_CMSIS_NN_ARG_ERROR. |

Source: `Include/Internal/arm_minmax_f32_common.h:59`
