Ivan Kalatchev wrote: >>> my gcc is 3.3.4 >>> >>> I changed arith.h as you suggested, and it compiled, but then linker >>> couldn't find rthal_arm_nodiv_ullimd definition, as there is no code >>> for it for __GNUC__ < 4. >> Ok, you need to change the other #ifdef a bit further. > > When I added __GNUC__ >= 4 to both #if __LINUX_ARM_ARCH__ in asm-arm/arith.h, > I again received compiler error for some reason. > Is there way to do what nodiv_ullimd is doing through Linux's do_div ? That's > what I usually use.
It works here, I replaced both #ifdef, and it compiles. do_div is slow, nodiv_ullimd uses no division. -- Gilles Chanteperdrix, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
