1 2list(APPEND LIBCNTPR_FLOAT_SOURCE 3 float/isnan.c 4) 5 6list(APPEND CRT_FLOAT_SOURCE 7 ${LIBCNTPR_FLOAT_SOURCE} 8 float/chgsign.c 9 float/_controlfp_s.c 10 float/copysign.c 11 float/fpclass.c 12 float/fpecode.c 13 float/nafter.c 14 float/scalb.c 15) 16 17if(ARCH STREQUAL "i386") 18 list(APPEND CRT_FLOAT_SOURCE 19 float/i386/clearfp.c 20 float/i386/cntrlfp.c 21 float/i386/fpreset.c 22 float/i386/logb.c 23 float/i386/statfp.c 24 ) 25elseif(ARCH STREQUAL "amd64") 26 list(APPEND CRT_FLOAT_SOURCE 27 float/amd64/_clearfp.c 28 float/amd64/_control87.c 29 float/amd64/_controlfp.c 30 float/amd64/_fpreset.c 31 float/amd64/_statusfp.c 32 float/amd64/machfpcw.c 33 ) 34 list(APPEND CRT_FLOAT_ASM_SOURCE 35 float/amd64/getsetfpcw.S 36 ) 37elseif(ARCH STREQUAL "arm") 38 list(APPEND CRT_FLOAT_SOURCE 39 float/arm/_clearfp.c 40 float/arm/_controlfp.c 41 float/arm/_fpreset.c 42 float/arm/_statusfp.c 43 ) 44 list(APPEND LIBCNTPR_FLOAT_SOURCE 45 float/arm/_controlfp.c 46 ) 47 list(APPEND CRT_FLOAT_ASM_SOURCE 48 float/arm/__getfp.s 49 float/arm/__setfp.s 50 ) 51 list(APPEND LIBCNTPR_FLOAT_ASM_SOURCE 52 float/arm/__getfp.s 53 float/arm/__setfp.s 54 ) 55endif() 56