ifa: Add omxIntDataElementUnsafe
authorjpritikin <jpritikin@df83fd30-4cca-4c36-ab9d-e8b5583ccbd1>
Fri, 28 Jun 2013 09:33:01 +0000 (09:33 +0000)
committerjpritikin <jpritikin@df83fd30-4cca-4c36-ab9d-e8b5583ccbd1>
Fri, 28 Jun 2013 09:33:01 +0000 (09:33 +0000)
commite96bbf5d83cb0698d6362e922c51c5026a405556
tree8080333bc510e1da1626626e151e9f357fd27911
parente4f4ad8634f227ae78b1efe2c1268e9e9745084a
ifa: Add omxIntDataElementUnsafe

oprofile BEFORE:
samples  %        image name               symbol name
17312103 47.6219  OpenMx.so                ba81Likelihood
7633079  20.9970  OpenMx.so                omxIntDataElementUnsafe.isra.4
5953733  16.3774  libm-2.15.so             __ieee754_exp_avx
1800314   4.9523  libm-2.15.so             __ieee754_log_avx
806406    2.2182  libgomp.so.1.0.0         /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
418160    1.1503  OpenMx.so                omxDataNumIdenticalRows
396189    1.0898  OpenMx.so                expectedUpdate

oprofile AFTER:
samples  %        image name               symbol name
14023314 49.1831  OpenMx.so                ba81Likelihood
5317049  18.6482  libm-2.15.so             __ieee754_exp_avx
4384016  15.3758  OpenMx.so                omxIntDataElementUnsafe.isra.4
1578506   5.5362  libm-2.15.so             __ieee754_log_avx
714537    2.5061  libgomp.so.1.0.0         /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
407958    1.4308  OpenMx.so                omxDataNumIdenticalRows
299933    1.0519  OpenMx.so                expectedUpdate
288202    1.0108  libm-2.15.so             exp

The only way to do better is to copy the memory in omxNewDataFromMxData
to a contiguous memory block so we can avoid some multiplies for
indexing. Probably not worth it.

git-svn-id: http://openmx.psyc.virginia.edu/svn/trunk@2625 df83fd30-4cca-4c36-ab9d-e8b5583ccbd1
src/omxData.h
src/omxExpectationBA81.c