summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/softposit.cmake
blob: 2964464ba3f42e8a592d4ab0e8d559f33bf291b6 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
set(softposit_sources

# source/libraries/softposit/source/s_addMagsP8.c
# source/libraries/softposit/source/s_subMagsP8.c
# source/libraries/softposit/source/s_mulAddP8.c
# source/libraries/softposit/source/p8_add.c
# source/libraries/softposit/source/p8_sub.c
# source/libraries/softposit/source/p8_mul.c
# source/libraries/softposit/source/p8_div.c
# source/libraries/softposit/source/p8_sqrt.c
# source/libraries/softposit/source/p8_to_p16.c
# source/libraries/softposit/source/p8_to_p32.c
# source/libraries/softposit/source/p8_to_pX2.c
# source/libraries/softposit/source/p8_to_i32.c
# source/libraries/softposit/source/p8_to_i64.c
# source/libraries/softposit/source/p8_to_ui32.c
# source/libraries/softposit/source/p8_to_ui64.c
# source/libraries/softposit/source/p8_roundToInt.c
# source/libraries/softposit/source/p8_mulAdd.c
# source/libraries/softposit/source/p8_eq.c
# source/libraries/softposit/source/p8_le.c
# source/libraries/softposit/source/p8_lt.c
# source/libraries/softposit/source/quire8_fdp_add.c
# source/libraries/softposit/source/quire8_fdp_sub.c
# source/libraries/softposit/source/ui32_to_p8.c
# source/libraries/softposit/source/ui64_to_p8.c
# source/libraries/softposit/source/i32_to_p8.c
# source/libraries/softposit/source/i64_to_p8.c

# source/libraries/softposit/source/s_addMagsP16.c
# source/libraries/softposit/source/s_subMagsP16.c
# source/libraries/softposit/source/s_mulAddP16.c
# source/libraries/softposit/source/p16_to_ui32.c
# source/libraries/softposit/source/p16_to_ui64.c
# source/libraries/softposit/source/p16_to_i32.c
# source/libraries/softposit/source/p16_to_i64.c
# source/libraries/softposit/source/p16_to_p8.c
# source/libraries/softposit/source/p16_to_p32.c
# source/libraries/softposit/source/p16_to_pX2.c
# source/libraries/softposit/source/p16_roundToInt.c
# source/libraries/softposit/source/p16_add.c
# source/libraries/softposit/source/p16_sub.c
# source/libraries/softposit/source/p16_mul.c
# source/libraries/softposit/source/p16_mulAdd.c
# source/libraries/softposit/source/p16_div.c
# source/libraries/softposit/source/p16_eq.c
# source/libraries/softposit/source/p16_le.c
# source/libraries/softposit/source/p16_lt.c
# source/libraries/softposit/source/p16_sqrt.c
# source/libraries/softposit/source/quire16_fdp_add.c
# source/libraries/softposit/source/quire16_fdp_sub.c
# source/libraries/softposit/source/quire_helper.c
# source/libraries/softposit/source/ui32_to_p16.c
# source/libraries/softposit/source/ui64_to_p16.c
# source/libraries/softposit/source/i32_to_p16.c
# source/libraries/softposit/source/i64_to_p16.c

  source/libraries/softposit/source/s_addMagsP32.c
  source/libraries/softposit/source/s_subMagsP32.c
  source/libraries/softposit/source/s_mulAddP32.c
  source/libraries/softposit/source/p32_to_ui32.c
  source/libraries/softposit/source/p32_to_ui64.c
  source/libraries/softposit/source/p32_to_i32.c
  source/libraries/softposit/source/p32_to_i64.c
# source/libraries/softposit/source/p32_to_p8.c
# source/libraries/softposit/source/p32_to_p16.c
##source/libraries/softposit/source/p32_to_pX2.c
  source/libraries/softposit/source/p32_roundToInt.c
  source/libraries/softposit/source/p32_add.c
  source/libraries/softposit/source/p32_sub.c
  source/libraries/softposit/source/p32_mul.c
  source/libraries/softposit/source/p32_mulAdd.c
  source/libraries/softposit/source/p32_div.c
  source/libraries/softposit/source/p32_eq.c
  source/libraries/softposit/source/p32_le.c
  source/libraries/softposit/source/p32_lt.c
  source/libraries/softposit/source/p32_sqrt.c
##source/libraries/softposit/source/quire32_fdp_add.c
##source/libraries/softposit/source/quire32_fdp_sub.c
  source/libraries/softposit/source/ui32_to_p32.c
  source/libraries/softposit/source/ui64_to_p32.c
  source/libraries/softposit/source/i32_to_p32.c
  source/libraries/softposit/source/i64_to_p32.c
  source/libraries/softposit/source/s_approxRecipSqrt_1Ks.c
# source/libraries/softposit/source/c_convertDecToPosit8.c
# source/libraries/softposit/source/c_convertPosit8ToDec.c
# source/libraries/softposit/source/c_convertDecToPosit16.c
# source/libraries/softposit/source/c_convertPosit16ToDec.c
# source/libraries/softposit/source/c_convertQuire8ToPosit8.c
# source/libraries/softposit/source/c_convertQuire16ToPosit16.c
##source/libraries/softposit/source/c_convertQuire32ToPosit32.c
  source/libraries/softposit/source/c_convertDecToPosit32.c
  source/libraries/softposit/source/c_convertPosit32ToDec.c
  source/libraries/softposit/source/c_int.c
##source/libraries/softposit/source/s_addMagsPX2.c
##source/libraries/softposit/source/s_subMagsPX2.c
##source/libraries/softposit/source/s_mulAddPX2.c
##source/libraries/softposit/source/pX2_add.c
##source/libraries/softposit/source/pX2_sub.c
##source/libraries/softposit/source/pX2_mul.c
##source/libraries/softposit/source/pX2_div.c
##source/libraries/softposit/source/pX2_mulAdd.c
##source/libraries/softposit/source/pX2_roundToInt.c
##source/libraries/softposit/source/pX2_sqrt.c
##source/libraries/softposit/source/pX2_eq.c
##source/libraries/softposit/source/pX2_le.c
##source/libraries/softposit/source/pX2_lt.c
##source/libraries/softposit/source/ui32_to_pX2.c
# source/libraries/softposit/source/ui64_to_pX2.c
##source/libraries/softposit/source/i32_to_pX2.c
# source/libraries/softposit/source/i64_to_pX2.c
##source/libraries/softposit/source/c_convertQuireX2ToPositX2.c

)

add_library(softposit STATIC ${softposit_sources})

target_include_directories(softposit PRIVATE
    source/libraries/softposit/source
    source/libraries/softposit/source/include
    source/libraries/softposit/build/Linux-x86_64-GCC
)

target_compile_options(softposit PRIVATE
    -DSOFTPOSIT_FAST_INT64
)