Skip to content

Instantly share code, notes, and snippets.

View RunningLight's full-sized avatar

Kent Reed RunningLight

  • Home is where the heart is
  • Gaithersburg, MD USA
View GitHub Profile
@RunningLight
RunningLight / neon_mathfun_test
Created May 11, 2015 17:52
Running neon_mathfun_test on BBB RevC as suggested by https://github.com/machinekit/machinekit/issues/629
$ gcc -O3 -mfloat-abi=hard -mfpu=neon -march=armv7-a -mtune=cortex-a8 -Wall -W neon_mathfun_test.c -lm -o neon_mathfun_test
neon_mathfun_test.c: In function ‘print4’:
neon_mathfun_test.c:119:10: warning: unused variable ‘p’ [-Wunused-variable]
$ ./neon_mathfun_test
checking sines on [0*Pi, 1*Pi]
max deviation from sinf(x): 1.19209e-07 at 0.263172633899*Pi, max deviation from cephes_sin(x): 0
max deviation from cosf(x): 5.96046e-08 at 0.141602561694*Pi, max deviation from cephes_cos(x): 0
deviation of sin(x)^2+cos(x)^2-1: 1.78814e-07 (ref deviation is 1.78814e-07)
->> precision OK for the sin_ps / cos_ps / sincos_ps <<-
@RunningLight
RunningLight / gist:abda3ca6993fa199b25a
Created May 5, 2015 21:14
apt-installbuilddeps output wheezy-amd64
apt-get install debhelper autoconf automake libboost-python-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libmodbus-dev
libncurses-dev libreadline-dev libusb-1.0-0-dev libxmu-dev libxmu-headers dh-python pkg-config python-tk libxaw7-dev libboo
st-serialization-dev libzmq3-dev liburiparser-dev python-setuptools uuid-dev uuid-runtime libavahi-client-dev libprotobuf-de
v protobuf-compiler python-protobuf libprotoc-dev python-netifaces python-simplejson libtk-img libboost-thread-dev python-py
ftpdlib tcl8.5-dev tk8.5-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
autopoint autotools-dev blt gccxml gettext html2text intltool-debian