1add_entrypoint_object(
2  ceil
3  SRCS
4    ceil.cpp
5  HDRS
6    ../ceil.h
7  DEPENDS
8    libc.utils.FPUtil.fputil
9  COMPILE_OPTIONS
10    -O2
11)
12
13add_entrypoint_object(
14  ceilf
15  SRCS
16    ceilf.cpp
17  HDRS
18    ../ceilf.h
19  DEPENDS
20    libc.utils.FPUtil.fputil
21  COMPILE_OPTIONS
22    -O2
23)
24
25add_entrypoint_object(
26  ceill
27  SRCS
28    ceill.cpp
29  HDRS
30    ../ceill.h
31  DEPENDS
32    libc.utils.FPUtil.fputil
33  COMPILE_OPTIONS
34    -O2
35)
36
37add_object_library(
38  math_utils
39  SRCS
40    math_utils.cpp
41  HDRS
42    math_utils.h
43  DEPENDS
44    libc.include.errno
45    libc.include.math
46    libc.src.errno.__errno_location
47)
48
49add_object_library(
50  sincosf_utils
51  HDRS
52    sincosf_utils.h
53  SRCS
54    sincosf_data.cpp
55  DEPENDS
56    .math_utils
57)
58
59add_entrypoint_object(
60  cosf
61  SRCS
62    cosf.cpp
63  HDRS
64    ../cosf.h
65  DEPENDS
66    .sincosf_utils
67    libc.include.math
68    libc.src.errno.__errno_location
69)
70
71add_entrypoint_object(
72  sinf
73  SRCS
74    sinf.cpp
75  HDRS
76    ../sinf.h
77  DEPENDS
78    .sincosf_utils
79    libc.include.math
80    libc.src.errno.__errno_location
81    libc.utils.FPUtil.fputil
82  COMPILE_OPTIONS
83    -O3
84)
85
86add_entrypoint_object(
87  sincosf
88  SRCS
89    sincosf.cpp
90  HDRS
91    ../sincosf.h
92  DEPENDS
93    .sincosf_utils
94    libc.include.math
95    libc.src.errno.__errno_location
96)
97
98add_entrypoint_object(
99  fabs
100  SRCS
101    fabs.cpp
102  HDRS
103    ../fabs.h
104  DEPENDS
105    libc.utils.FPUtil.fputil
106  COMPILE_OPTIONS
107    -O2
108)
109
110add_entrypoint_object(
111  fabsf
112  SRCS
113    fabsf.cpp
114  HDRS
115    ../fabsf.h
116  DEPENDS
117    libc.utils.FPUtil.fputil
118  COMPILE_OPTIONS
119    -O2
120)
121
122add_entrypoint_object(
123  fabsl
124  SRCS
125    fabsl.cpp
126  HDRS
127    ../fabsl.h
128  DEPENDS
129    libc.utils.FPUtil.fputil
130  COMPILE_OPTIONS
131    -O2
132)
133
134add_entrypoint_object(
135  trunc
136  SRCS
137    trunc.cpp
138  HDRS
139    ../trunc.h
140  DEPENDS
141    libc.utils.FPUtil.fputil
142  COMPILE_OPTIONS
143    -O2
144)
145
146add_entrypoint_object(
147  truncf
148  SRCS
149    truncf.cpp
150  HDRS
151    ../truncf.h
152  DEPENDS
153    libc.utils.FPUtil.fputil
154  COMPILE_OPTIONS
155    -O2
156)
157
158add_entrypoint_object(
159  truncl
160  SRCS
161    truncl.cpp
162  HDRS
163    ../truncl.h
164  DEPENDS
165    libc.utils.FPUtil.fputil
166  COMPILE_OPTIONS
167    -O2
168)
169
170add_entrypoint_object(
171  floor
172  SRCS
173    floor.cpp
174  HDRS
175    ../floor.h
176  DEPENDS
177    libc.utils.FPUtil.fputil
178  COMPILE_OPTIONS
179    -O2
180)
181
182add_entrypoint_object(
183  floorf
184  SRCS
185    floorf.cpp
186  HDRS
187    ../floorf.h
188  DEPENDS
189    libc.utils.FPUtil.fputil
190  COMPILE_OPTIONS
191    -O2
192)
193
194add_entrypoint_object(
195  floorl
196  SRCS
197    floorl.cpp
198  HDRS
199    ../floorl.h
200  DEPENDS
201    libc.utils.FPUtil.fputil
202  COMPILE_OPTIONS
203    -O2
204)
205
206add_entrypoint_object(
207  round
208  SRCS
209    round.cpp
210  HDRS
211    ../round.h
212  DEPENDS
213    libc.utils.FPUtil.fputil
214  COMPILE_OPTIONS
215    -O2
216)
217
218add_entrypoint_object(
219  roundf
220  SRCS
221    roundf.cpp
222  HDRS
223    ../roundf.h
224  DEPENDS
225    libc.utils.FPUtil.fputil
226  COMPILE_OPTIONS
227    -O2
228)
229
230add_entrypoint_object(
231  roundl
232  SRCS
233    roundl.cpp
234  HDRS
235    ../roundl.h
236  DEPENDS
237    libc.utils.FPUtil.fputil
238  COMPILE_OPTIONS
239    -O2
240)
241
242add_entrypoint_object(
243  lround
244  SRCS
245    lround.cpp
246  HDRS
247    ../lround.h
248  DEPENDS
249    libc.utils.FPUtil.fputil
250  COMPILE_OPTIONS
251    -O2
252)
253
254add_entrypoint_object(
255  lroundf
256  SRCS
257    lroundf.cpp
258  HDRS
259    ../lroundf.h
260  DEPENDS
261    libc.utils.FPUtil.fputil
262  COMPILE_OPTIONS
263    -O2
264)
265
266add_entrypoint_object(
267  lroundl
268  SRCS
269    lroundl.cpp
270  HDRS
271    ../lroundl.h
272  DEPENDS
273    libc.utils.FPUtil.fputil
274  COMPILE_OPTIONS
275    -O2
276)
277
278add_entrypoint_object(
279  llround
280  SRCS
281    llround.cpp
282  HDRS
283    ../llround.h
284  DEPENDS
285    libc.utils.FPUtil.fputil
286  COMPILE_OPTIONS
287    -O2
288)
289
290add_entrypoint_object(
291  llroundf
292  SRCS
293    llroundf.cpp
294  HDRS
295    ../llroundf.h
296  DEPENDS
297    libc.utils.FPUtil.fputil
298  COMPILE_OPTIONS
299    -O2
300)
301
302add_entrypoint_object(
303  llroundl
304  SRCS
305    llroundl.cpp
306  HDRS
307    ../llroundl.h
308  DEPENDS
309    libc.utils.FPUtil.fputil
310  COMPILE_OPTIONS
311    -O2
312)
313
314add_entrypoint_object(
315  rint
316  SRCS
317    rint.cpp
318  HDRS
319    ../rint.h
320  DEPENDS
321    libc.utils.FPUtil.fputil
322  COMPILE_OPTIONS
323    -O2
324)
325
326add_entrypoint_object(
327  rintf
328  SRCS
329    rintf.cpp
330  HDRS
331    ../rintf.h
332  DEPENDS
333    libc.utils.FPUtil.fputil
334  COMPILE_OPTIONS
335    -O2
336)
337
338add_entrypoint_object(
339  rintl
340  SRCS
341    rintl.cpp
342  HDRS
343    ../rintl.h
344  DEPENDS
345    libc.utils.FPUtil.fputil
346  COMPILE_OPTIONS
347    -O2
348)
349
350add_entrypoint_object(
351  lrint
352  SRCS
353    lrint.cpp
354  HDRS
355    ../lrint.h
356  DEPENDS
357    libc.utils.FPUtil.fputil
358  COMPILE_OPTIONS
359    -O2
360)
361
362add_entrypoint_object(
363  lrintf
364  SRCS
365    lrintf.cpp
366  HDRS
367    ../lrintf.h
368  DEPENDS
369    libc.utils.FPUtil.fputil
370  COMPILE_OPTIONS
371    -O2
372)
373
374add_entrypoint_object(
375  lrintl
376  SRCS
377    lrintl.cpp
378  HDRS
379    ../lrintl.h
380  DEPENDS
381    libc.utils.FPUtil.fputil
382  COMPILE_OPTIONS
383    -O2
384)
385
386add_entrypoint_object(
387  llrint
388  SRCS
389    llrint.cpp
390  HDRS
391    ../llrint.h
392  DEPENDS
393    libc.utils.FPUtil.fputil
394  COMPILE_OPTIONS
395    -O2
396)
397
398add_entrypoint_object(
399  llrintf
400  SRCS
401    llrintf.cpp
402  HDRS
403    ../llrintf.h
404  DEPENDS
405    libc.utils.FPUtil.fputil
406  COMPILE_OPTIONS
407    -O2
408)
409
410add_entrypoint_object(
411  llrintl
412  SRCS
413    llrintl.cpp
414  HDRS
415    ../llrintl.h
416  DEPENDS
417    libc.utils.FPUtil.fputil
418  COMPILE_OPTIONS
419    -O2
420)
421
422add_entrypoint_object(
423  nearbyint
424  SRCS
425    nearbyint.cpp
426  HDRS
427    ../nearbyint.h
428  DEPENDS
429    libc.utils.FPUtil.fputil
430  COMPILE_OPTIONS
431    -O2
432)
433
434add_entrypoint_object(
435  nearbyintf
436  SRCS
437    nearbyintf.cpp
438  HDRS
439    ../nearbyintf.h
440  DEPENDS
441    libc.utils.FPUtil.fputil
442  COMPILE_OPTIONS
443    -O2
444)
445
446add_entrypoint_object(
447  nearbyintl
448  SRCS
449    nearbyintl.cpp
450  HDRS
451    ../nearbyintl.h
452  DEPENDS
453    libc.utils.FPUtil.fputil
454  COMPILE_OPTIONS
455    -O2
456)
457
458add_object_library(
459  exp_utils
460  HDRS
461    exp_utils.h
462  SRCS
463    exp_utils.cpp
464  DEPENDS
465    .math_utils
466)
467
468add_entrypoint_object(
469  expf
470  SRCS
471    expf.cpp
472  HDRS
473    ../expf.h
474  DEPENDS
475    .exp_utils
476    .math_utils
477    libc.include.math
478)
479
480add_entrypoint_object(
481  exp2f
482  SRCS
483    exp2f.cpp
484  HDRS
485    ../exp2f.h
486  DEPENDS
487    .exp_utils
488    .math_utils
489    libc.include.math
490)
491
492add_entrypoint_object(
493  copysign
494  SRCS
495    copysign.cpp
496  HDRS
497    ../copysign.h
498  DEPENDS
499    libc.utils.FPUtil.fputil
500  COMPILE_OPTIONS
501    -O2
502)
503
504add_entrypoint_object(
505  copysignf
506  SRCS
507    copysignf.cpp
508  HDRS
509    ../copysignf.h
510  DEPENDS
511    libc.utils.FPUtil.fputil
512  COMPILE_OPTIONS
513    -O2
514)
515
516add_entrypoint_object(
517  copysignl
518  SRCS
519    copysignl.cpp
520  HDRS
521    ../copysignl.h
522  DEPENDS
523    libc.utils.FPUtil.fputil
524  COMPILE_OPTIONS
525    -O2
526)
527
528add_entrypoint_object(
529  frexp
530  SRCS
531    frexp.cpp
532  HDRS
533    ../frexp.h
534  DEPENDS
535    libc.utils.FPUtil.fputil
536  COMPILE_OPTIONS
537    -O2
538)
539
540add_entrypoint_object(
541  frexpf
542  SRCS
543    frexpf.cpp
544  HDRS
545    ../frexpf.h
546  DEPENDS
547    libc.utils.FPUtil.fputil
548  COMPILE_OPTIONS
549    -O2
550)
551
552add_entrypoint_object(
553  frexpl
554  SRCS
555    frexpl.cpp
556  HDRS
557    ../frexpl.h
558  DEPENDS
559    libc.utils.FPUtil.fputil
560  COMPILE_OPTIONS
561    -O2
562)
563
564add_entrypoint_object(
565  ilogb
566  SRCS
567    ilogb.cpp
568  HDRS
569    ../ilogb.h
570  DEPENDS
571    libc.utils.FPUtil.fputil
572  COMPILE_OPTIONS
573    -O2
574)
575
576add_entrypoint_object(
577  ilogbf
578  SRCS
579    ilogbf.cpp
580  HDRS
581    ../ilogbf.h
582  DEPENDS
583    libc.utils.FPUtil.fputil
584  COMPILE_OPTIONS
585    -O2
586)
587
588add_entrypoint_object(
589  ilogbl
590  SRCS
591    ilogbl.cpp
592  HDRS
593    ../ilogbl.h
594  DEPENDS
595    libc.utils.FPUtil.fputil
596  COMPILE_OPTIONS
597    -O2
598)
599
600add_entrypoint_object(
601  ldexp
602  SRCS
603    ldexp.cpp
604  HDRS
605    ../ldexp.h
606  DEPENDS
607    libc.utils.FPUtil.fputil
608  COMPILE_OPTIONS
609    -O2
610)
611
612add_entrypoint_object(
613  ldexpf
614  SRCS
615    ldexpf.cpp
616  HDRS
617    ../ldexpf.h
618  DEPENDS
619    libc.utils.FPUtil.fputil
620  COMPILE_OPTIONS
621    -O2
622)
623
624add_entrypoint_object(
625  ldexpl
626  SRCS
627    ldexpl.cpp
628  HDRS
629    ../ldexpl.h
630  DEPENDS
631    libc.utils.FPUtil.fputil
632  COMPILE_OPTIONS
633    -O2
634)
635
636add_entrypoint_object(
637  logb
638  SRCS
639    logb.cpp
640  HDRS
641    ../logb.h
642  DEPENDS
643    libc.utils.FPUtil.fputil
644  COMPILE_OPTIONS
645    -O2
646)
647
648add_entrypoint_object(
649  logbf
650  SRCS
651    logbf.cpp
652  HDRS
653    ../logbf.h
654  DEPENDS
655    libc.utils.FPUtil.fputil
656  COMPILE_OPTIONS
657    -O2
658)
659
660add_entrypoint_object(
661  logbl
662  SRCS
663    logbl.cpp
664  HDRS
665    ../logbl.h
666  DEPENDS
667    libc.utils.FPUtil.fputil
668  COMPILE_OPTIONS
669    -O2
670)
671
672add_entrypoint_object(
673  modf
674  SRCS
675    modf.cpp
676  HDRS
677    ../modf.h
678  DEPENDS
679    libc.utils.FPUtil.fputil
680  COMPILE_OPTIONS
681    -O2
682)
683
684add_entrypoint_object(
685  modff
686  SRCS
687    modff.cpp
688  HDRS
689    ../modff.h
690  DEPENDS
691    libc.utils.FPUtil.fputil
692  COMPILE_OPTIONS
693    -O2
694)
695
696add_entrypoint_object(
697  modfl
698  SRCS
699    modfl.cpp
700  HDRS
701    ../modfl.h
702  DEPENDS
703    libc.utils.FPUtil.fputil
704  COMPILE_OPTIONS
705    -O2
706)
707
708add_entrypoint_object(
709  fmin
710  SRCS
711    fmin.cpp
712  HDRS
713    ../fmin.h
714  DEPENDS
715    libc.utils.FPUtil.fputil
716  COMPILE_OPTIONS
717    -O2
718)
719
720add_entrypoint_object(
721  fminf
722  SRCS
723    fminf.cpp
724  HDRS
725    ../fminf.h
726  DEPENDS
727    libc.utils.FPUtil.fputil
728  COMPILE_OPTIONS
729    -O2
730)
731
732add_entrypoint_object(
733  fminl
734  SRCS
735    fminl.cpp
736  HDRS
737    ../fminl.h
738  DEPENDS
739    libc.utils.FPUtil.fputil
740  COMPILE_OPTIONS
741    -O2
742)
743
744add_entrypoint_object(
745  fmax
746  SRCS
747    fmax.cpp
748  HDRS
749    ../fmax.h
750  DEPENDS
751    libc.utils.FPUtil.fputil
752  COMPILE_OPTIONS
753    -O2
754)
755
756add_entrypoint_object(
757  fmaxf
758  SRCS
759    fmaxf.cpp
760  HDRS
761    ../fmaxf.h
762  DEPENDS
763    libc.utils.FPUtil.fputil
764  COMPILE_OPTIONS
765    -O2
766)
767
768add_entrypoint_object(
769  fmaxl
770  SRCS
771    fmaxl.cpp
772  HDRS
773    ../fmaxl.h
774  DEPENDS
775    libc.utils.FPUtil.fputil
776  COMPILE_OPTIONS
777    -O2
778)
779
780add_entrypoint_object(
781  sqrt
782  SRCS
783    sqrt.cpp
784  HDRS
785    ../sqrt.h
786  DEPENDS
787    libc.utils.FPUtil.fputil
788  COMPILE_OPTIONS
789    -O2
790)
791
792add_entrypoint_object(
793  sqrtf
794  SRCS
795    sqrtf.cpp
796  HDRS
797    ../sqrtf.h
798  DEPENDS
799    libc.utils.FPUtil.fputil
800  COMPILE_OPTIONS
801    -O2
802)
803
804add_entrypoint_object(
805  sqrtl
806  SRCS
807    sqrtl.cpp
808  HDRS
809    ../sqrtl.h
810  DEPENDS
811    libc.utils.FPUtil.fputil
812  COMPILE_OPTIONS
813    -O2
814)
815
816add_entrypoint_object(
817  remquof
818  SRCS
819    remquof.cpp
820  HDRS
821    ../remquof.h
822  DEPENDS
823    libc.utils.FPUtil.fputil
824  COMPILE_OPTIONS
825    -O2
826)
827
828add_entrypoint_object(
829  remquo
830  SRCS
831    remquo.cpp
832  HDRS
833    ../remquo.h
834  DEPENDS
835    libc.utils.FPUtil.fputil
836  COMPILE_OPTIONS
837    -O2
838)
839
840add_entrypoint_object(
841  remquol
842  SRCS
843    remquol.cpp
844  HDRS
845    ../remquol.h
846  DEPENDS
847    libc.utils.FPUtil.fputil
848  COMPILE_OPTIONS
849    -O2
850)
851
852add_entrypoint_object(
853  remainderf
854  SRCS
855    remainderf.cpp
856  HDRS
857    ../remainderf.h
858  DEPENDS
859    libc.utils.FPUtil.fputil
860  COMPILE_OPTIONS
861    -O2
862)
863
864add_entrypoint_object(
865  remainder
866  SRCS
867    remainder.cpp
868  HDRS
869    ../remainder.h
870  DEPENDS
871    libc.utils.FPUtil.fputil
872  COMPILE_OPTIONS
873    -O2
874)
875
876add_entrypoint_object(
877  remainderl
878  SRCS
879    remainderl.cpp
880  HDRS
881    ../remainderl.h
882  DEPENDS
883    libc.utils.FPUtil.fputil
884  COMPILE_OPTIONS
885    -O2
886)
887
888add_entrypoint_object(
889  hypotf
890  SRCS
891    hypotf.cpp
892  HDRS
893    ../hypotf.h
894  DEPENDS
895    libc.utils.FPUtil.fputil
896  COMPILE_OPTIONS
897    -O2
898)
899
900add_entrypoint_object(
901  fdim
902  SRCS
903    fdim.cpp
904  HDRS
905    ../fdim.h
906  DEPENDS
907    libc.utils.FPUtil.fputil
908  COMPILE_OPTIONS
909    -O2
910)
911
912add_entrypoint_object(
913  fdimf
914  SRCS
915    fdimf.cpp
916  HDRS
917    ../fdimf.h
918  DEPENDS
919    libc.utils.FPUtil.fputil
920  COMPILE_OPTIONS
921    -O2
922)
923
924add_entrypoint_object(
925  fdiml
926  SRCS
927    fdiml.cpp
928  HDRS
929    ../fdiml.h
930  DEPENDS
931    libc.utils.FPUtil.fputil
932  COMPILE_OPTIONS
933    -O2
934)
935
936add_entrypoint_object(
937  hypot
938  SRCS
939    hypot.cpp
940  HDRS
941    ../hypot.h
942  DEPENDS
943    libc.utils.FPUtil.fputil
944  COMPILE_OPTIONS
945    -O2
946)
947
948add_entrypoint_object(
949  nextafter
950  SRCS
951    nextafter.cpp
952  HDRS
953    ../nextafter.h
954  DEPENDS
955    libc.utils.FPUtil.fputil
956  COMPILE_OPTIONS
957    -O2
958)
959
960add_entrypoint_object(
961  nextafterf
962  SRCS
963    nextafterf.cpp
964  HDRS
965    ../nextafterf.h
966  DEPENDS
967    libc.utils.FPUtil.fputil
968  COMPILE_OPTIONS
969    -O2
970)
971
972add_entrypoint_object(
973  nextafterl
974  SRCS
975    nextafterl.cpp
976  HDRS
977    ../nextafterl.h
978  DEPENDS
979    libc.utils.FPUtil.fputil
980  COMPILE_OPTIONS
981    -O2
982)
983