summaryrefslogtreecommitdiff
path: root/bsp/ESP/ESP32_C6/idf_port/src/rt-thread_balance_stub.c
blob: 6442169f89646df503da222f9dace620238b2f9f (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <math.h>
#include "rtconfig.h"

static int _real_out_of_range(double x)
{
    return x != x || x >= 9223372036854775808.0 || x <= -9223372036854775808.0;
}

double ceil(double x)
{
    long long n;

    if (_real_out_of_range(x))
    {
        return x;
    }
    n = (long long)x;
    if (x > 0 && (double)n != x)
    {
        n++;
    }
    return (double)n;
}

double floor(double x)
{
    long long n;

    if (_real_out_of_range(x))
    {
        return x;
    }
    n = (long long)x;
    if (x < 0 && (double)n != x)
    {
        n--;
    }
    return (double)n;
}


void _end(void)
{
    return;
}


void _edata(void)
{
    return;
}


#ifndef BSP_USING_BLE // 由于BLE组件使用了VFS组件,而VFS组件提供了这些函数导致了冲突
void opendir(void)
{
    return;
}


void readdir(void)
{
    return;
}


void closedir(void)
{
    return;
}


void select(void)
{
    return;
}

#endif /* BSP_USING_BLE */