BUG/ENH: blasdot: make *dot calls 64-bit safe
BUG/ENH: blasdot: make *dot calls 64-bit safe

BLAS uses int for all its size types, so the size is going to be
silently truncated on platforms where sizeof npy_intp > sizeof int,
i.e. on modern 64-bit platforms. In this case, we do a dot product
in reasonably-sized chunks and add the result ourselves.

On platforms where sizeof(int) == sizeof(npy_intp), i.e. typical
32-bit platforms, it's up to the compiler to optimize the loop away.

Also tried to make the code more readable, replaced int by npy_intp
in a few places and removed useless register declarations (modern
compilers ignore those).

utke1/numpy,pbrod/numpy,ahaldane/numpy,Anwesh43/numpy,seberg/numpy,GrimDerp/numpy,WarrenWeckesser/numpy,MSeifert04/numpy,hainm/numpy,pbrod/numpy,ChanderG/numpy,sinhrks/numpy,mathdd/numpy,MSeifert04/numpy,andsor/numpy,MichaelAquilina/numpy,solarjoe/numpy,Anwesh43/numpy,BabeNovelty/numpy,ESSS/numpy,Yusa95/numpy,dch312/numpy,ahaldane/numpy,ekalosak/numpy,AustereCuriosity/numpy,pbrod/numpy,ddasilva/numpy,madphysicist/numpy,jankoslavic/numpy,SunghanKim/numpy,MichaelAquilina/numpy,empeeu/numpy,rmcgibbo/numpy,GaZ3ll3/numpy,rhythmsosad/numpy,mingwpy/numpy,sonnyhu/numpy,larsmans/numpy,grlee77/numpy,seberg/numpy,Linkid/numpy,SunghanKim/numpy,CMartelLML/numpy,WillieMaddox/numpy,dwillmer/numpy,MichaelAquilina/numpy,pizzathief/numpy,joferkington/numpy,nbeaver/numpy,WillieMaddox/numpy,ahaldane/numpy,tdsmith/numpy,moreati/numpy,nguyentu1602/numpy,shoyer/numpy,mortada/numpy,tynn/numpy,immerrr/numpy,rherault-insa/numpy,jakirkham/numpy,leifdenby/numpy,skymanaditya1/numpy,jonathanunderwood/numpy,pizzathief/numpy,seberg/numpy,Srisai85/numpy,endolith/numpy,cowlicks/numpy,tdsmith/numpy,kiwifb/numpy,ssanderson/numpy,naritta/numpy,WillieMaddox/numpy,ChanderG/numpy,trankmichael/numpy,githubmlai/numpy,mortada/numpy,ajdawson/numpy,sonnyhu/numpy,rhythmsosad/numpy,leifdenby/numpy,gmcastil/numpy,GaZ3ll3/numpy,ViralLeadership/numpy,rmcgibbo/numpy,sinhrks/numpy,solarjoe/numpy,argriffing/numpy,bertrand-l/numpy,cowlicks/numpy,Dapid/numpy,ahaldane/numpy,Srisai85/numpy,anntzer/numpy,mhvk/numpy,WarrenWeckesser/numpy,rudimeier/numpy,githubmlai/numpy,jorisvandenbossche/numpy,pyparallel/numpy,Dapid/numpy,Eric89GXL/numpy,empeeu/numpy,brandon-rhodes/numpy,abalkin/numpy,utke1/numpy,mindw/numpy,ahaldane/numpy,WarrenWeckesser/numpy,nbeaver/numpy,hainm/numpy,ChristopherHogan/numpy,pdebuyl/numpy,dwillmer/numpy,nguyentu1602/numpy,BMJHayward/numpy,groutr/numpy,drasmuss/numpy,groutr/numpy,embray/numpy,pdebuyl/numpy,maniteja123/numpy,CMartelLML/numpy,mingwpy/numpy,argriffing/numpy,utke1/numpy,yiakwy/numpy,stuarteberg/numpy,brandon-rhodes/numpy,bmorris3/numpy,larsmans/numpy,yiakwy/numpy,BMJHayward/numpy,ekalosak/numpy,mattip/numpy,bringingheavendown/numpy,dato-code/numpy,Eric89GXL/numpy,rmcgibbo/numpy,ChristopherHogan/numpy,BMJHayward/numpy,KaelChen/numpy,jonathanunderwood/numpy,SiccarPoint/numpy,jschueller/numpy,numpy/numpy,Yusa95/numpy,chiffa/numpy,rgommers/numpy,numpy/numpy,jschueller/numpy,githubmlai/numpy,trankmichael/numpy,shoyer/numpy,mindw/numpy,KaelChen/numpy,skwbc/numpy,CMartelLML/numpy,stuarteberg/numpy,stuarteberg/numpy,GrimDerp/numpy,bringingheavendown/numpy,behzadnouri/numpy,pdebuyl/numpy,dch312/numpy,njase/numpy,NextThought/pypy-numpy,mathdd/numpy,chatcannon/numpy,Linkid/numpy,embray/numpy,SunghanKim/numpy,mindw/numpy,Linkid/numpy,has2k1/numpy,endolith/numpy,rajathkumarmp/numpy,Eric89GXL/numpy,rherault-insa/numpy,Yusa95/numpy,dch312/numpy,grlee77/numpy,chatcannon/numpy,pizzathief/numpy,naritta/numpy,ddasilva/numpy,kiwifb/numpy,MaPePeR/numpy,MaPePeR/numpy,ChanderG/numpy,abalkin/numpy,GaZ3ll3/numpy,musically-ut/numpy,felipebetancur/numpy,rajathkumarmp/numpy,simongibbons/numpy,mortada/numpy,mattip/numpy,sigma-random/numpy,madphysicist/numpy,larsmans/numpy,mwiebe/numpy,nguyentu1602/numpy,shoyer/numpy,charris/numpy,bertrand-l/numpy,Anwesh43/numpy,skymanaditya1/numpy,ESSS/numpy,jankoslavic/numpy,mingwpy/numpy,GrimDerp/numpy,grlee77/numpy,rhythmsosad/numpy,yiakwy/numpy,mwiebe/numpy,skymanaditya1/numpy,njase/numpy,Dapid/numpy,mattip/numpy,naritta/numpy,moreati/numpy,kirillzhuravlev/numpy,AustereCuriosity/numpy,behzadnouri/numpy,andsor/numpy,jschueller/numpy,shoyer/numpy,BabeNovelty/numpy,embray/numpy,jorisvandenbossche/numpy,ContinuumIO/numpy,Srisai85/numpy,trankmichael/numpy,has2k1/numpy,charris/numpy,cjermain/numpy,dimasad/numpy,bmorris3/numpy,jakirkham/numpy,yiakwy/numpy,cjermain/numpy,ChanderG/numpy,mathdd/numpy,ESSS/numpy,nguyentu1602/numpy,SiccarPoint/numpy,dato-code/numpy,nbeaver/numpy,tacaswell/numpy,jankoslavic/numpy,Srisai85/numpy,mortada/numpy,jakirkham/numpy,chatcannon/numpy,madphysicist/numpy,skymanaditya1/numpy,SiccarPoint/numpy,pizzathief/numpy,stuarteberg/numpy,embray/numpy,pyparallel/numpy,pizzathief/numpy,felipebetancur/numpy,jorisvandenbossche/numpy,rajathkumarmp/numpy,rhythmsosad/numpy,brandon-rhodes/numpy,jorisvandenbossche/numpy,shoyer/numpy,immerrr/numpy,anntzer/numpy,drasmuss/numpy,kirillzhuravlev/numpy,moreati/numpy,mathdd/numpy,joferkington/numpy,WarrenWeckesser/numpy,jakirkham/numpy,mattip/numpy,pyparallel/numpy,mhvk/numpy,njase/numpy,rgommers/numpy,rgommers/numpy,cowlicks/numpy,bertrand-l/numpy,sigma-random/numpy,CMartelLML/numpy,ajdawson/numpy,joferkington/numpy,rudimeier/numpy,jschueller/numpy,MSeifert04/numpy,ajdawson/numpy,hainm/numpy,mwiebe/numpy,madphysicist/numpy,jorisvandenbossche/numpy,ContinuumIO/numpy,gfyoung/numpy,Eric89GXL/numpy,tynn/numpy,tdsmith/numpy,hainm/numpy,jankoslavic/numpy,dimasad/numpy,simongibbons/numpy,madphysicist/numpy,b-carter/numpy,naritta/numpy,rherault-insa/numpy,AustereCuriosity/numpy,GrimDerp/numpy,MSeifert04/numpy,pbrod/numpy,NextThought/pypy-numpy,dimasad/numpy,bmorris3/numpy,MSeifert04/numpy,dimasad/numpy,numpy/numpy,argriffing/numpy,endolith/numpy,SiccarPoint/numpy,tacaswell/numpy,ChristopherHogan/numpy,kirillzhuravlev/numpy,skwbc/numpy,larsmans/numpy,sinhrks/numpy,dch312/numpy,Anwesh43/numpy,groutr/numpy,sigma-random/numpy,ViralLeadership/numpy,kiwifb/numpy,solarjoe/numpy,andsor/numpy,rudimeier/numpy,behzadnouri/numpy,jakirkham/numpy,MichaelAquilina/numpy,cjermain/numpy,joferkington/numpy,charris/numpy,grlee77/numpy,musically-ut/numpy,bringingheavendown/numpy,chiffa/numpy,embray/numpy,numpy/numpy,leifdenby/numpy,rajathkumarmp/numpy,simongibbons/numpy,Linkid/numpy,brandon-rhodes/numpy,sinhrks/numpy,drasmuss/numpy,ekalosak/numpy,mindw/numpy,ViralLeadership/numpy,gfyoung/numpy,abalkin/numpy,MaPePeR/numpy,KaelChen/numpy,sonnyhu/numpy,ddasilva/numpy,dwillmer/numpy,ssanderson/numpy,dato-code/numpy,KaelChen/numpy,mhvk/numpy,mingwpy/numpy,trankmichael/numpy,andsor/numpy,maniteja123/numpy,gmcastil/numpy,simongibbons/numpy,rudimeier/numpy,endolith/numpy,NextThought/pypy-numpy,has2k1/numpy,MaPePeR/numpy,ekalosak/numpy,NextThought/pypy-numpy,ajdawson/numpy,cowlicks/numpy,BMJHayward/numpy,BabeNovelty/numpy,SunghanKim/numpy,immerrr/numpy,dato-code/numpy,tdsmith/numpy,b-carter/numpy,pdebuyl/numpy,gmcastil/numpy,ContinuumIO/numpy,rmcgibbo/numpy,GaZ3ll3/numpy,rgommers/numpy,felipebetancur/numpy,musically-ut/numpy,githubmlai/numpy,mhvk/numpy,simongibbons/numpy,WarrenWeckesser/numpy,felipebetancur/numpy,mhvk/numpy,anntzer/numpy,b-carter/numpy,musically-ut/numpy,Yusa95/numpy,bmorris3/numpy,charris/numpy,sonnyhu/numpy,maniteja123/numpy,empeeu/numpy,empeeu/numpy,skwbc/numpy,tacaswell/numpy,pbrod/numpy,tynn/numpy,BabeNovelty/numpy,ssanderson/numpy,sigma-random/numpy,kirillzhuravlev/numpy,dwillmer/numpy,cjermain/numpy,seberg/numpy,immerrr/numpy,jonathanunderwood/numpy,grlee77/numpy,chiffa/numpy,ChristopherHogan/numpy,anntzer/numpy,has2k1/numpy,gfyoung/numpy