Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

sensoroperations.h 1.06 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  sensoroperations.hpp
//  dcdb
//
//  Created by Tafani, Daniele on 13.04.18.
//  Copyright © 2018 LRZ. All rights reserved.
//

#include <stdio.h>
#include <cstdint>
#include <cinttypes>
#include <cstdlib>

#ifndef sensoroperations_h
#define sensoroperations_h

namespace DCDB {
    
    typedef enum {
        DCDB_OP_SUCCESS,
        DCDB_OP_OVERFLOW,
        DCDB_OP_DIVISION_BY_ZERO,
        DCDB_OP_UNKNOWN,
    } DCDB_OP_RESULT;

    
    DCDB_OP_RESULT safeAdd(int64_t lh, int64_t rh, int64_t* result);
    DCDB_OP_RESULT safeMult(int64_t lh, int64_t rh, int64_t* result);
    DCDB_OP_RESULT safeMult(double lh, double rh, int64_t* result);
    DCDB_OP_RESULT scale(int64_t* result, double scalingFactor, double baseScalingFactor);
    DCDB_OP_RESULT delta(int64_t lh, int64_t rh, int64_t* result);
    DCDB_OP_RESULT derivative(int64_t lhx, int64_t rhx, uint64_t lht, uint64_t rht, int64_t* result);
    DCDB_OP_RESULT integral(int64_t lhx, int64_t rhx, uint64_t lht, uint64_t rht, int64_t* result);
    
} /* End of namespace DCDB */

#endif /* sensoroperations_h */