1function(fft PROJECT) 2####################################### 3# 4# CFFT F32 5# 6 7 8if (CONFIGTABLE AND CFFT_F32_16) 9 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16) 10if (HELIUM OR MVEF) 11 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16) 12else() 13 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_16) 14endif() 15endif() 16 17if (CONFIGTABLE AND CFFT_F32_32) 18 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32) 19if (HELIUM OR MVEF) 20 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32) 21else() 22 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_32) 23endif() 24endif() 25 26if (CONFIGTABLE AND CFFT_F32_64) 27 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64) 28if (HELIUM OR MVEF) 29 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64) 30else() 31 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_64) 32endif() 33endif() 34 35if (CONFIGTABLE AND CFFT_F32_128) 36 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128) 37if (HELIUM OR MVEF) 38 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128) 39else() 40 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_128) 41endif() 42endif() 43 44if (CONFIGTABLE AND CFFT_F32_256) 45 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256) 46if (HELIUM OR MVEF) 47 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256) 48else() 49 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_256) 50endif() 51endif() 52 53if (CONFIGTABLE AND CFFT_F32_512) 54 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512) 55if (HELIUM OR MVEF) 56 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512) 57else() 58 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_512) 59endif() 60endif() 61 62if (CONFIGTABLE AND CFFT_F32_1024) 63 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024) 64if (HELIUM OR MVEF) 65 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024) 66else() 67 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_1024) 68endif() 69endif() 70 71if (CONFIGTABLE AND CFFT_F32_2048) 72 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048) 73if (HELIUM OR MVEF) 74 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048) 75else() 76 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_2048) 77endif() 78endif() 79 80if (CONFIGTABLE AND CFFT_F32_4096) 81 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 82if (HELIUM OR MVEF) 83 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096) 84else() 85 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_4096) 86endif() 87endif() 88 89 90####################################### 91# 92# CFFT F64 93# 94 95 96if (CONFIGTABLE AND CFFT_F64_16) 97 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_16) 98 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_16) 99endif() 100 101if (CONFIGTABLE AND CFFT_F64_32) 102 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_32) 103 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_64) 104endif() 105 106if (CONFIGTABLE AND CFFT_F64_64) 107 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_64) 108 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_64) 109endif() 110 111if (CONFIGTABLE AND CFFT_F64_128) 112 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_128) 113 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_128) 114endif() 115 116if (CONFIGTABLE AND CFFT_F64_256) 117 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_256) 118 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_256) 119endif() 120 121if (CONFIGTABLE AND CFFT_F64_512) 122 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_512) 123 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_512) 124endif() 125 126if (CONFIGTABLE AND CFFT_F64_1024) 127 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_1024) 128 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_1024) 129endif() 130 131if (CONFIGTABLE AND CFFT_F64_2048) 132 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_2048) 133 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_2048) 134endif() 135 136if (CONFIGTABLE AND CFFT_F64_4096) 137 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_4096) 138 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_4096) 139endif() 140 141####################################### 142# 143# CFFT Q31 144# 145 146if (CONFIGTABLE AND CFFT_Q31_16) 147 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_16) 148 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16) 149endif() 150 151if (CONFIGTABLE AND CFFT_Q31_32) 152 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_32) 153 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32) 154endif() 155 156if (CONFIGTABLE AND CFFT_Q31_64) 157 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_64) 158 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64) 159endif() 160 161if (CONFIGTABLE AND CFFT_Q31_128) 162 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_128) 163 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128) 164endif() 165 166if (CONFIGTABLE AND CFFT_Q31_256) 167 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_256) 168 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256) 169endif() 170 171if (CONFIGTABLE AND CFFT_Q31_512) 172 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_512) 173 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512) 174endif() 175 176if (CONFIGTABLE AND CFFT_Q31_1024) 177 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_1024) 178 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024) 179endif() 180 181if (CONFIGTABLE AND CFFT_Q31_2048) 182 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_2048) 183 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048) 184endif() 185 186if (CONFIGTABLE AND CFFT_Q31_4096) 187 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 188 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096) 189endif() 190 191####################################### 192# 193# CFFT Q15 194# 195 196if (CONFIGTABLE AND CFFT_Q15_16) 197 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_16) 198 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16) 199endif() 200 201if (CONFIGTABLE AND CFFT_Q15_32) 202 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_32) 203 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32) 204endif() 205 206if (CONFIGTABLE AND CFFT_Q15_64) 207 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_64) 208 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64) 209endif() 210 211if (CONFIGTABLE AND CFFT_Q15_128) 212 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_128) 213 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128) 214endif() 215 216if (CONFIGTABLE AND CFFT_Q15_256) 217 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_256) 218 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256) 219endif() 220 221if (CONFIGTABLE AND CFFT_Q15_512) 222 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_512) 223 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512) 224endif() 225 226if (CONFIGTABLE AND CFFT_Q15_1024) 227 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_1024) 228 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024) 229endif() 230 231if (CONFIGTABLE AND CFFT_Q15_2048) 232 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_2048) 233 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048) 234endif() 235 236if (CONFIGTABLE AND CFFT_Q15_4096) 237 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 238 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096) 239endif() 240 241####################################### 242# 243# RFFT FAST F64 244# 245 246if (CONFIGTABLE AND RFFT_FAST_F64_32) 247 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_16) 248 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_16) 249 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_32) 250 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_16) 251endif() 252 253if (CONFIGTABLE AND RFFT_FAST_F64_64) 254 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_32) 255 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_32) 256 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_64) 257 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_32) 258endif() 259 260if (CONFIGTABLE AND RFFT_FAST_F64_128) 261 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_64) 262 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_64) 263 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_128) 264 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_64) 265endif() 266 267if (CONFIGTABLE AND RFFT_FAST_F64_256) 268 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_128) 269 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_128) 270 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_256) 271 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_128) 272endif() 273 274if (CONFIGTABLE AND RFFT_FAST_F64_512) 275 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_256) 276 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_256) 277 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_512) 278 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_256) 279endif() 280 281if (CONFIGTABLE AND RFFT_FAST_F64_1024) 282 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_512) 283 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_512) 284 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_1024) 285 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_512) 286endif() 287 288if (CONFIGTABLE AND RFFT_FAST_F64_2048) 289 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_1024) 290 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_1024) 291 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_2048) 292 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_1024) 293endif() 294 295if (CONFIGTABLE AND RFFT_FAST_F64_4096) 296 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_2048) 297 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT64_2048) 298 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F64_4096) 299 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F64_2048) 300endif() 301 302####################################### 303# 304# RFFT FAST F32 305# 306 307if (CONFIGTABLE AND RFFT_FAST_F32_32) 308 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16) 309 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_16) 310 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_32) 311 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16) 312endif() 313 314if (CONFIGTABLE AND RFFT_FAST_F32_64) 315 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32) 316 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_32) 317 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_64) 318 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32) 319endif() 320 321if (CONFIGTABLE AND RFFT_FAST_F32_128) 322 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64) 323 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_64) 324 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_128) 325 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64) 326endif() 327 328if (CONFIGTABLE AND RFFT_FAST_F32_256) 329 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128) 330 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_128) 331 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_256) 332 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128) 333endif() 334 335if (CONFIGTABLE AND RFFT_FAST_F32_512) 336 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256) 337 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_256) 338 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_512) 339 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256) 340endif() 341 342if (CONFIGTABLE AND RFFT_FAST_F32_1024) 343 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512) 344 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_512) 345 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_1024) 346 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512) 347endif() 348 349if (CONFIGTABLE AND RFFT_FAST_F32_2048) 350 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024) 351 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_1024) 352 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_2048) 353 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024) 354endif() 355 356if (CONFIGTABLE AND RFFT_FAST_F32_4096) 357 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048) 358 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_2048) 359 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_4096) 360 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048) 361endif() 362 363####################################### 364# 365# RFFT F32 366# 367 368if (CONFIGTABLE AND RFFT_F32_32) 369 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 370 # For cfft_radix4_init 371 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 372 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 373endif() 374 375if (CONFIGTABLE AND RFFT_F32_64) 376 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 377 # For cfft_radix4_init 378 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 379 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 380endif() 381 382if (CONFIGTABLE AND RFFT_F32_128) 383 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 384 # For cfft_radix4_init 385 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 386 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 387endif() 388 389if (CONFIGTABLE AND RFFT_F32_256) 390 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 391 # For cfft_radix4_init 392 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 393 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 394endif() 395 396if (CONFIGTABLE AND RFFT_F32_512) 397 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 398 # For cfft_radix4_init 399 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 400 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 401endif() 402 403if (CONFIGTABLE AND RFFT_F32_1024) 404 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 405 # For cfft_radix4_init 406 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 407 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 408endif() 409 410if (CONFIGTABLE AND RFFT_F32_2048) 411 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 412 # For cfft_radix4_init 413 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 414 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 415endif() 416 417if (CONFIGTABLE AND RFFT_F32_4096) 418 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 419 # For cfft_radix4_init 420 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 421 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 422endif() 423 424if (CONFIGTABLE AND RFFT_F32_8192) 425 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 426 # For cfft_radix4_init 427 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 428 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 429endif() 430 431####################################### 432# 433# RFFT Q31 434# 435 436if (CONFIGTABLE AND RFFT_Q31_32) 437 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 438 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_16) 439 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16) 440endif() 441 442if (CONFIGTABLE AND RFFT_Q31_64) 443 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 444 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_32) 445 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32) 446endif() 447 448if (CONFIGTABLE AND RFFT_Q31_128) 449 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 450 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_64) 451 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64) 452endif() 453 454if (CONFIGTABLE AND RFFT_Q31_256) 455 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 456 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_128) 457 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128) 458endif() 459 460if (CONFIGTABLE AND RFFT_Q31_512) 461 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 462 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_256) 463 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256) 464endif() 465 466if (CONFIGTABLE AND RFFT_Q31_1024) 467 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 468 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_512) 469 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512) 470endif() 471 472if (CONFIGTABLE AND RFFT_Q31_2048) 473 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 474 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_1024) 475 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024) 476endif() 477 478if (CONFIGTABLE AND RFFT_Q31_4096) 479 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 480 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_2048) 481 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048) 482endif() 483 484if (CONFIGTABLE AND RFFT_Q31_8192) 485 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 486 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 487 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096) 488endif() 489 490####################################### 491# 492# RFFT FAST Q15 493# 494 495if (CONFIGTABLE AND RFFT_Q15_32) 496 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 497 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_16) 498 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16) 499endif() 500 501if (CONFIGTABLE AND RFFT_Q15_64) 502 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 503 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_32) 504 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32) 505endif() 506 507if (CONFIGTABLE AND RFFT_Q15_128) 508 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 509 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_64) 510 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64) 511endif() 512 513if (CONFIGTABLE AND RFFT_Q15_256) 514 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 515 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_128) 516 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128) 517endif() 518 519if (CONFIGTABLE AND RFFT_Q15_512) 520 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 521 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_256) 522 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256) 523endif() 524 525if (CONFIGTABLE AND RFFT_Q15_1024) 526 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 527 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_512) 528 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512) 529endif() 530 531if (CONFIGTABLE AND RFFT_Q15_2048) 532 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 533 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_1024) 534 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024) 535endif() 536 537if (CONFIGTABLE AND RFFT_Q15_4096) 538 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 539 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_2048) 540 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048) 541endif() 542 543if (CONFIGTABLE AND RFFT_Q15_8192) 544 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 545 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 546 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096) 547endif() 548 549####################################### 550# 551# DCT4 F32 552# 553 554if (CONFIGTABLE AND DCT4_F32_128) 555 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_128) 556 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 557 558 # For cfft_radix4_init 559 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 560 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 561endif() 562 563if (CONFIGTABLE AND DCT4_F32_512) 564 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_512) 565 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 566 567 # For cfft_radix4_init 568 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 569 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 570endif() 571 572if (CONFIGTABLE AND DCT4_F32_2048) 573 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_2048) 574 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 575 576 # For cfft_radix4_init 577 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 578 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 579endif() 580 581if (CONFIGTABLE AND DCT4_F32_8192) 582 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_8192) 583 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32) 584 585 # For cfft_radix4_init 586 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 587 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096) 588endif() 589 590####################################### 591# 592# DCT4 Q31 593# 594 595if (CONFIGTABLE AND DCT4_Q31_128) 596 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_128) 597 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 598 599 # For cfft_radix4_init 600 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 601 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 602endif() 603 604if (CONFIGTABLE AND DCT4_Q31_512) 605 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_512) 606 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 607 608 # For cfft_radix4_init 609 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 610 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 611endif() 612 613if (CONFIGTABLE AND DCT4_Q31_2048) 614 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_2048) 615 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 616 617 # For cfft_radix4_init 618 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 619 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 620endif() 621 622if (CONFIGTABLE AND DCT4_Q31_8192) 623 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_8192) 624 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31) 625 626 # For cfft_radix4_init 627 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 628 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096) 629endif() 630 631####################################### 632# 633# DCT4 Q15 634# 635 636if (CONFIGTABLE AND DCT4_Q15_128) 637 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_128) 638 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 639 640 # For cfft_radix4_init 641 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 642 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 643endif() 644 645if (CONFIGTABLE AND DCT4_Q15_512) 646 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_512) 647 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 648 649 # For cfft_radix4_init 650 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 651 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 652endif() 653 654if (CONFIGTABLE AND DCT4_Q15_2048) 655 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_2048) 656 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 657 658 # For cfft_radix4_init 659 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 660 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 661endif() 662 663if (CONFIGTABLE AND DCT4_Q15_8192) 664 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_8192) 665 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15) 666 667 # For cfft_radix4_init 668 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024) 669 target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096) 670endif() 671 672endfunction()