EihiS

September 3, 2015

RPi VFPU : the denormal numbers terminator code

Filed under: Raspberry 3.14, linux — Tags: , , , , , , , , — admin @ 9:19 am
static void runfast(void) {
    uint32_t fpscr;
    __asm__ __volatile__ ("vmrs %0,fpscr" : "=r" (fpscr));
    fpscr |= 0x03000000;
    __asm__ __volatile__ ("vmsr fpscr,%0" : :"ri" (fpscr));
}

Raspberry Pi model B+ , impacts on all the program code at runtime, (and all #included libraries )

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

314159265358979323846264338327950288
419716939937510582097494459230781640
628620899862803482534211706798214808

cat{ } { post_759 } { } 2009-2015 EIhIS Powered by WordPress