spinn_common 7.2.2
Support code for SpiNNaker applications.
Loading...
Searching...
No Matches
Functions
arm.h File Reference

These built-in functions are available for the ARM family of processors. More...

#include <stdint.h>

Go to the source code of this file.

Functions

static uint32_t __add (uint32_t x, uint32_t y)
 This function gives access to the ARM add instruction.
 
static uint32_t __adc (uint32_t x, uint32_t y)
 This function gives access to the ARM adc instruction.
 
static uint32_t __adds (uint32_t x, uint32_t y)
 This function gives access to the ARM adds instruction.
 
static uint32_t __adcs (uint32_t x, uint32_t y)
 This function gives access to the ARM adcs instruction.
 
static uint32_t __sub (uint32_t x, uint32_t y)
 This function gives access to the ARM sub instruction.
 
static uint32_t __sbc (uint32_t x, uint32_t y)
 This function gives access to the ARM sbc instruction.
 
static uint32_t __subs (uint32_t x, uint32_t y)
 This function gives access to the ARM subs instruction.
 
static uint32_t __sbcs (uint32_t x, uint32_t y)
 This function gives access to the ARM sbcs instruction.
 
static uint32_t __rsb (uint32_t x, uint32_t y)
 This function gives access to the ARM rsb instruction.
 
static uint32_t __rsc (uint32_t x, uint32_t y)
 This function gives access to the ARM rsc instruction.
 
static uint32_t __rsbs (uint32_t x, uint32_t y)
 This function gives access to the ARM rsbs instruction.
 
static uint32_t __rscs (uint32_t x, uint32_t y)
 This function gives access to the ARM rscs instruction.
 

Detailed Description

These built-in functions are available for the ARM family of processors.

Author
Dave Lester (david.nosp@m..r.l.nosp@m.ester.nosp@m.@man.nosp@m.chest.nosp@m.er.a.nosp@m.c.uk)
Date
12 December, 2013

Created on : 12 December 2013 Version : $Revision$ Last modified on : $Date$ Last modified by : $Author$ $Id$

$Log$

Function Documentation

◆ __add()

static uint32_t __add ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM add instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x+y.

◆ __adc()

static uint32_t __adc ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM adc instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x+y+carry.

◆ __adds()

static uint32_t __adds ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM adds instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x+y, and sets the flag bits (including carry).

◆ __adcs()

static uint32_t __adcs ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM adcs instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x+y+carry, and sets the flag bits (including carry).

◆ __sub()

static uint32_t __sub ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM sub instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x-y.

◆ __sbc()

static uint32_t __sbc ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM sbc instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x-y-carry.

◆ __subs()

static uint32_t __subs ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM subs instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x-y, and sets the flag bits (including carry).

◆ __sbcs()

static uint32_t __sbcs ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM sbcs instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns x-y-carry, and sets the flag bits (including carry).

◆ __rsb()

static uint32_t __rsb ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM rsb instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns y-x

◆ __rsc()

static uint32_t __rsc ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM rsc instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns y-x-carry.

◆ __rsbs()

static uint32_t __rsbs ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM rsbs instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns y-x-carry, and sets the flag bits (including carry).

◆ __rscs()

static uint32_t __rscs ( uint32_t  x,
uint32_t  y 
)
inlinestatic

This function gives access to the ARM rscs instruction.

Parameters
[in]xAn unsigned 32-bit integer.
[in]yAn unsigned 32-bit integer.
Returns
The function returns y-x-carry, and sets the flag bits (including carry).