• Rémi Denis-Courmont's avatar
    Run-time CPU detection for ARM (meaning NEON) · f25efcaf
    Rémi Denis-Courmont authored
    Unfortunately, we cannot emit NEON opcodes when NEON is not explicitly
    enabled (-mfpu=neon), contrary to MMX & SSE on x86. As a consequence,
    this will not work for inline assembler in a non-optimized plugin,
    namely the deinterlacer.
    
    There is also a(n hopefully theoretical) bug whereby the compiler would
    emit NEON instructions in the descriptor or activation callback of a
    NEON plugin. This could then crash if NEON is not supported, even
    before the NEON run-time check is reached.
    f25efcaf
cpu.c 11.4 KB