# heliaCORE.Internal.arm_depthwise_conv_opt_common

## ARM_DW_SPEC_ENTRY

`macro` · `c`

```c
#define ARM_DW_SPEC_ENTRY(MATCH_FN, CALL_FN) { \ (MATCH_FN), (CALL_FN) \ }
```

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| MATCH_FN |  |  |  |
| CALL_FN |  |  |  |

Source: `Include/Internal/arm_depthwise_conv_opt_common.h:36`

## ARM_DW_ARRAY_SIZE

`macro` · `c`

```c
#define ARM_DW_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
```

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| arr |  |  |  |

Source: `Include/Internal/arm_depthwise_conv_opt_common.h:41`

## arm_depthwise_conv_input_index_nhwc

`function` · `c`

```c
static int32_t arm_depthwise_conv_input_index_nhwc(int32_t x, int32_t y, int32_t c, int32_t input_x, int32_t input_ch)
```

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| x | int32_t |  |  |
| y | int32_t |  |  |
| c | int32_t |  |  |
| input_x | int32_t |  |  |
| input_ch | int32_t |  |  |

Source: `Include/Internal/arm_depthwise_conv_opt_common.h:45`

## arm_depthwise_conv_output_index_nhwc

`function` · `c`

```c
static int32_t arm_depthwise_conv_output_index_nhwc(
    int32_t out_x,
    int32_t out_y,
    int32_t out_ch,
    int32_t output_x,
    int32_t output_ch
)
```

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| out_x | int32_t |  |  |
| out_y | int32_t |  |  |
| out_ch | int32_t |  |  |
| output_x | int32_t |  |  |
| output_ch | int32_t |  |  |

Source: `Include/Internal/arm_depthwise_conv_opt_common.h:52`

## ARM_DW_DISPATCH

`macro` · `c`

```c
#define ARM_DW_DISPATCH(TABLE, COUNT, ...) do \ { \ for (size_t _i = 0; _i < (COUNT); ++_i) \ { \ if ((TABLE)[_i].match(__VA_ARGS__)) \ { \ return (TABLE)[_i].call(__VA_ARGS__); \ } \ } \ } while (0)
```

**Parameters**

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| TABLE |  |  |  |
| COUNT |  |  |  |
| ... |  |  |  |

Source: `Include/Internal/arm_depthwise_conv_opt_common.h:57`
