sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
common_kernel.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
21#include <common-typedefs.h>
22
23uint16_t uidiv(uint32_t dividend, uint16_t divider, uint16_t *remainder);
24
36void post_in_pre_world(uint16_t in_row, uint16_t in_col,
37 uint16_t start_row, uint16_t start_col,
38 uint16_t step_row, uint16_t step_col,
39 uint16_t *out_row, uint16_t *out_col);
40
52void pre_in_post_world(uint16_t in_row, uint16_t in_col, uint16_t start_row,
53 uint16_t start_col, uint16_t step_row, uint16_t step_col,
54 int16_t *out_row, int16_t *out_col);
void pre_in_post_world(uint16_t in_row, uint16_t in_col, uint16_t start_row, uint16_t start_col, uint16_t step_row, uint16_t step_col, int16_t *out_row, int16_t *out_col)
Get the pre's coordinates in the post's coordinate system.
uint16_t uidiv(uint32_t dividend, uint16_t divider, uint16_t *remainder)
Unsigned integer division.
void post_in_pre_world(uint16_t in_row, uint16_t in_col, uint16_t start_row, uint16_t start_col, uint16_t step_row, uint16_t step_col, uint16_t *out_row, uint16_t *out_col)
Get the post's coordinates in the pre's coordinate system.