GM6000 Digital Heater Controller Branch: main
SDX-1330
integer.h
Go to the documentation of this file.
1#ifndef Cpl_Math_integer_h_
2#define Cpl_Math_integer_h_
3/*-----------------------------------------------------------------------------
4* COPYRIGHT_HEADER_TO_BE_FILLED_LATER
5*----------------------------------------------------------------------------*/
6/** @file
7
8 This file contains a collection of methods comparing, manipulating, etc.
9 floating binary integers
10
11*/
12
13#include <stdlib.h>
14#include <stdint.h>
15
16
17///
18namespace Cpl {
19///
20namespace Math {
21
22
23/** This method treats the binary array a single 'large integer' and increment
24 the array/large-integer by N. N is limited to [0,255].
25
26 If the 'littleEndian' flag is set to the true, then the increment starts
27 with the first byte in the array; else the increment starts with the last
28 byte in the array.
29 */
30void incrementLargeInteger( uint8_t* integerToBeIncrement, int integerSizeInBytes, uint8_t incValue=1, bool littleEndian=true ) noexcept;
31
32
33}; // end namespaces
34};
35#endif // end header latch
void incrementLargeInteger(uint8_t *integerToBeIncrement, int integerSizeInBytes, uint8_t incValue=1, bool littleEndian=true) noexcept
This method treats the binary array a single 'large integer' and increment the array/large-integer by...
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20