diff options
-rw-r--r-- | Checksums | 128 | ||||
-rw-r--r-- | GNUmakefile | 31 |
2 files changed, 151 insertions, 8 deletions
diff --git a/Checksums b/Checksums new file mode 100644 index 0000000..8d6b3d7 --- /dev/null +++ b/Checksums @@ -0,0 +1,128 @@ +0285f24fc600c767ff89a49fb6689c1c4bdb62cbde95e91d23330197d75734f6 tomsfastmath/.gitignore +618796d71a2153419d870e90af91fb5ba28cc12afaa07039bfbdefe4c8f66c8b tomsfastmath/.travis.yml +48ea37a1a0b2367bdebb597a32b46b62c234cba457ee74ac3e608447281b6a77 tomsfastmath/LICENSE +a1509ab1872b4437e6bec5caadf9b49d1afbcadaefc04e9cb563b99e5c651d78 tomsfastmath/README.md +8e8cea39fbccdb6bff82785715381fd028a4ca5fa4e22fde8c2e5de431ba3c4d tomsfastmath/SPONSORS +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 tomsfastmath/TODO +93f5f02aabb35939dfb792384dbf9fe341498b870fdef735b7fc4c7c9a1f8dd5 tomsfastmath/changes.txt +acebcd4aadce12f05c75d7061d390f228e661ede20c0f2a2ac5484c534df07b1 tomsfastmath/demo/rsa.c +44ac2379d54e091d3e9fdcfb70fd3c945e58ef334dc444d5ef979934d8b6da4e tomsfastmath/demo/stest.c +4e789dc88f2c8ad6af4cbf50411d7dc9b66d1cc72cb07af9bebe4c36a3e06067 tomsfastmath/demo/test.c +6da06b4304fb6c8696b1001b149ec9d8bac2bb14af015d6d750b7db27f9d5cf7 tomsfastmath/demo/timing.c +56316c90a839172550df9d1c6b5bae0e7ab0c09b9b5e00caf13467821fbacce6 tomsfastmath/doc/tfm.pdf +f7e3f42c3f4c31d668ac6ebb439c486a75b29f931a260cee5f3081c37c3d0fc1 tomsfastmath/filter.pl +45242401490fb6f7e0dc5ee6b10ef062954af751830f18fdcfe7756b0a7c02f3 tomsfastmath/gen.pl +38b824c89b1f422efeff9dd2641f97aa37863cc33a062421b4f9474b77ab3548 tomsfastmath/genlist.sh +eacf096a076411aec7b2b3fe7f48779f406eef2b2482d15554b08f0112aeeecb tomsfastmath/makefile +47160c1a22f052e2876486bba8ca91546559b29d92f5130aa8683a9d1182c2fe tomsfastmath/makefile.shared +8d1a8abd7d101733b598133e327aa6682ee81153b6023e285189b5f99dc82ec0 tomsfastmath/mess.sh +2ad7468f3974b3f49f34af58cb371c524ba2df648d29eb2da8cb81f7c7d99441 tomsfastmath/mtest/makefile +103c74ede36861e9d8bada60d5f3868fb2a6459d2c1b7d59c77050d887a98b88 tomsfastmath/mtest/mtest.c +50e0b0bf167e299c56f3056c0e3ce32ac9dbe40f1a63d210561c4ec13cf9b0ba tomsfastmath/parsenames.pl +11acec7c547b5d2cbc8ce47fe522e96d0fedc584af409580aaaebdfc2b7b1c50 tomsfastmath/pre_gen/mpi.c +a49d28c5b597cb29445b0f57fd11f6f52aedc6cd13942366edfee66f359f3546 tomsfastmath/random_txt_files/amd64.txt +b8ce219372145b3f63232d43fe708ae400ef2a24e03fc4fd1b338da430cd3123 tomsfastmath/random_txt_files/exptmod_timings.txt +3254d567484a108bb8c0f16aff450a8b5b518d95f8a66a9aa2b6250990c74163 tomsfastmath/random_txt_files/ltm_times.txt +67ad8bce817d3160ec4c5a7212e3533fe9ba29b6f9bf53ce77c2c00a38b7fb81 tomsfastmath/random_txt_files/newsqr.txt +1944e09008aecdc1301403d00fcf488848a1721d7116a252331d74d9c627490a tomsfastmath/random_txt_files/old_sqr_times.txt +ab95d7b2337945f85049b89a9b2a870ef55d1427fc714fd7169f6f14347e4cae tomsfastmath/src/addsub/fp_add.c +2d68fbd59d0a094c42fe0e2fa9614adb31135a06d0f73e76b06e8755d1499032 tomsfastmath/src/addsub/fp_add_d.c +220724746c492749178674fc8c7e28befb80b76d756cffc9df06c496aeb647a6 tomsfastmath/src/addsub/fp_addmod.c +2538d0cc69c608f19d5892ca150e9648a57d73e68454e4bcb4923c1f80e7752d tomsfastmath/src/addsub/fp_cmp.c +35e36a0e6a83c72ceecf5a885307e9b48870213de2b8ace21755af5327e4606e tomsfastmath/src/addsub/fp_cmp_d.c +d91e7790707df4daa46aa6ff52cb6a75d12c020c4cf4883454bd6a1fa0856884 tomsfastmath/src/addsub/fp_cmp_mag.c +a88c0fd138191e6950c72a0673323716e8aa20b2a143ead0272f0f2d91ce30d2 tomsfastmath/src/addsub/fp_sub.c +c880956ce418acea012080e9fbc80de411228a3f8b13e10a7a2f81a889659d18 tomsfastmath/src/addsub/fp_sub_d.c +2cb0d7d3aa741d2c7ff07637329c6c4b9f81910244180779d8e2f12194118f3a tomsfastmath/src/addsub/fp_submod.c +5b8f4422b2cc0ea36cabbb28926370deb7e502702ee60c905f93a8d645ae0d13 tomsfastmath/src/addsub/s_fp_add.c +069aba03446c17509a7c4cc32cfd7d894bd7b4439f33868b686565fc73befd8b tomsfastmath/src/addsub/s_fp_sub.c +47d6cdefeff485b33bc15ac41bcb4fea9add4ee8dfe68eb0e4377b8d9c3e7c69 tomsfastmath/src/bin/fp_radix_size.c +ffd8b7af0a46009b193987191c970c5d4cf623376fffc704b24122bd7ad18455 tomsfastmath/src/bin/fp_read_radix.c +5cfb87b49133f662cdd699d5cee88ccee3d04601a6aaad926f4bae2fed4b2793 tomsfastmath/src/bin/fp_read_signed_bin.c +a00c0d1e2ab205570edf8cfdb4ae72890140fcfd9ebb213c3ce0611940f179e3 tomsfastmath/src/bin/fp_read_unsigned_bin.c +e947d3b0628a1090c3ca7a1e65af825ddd6b377ec25f693182ac109ebfa38b05 tomsfastmath/src/bin/fp_reverse.c +99cef08d7529b6ad23bd0ae92fff85aea410c3a7afceec5e2fd7e8039b39f36a tomsfastmath/src/bin/fp_s_rmap.c +45b3995cc098a9457a5840a41e12984a5a37acbee8f03dbbe560507afe2bcd40 tomsfastmath/src/bin/fp_signed_bin_size.c +833f9c2791546d87899d30a84a0d2feb5edfdbf2d5fd9b20419cc6b316f5d972 tomsfastmath/src/bin/fp_to_signed_bin.c +023b21b16d6d79ef77a60fdb27baf1fbb6b88403ef2f6ca917df6e0e85c4450d tomsfastmath/src/bin/fp_to_unsigned_bin.c +3bd83b83bfbc52c3590cf36c01490a83237f0da70732ddc242ab777c9c61b938 tomsfastmath/src/bin/fp_toradix.c +166099852daa9b9d88480e6f3a93c577f737791d25d91ea002bee938201ab963 tomsfastmath/src/bin/fp_toradix_n.c +407e993860eaea19dafcbf6f2845169555a6c9e872e693f5187339f6f5ee4900 tomsfastmath/src/bin/fp_unsigned_bin_size.c +8784dbf2e09a1c2ddba0632d1a91a651be8b96484ead62df8e8909e17c3fa84f tomsfastmath/src/bit/fp_cnt_lsb.c +c992579ada80f093be108a96139e2ca3cd1aafdd3effbf9454a7ede4b3897be3 tomsfastmath/src/bit/fp_count_bits.c +a31b60cef0c2d0f8984f8a045558810e8ec0fd22cd283fbc7f17a38440cae836 tomsfastmath/src/bit/fp_div_2.c +c02228fba0c752fd560cd305d4ec4fda34c8c13a84f0c60b0ac4faf4e706b262 tomsfastmath/src/bit/fp_div_2d.c +2cdb8e7da52717eb70ad023072af67a6a211a20eb55ca784f1cccc9c55d01ff9 tomsfastmath/src/bit/fp_lshd.c +75fc59482e23a4508b413fc49d97e68a9b9ab1717ddb19681f5fce344821d974 tomsfastmath/src/bit/fp_mod_2d.c +70f7250fd42f55f83f699966640956c874f77b524125681c0490a3393b6b252a tomsfastmath/src/bit/fp_rshd.c +843f4dcb8e52a66407d5b97b98d26c24f961c3661a1926cfca113f05b767b567 tomsfastmath/src/divide/fp_div.c +fb8c12a0e5449b0651fb910c034549a4d1bdb72cd6ccef82c8da2f8b3ce523a7 tomsfastmath/src/divide/fp_div_d.c +2734e18b669e5fa9454e8d8a8d8e22fd99793332fc7cb2f131cec571ac8663d7 tomsfastmath/src/divide/fp_mod.c +883e56395f1dc7d9c802f6be24895edbb87412d6d7744ee72788aed56a051ccd tomsfastmath/src/divide/fp_mod_d.c +6026e968f29a37483bc67bb1f19e3752306183c15d77abe7fc8daa39a2ff00bd tomsfastmath/src/exptmod/fp_2expt.c +1f0e83eeebfb602149ac706bdea81867081b7902989d032331fc125fbfbc6355 tomsfastmath/src/exptmod/fp_exptmod.c +f81906aaa1e4cb7fb95d9bafbdd9f139f3bf2c0bafcc30f165e7f4d2c3b20483 tomsfastmath/src/generators/.gitignore +9995d6dcbe35e5e961ccf2518d8a052aad4ee3288ec50a9bf396cb041d99ec99 tomsfastmath/src/generators/comba_mont_gen.c +def1f31cd39d939f971b36aea5de24579ff2c5a81454b3181f7dd5d5da1ccec4 tomsfastmath/src/generators/comba_mult_gen.c +18ad500937d7304befff16d0be19951f2bbca46974e1220b25c533558a347004 tomsfastmath/src/generators/comba_mult_smallgen.c +4604688e2ee8385853b1948141fc0cca59dada63615ef5055f1d6eb314ba8e47 tomsfastmath/src/generators/comba_sqr_gen.c +7a431cc9502fffd16cac31d0e9f2cba65eb4f8f77aaf945c1fbb46123b3ba705 tomsfastmath/src/generators/comba_sqr_smallgen.c +5270cfd973deaf8316970aff692a01327058c3b0a61f97395d36df831d3cad02 tomsfastmath/src/generators/makefile +2ac3d1704891a0c31f65e4ed2940735d127f14cc7d4e8f4833d4668941d9604e tomsfastmath/src/headers/tfm.h +efb8def3802761c2c0b44411447a0933404bae0f0ce5e132aa3336a4b36bab42 tomsfastmath/src/misc/fp_ident.c +e5fe49e037af79f6c2629a869dffd28a15afd73667531af75eaa936fa26e12c9 tomsfastmath/src/misc/fp_rand.c +f312ab55dc762b56b1e559234a18195ecdc5de5dc3235c72dd714f9f0eb44ccd tomsfastmath/src/misc/fp_set.c +6e2df8a6d9cfcd60e66f4a804ec3138d512fc5fbe0932c1a989b6e7609beb139 tomsfastmath/src/mont/fp_mont_small.i +eea54244196e5f948082e3b2d179a34274ee584be58a6eea396cb2f03bbb5591 tomsfastmath/src/mont/fp_montgomery_calc_normalization.c +36ba07f6c036488020a0ae4842f14f052499ee45420c3261322848aaa037c1c9 tomsfastmath/src/mont/fp_montgomery_reduce.c +d9e0e5ce3d31e6b8ff24b8bd88434db0723f9802b65f09d4db8eca09054a11ab tomsfastmath/src/mont/fp_montgomery_setup.c +b217550ce22599418d5453f0af086d74093649a4211077a8c5c8ab893808939c tomsfastmath/src/mul/fp_mul.c +33c9c3b811ed06281a5e9bab1746bdb6b9b4595890c56945ad063fc54ba5f383 tomsfastmath/src/mul/fp_mul_2.c +e86ab3dda3ad46278290575b2387f30faddd7163d41b77128fffc36db4a85ed4 tomsfastmath/src/mul/fp_mul_2d.c +a1f69a5e71ceb9d3dc20b1f5478c1923ccb7414c9660c702f6e4bcaeb510d212 tomsfastmath/src/mul/fp_mul_comba.c +612b51ad58e2f481ac61c544ce3abf9ee72ae5e55b302f036205c7ac9b48edaf tomsfastmath/src/mul/fp_mul_comba_12.c +efddaaa08e08e47100ed14d8a0a753fa9bc2fad43f00e931faaaec4151c1f1d4 tomsfastmath/src/mul/fp_mul_comba_17.c +f80f91ba989e7e36ed48de447480dbca4d85b35ee24aae17af6f4e0a35a45617 tomsfastmath/src/mul/fp_mul_comba_20.c +ede6062dc54621cb79e8d8750e236e39e132716513cc2aa1c29272d2dc1e62ee tomsfastmath/src/mul/fp_mul_comba_24.c +18aafcd26860acd4b9b34ae0840eb18d322f671cda46b309ba75a7bec6884eda tomsfastmath/src/mul/fp_mul_comba_28.c +e446beab94e7b6a1aec57e029daefd6e3cfae80c442aa33be3f302f10727a880 tomsfastmath/src/mul/fp_mul_comba_3.c +27037ceefbefb2448794fa96156bb232268e50f288e0bfa22e1048c2c56813a3 tomsfastmath/src/mul/fp_mul_comba_32.c +f2e6093b7edda0981d45392ad70452f7c5dd301ccfaf97cbbc881079eeead0c2 tomsfastmath/src/mul/fp_mul_comba_4.c +fb13a6ce8776e315e8b5921fa54797ab130030be7a73764d81ba29d928abde2f tomsfastmath/src/mul/fp_mul_comba_48.c +107418d1bef38403ac8d27802552c369a546a1f77f13937f77776f2656e2b5e2 tomsfastmath/src/mul/fp_mul_comba_6.c +1bbeee03d3d7e2d0452c972e8958ae98ba3adaf2d62d24c8942670dd1dd623d4 tomsfastmath/src/mul/fp_mul_comba_64.c +29c2da0df7a1774fcae79923943cacaa76dfcc98e603fd28ed07401aa6b9871a tomsfastmath/src/mul/fp_mul_comba_7.c +ab62f0c847aeb18212ddd8aea57a29c784f9e6b0ec5b7f2981aee7cae0554309 tomsfastmath/src/mul/fp_mul_comba_8.c +7c366dfb34dabc67045f0ed0e41da0ad6221d8745a287ff84b7f442b192ef119 tomsfastmath/src/mul/fp_mul_comba_9.c +fa300a5601cc10d2f668e41b602ba91575f37f149892cd05bf8e973b6cc09070 tomsfastmath/src/mul/fp_mul_comba_small_set.c +7d744ff56dbda2a0c2e85c1f1ed77d39124f256830547d79d02e8337abb4683a tomsfastmath/src/mul/fp_mul_d.c +0cd27ee635734c48622a6534944f4f5bd243926dc23fa8a540df5b870014bb26 tomsfastmath/src/mul/fp_mulmod.c +723ec3f927bf95d7de7cc150068b3bf978ce5cb597014f23e24d316bdc0f14ba tomsfastmath/src/numtheory/fp_gcd.c +13fff9b1428fa2b794020f711598419290faa055109644fc1fdd2e2a07377bec tomsfastmath/src/numtheory/fp_invmod.c +3b371bb0acb48133c14e42853d5ae78dadc5ee9e0f9285729860064287a5e588 tomsfastmath/src/numtheory/fp_isprime.c +7ebe652e03372f45b550d0339a02087215a59e1a0749dac6e802a6a36dd8159b tomsfastmath/src/numtheory/fp_isprime_ex.c +f88178462b13a5beff264b767c6dc4d5eec6f61dcc8ded3da1bf0e58eee2745f tomsfastmath/src/numtheory/fp_lcm.c +35465b01ec07eaadfa2cc4ea3678c1daf7512dc0b7525d5775e9aff72046d0c0 tomsfastmath/src/numtheory/fp_prime_miller_rabin.c +d2b31bc0793482dfea2c5a15b2cbd6abecf11d88fe72d5dfa14e06036d5a652f tomsfastmath/src/numtheory/fp_prime_random_ex.c +33537f178dec55f1a1549190e04d936a5d0aa180972a996c50ff6a61fcb4f034 tomsfastmath/src/sqr/fp_sqr.c +86f4b2f7a4a45c1a08874f04cbaf9dbf41c256fc50d64c4f6381bd739787e8b2 tomsfastmath/src/sqr/fp_sqr_comba.c +1e04136774cdb153e375e2a8dfd2621aea20bd4db9674206ffa0718b5f0ef188 tomsfastmath/src/sqr/fp_sqr_comba_12.c +68f93157184994d5d3ee5cbb676ae021305471b3a8fe763b712a129f7f4ff706 tomsfastmath/src/sqr/fp_sqr_comba_17.c +c44849a41370c52d781b87881d1a71718611e76d60c2663070ecb65db79c7d75 tomsfastmath/src/sqr/fp_sqr_comba_20.c +3a647f3da1c49cff3b2692fe5849f32cc90926d9a67e8e8a33f50e3084c159e1 tomsfastmath/src/sqr/fp_sqr_comba_24.c +cb6f1072d105b9a0319fff1b4db894ade7844190df54da87cf3ccf08fed6fe2f tomsfastmath/src/sqr/fp_sqr_comba_28.c +9b6c2824a4e7101249a7acae00ad1631354e37cb720d1449141e7bea28e62125 tomsfastmath/src/sqr/fp_sqr_comba_3.c +3639d60aaac2330513595e78fe9727c157c38c09e07b466bc4670bc6fad8aeb5 tomsfastmath/src/sqr/fp_sqr_comba_32.c +9b898051c5a95672a9e12aa613d1656fb5bc3a7afca6b287f51dd449408616f1 tomsfastmath/src/sqr/fp_sqr_comba_4.c +06eb6f131d8af6d4dd7a6480cf18b0fc0474ec9869a9bc749ec10d62b0284878 tomsfastmath/src/sqr/fp_sqr_comba_48.c +804c79d99fb86060a2dd1331275b5b66be17abc6b904bd53a556e29d439adf40 tomsfastmath/src/sqr/fp_sqr_comba_6.c +4e42cd99861dd36ca89cc9d984590e58e1392b955aa948b370fe207b8e94b91a tomsfastmath/src/sqr/fp_sqr_comba_64.c +e0535a93a7eaa78ea6efa9f32fc404c186f9ca08cc812e59233b31d0557f170f tomsfastmath/src/sqr/fp_sqr_comba_7.c +64a22819b0d65cd13d85ff35ec2680da1804911718730bbcd302dc9fc955beb4 tomsfastmath/src/sqr/fp_sqr_comba_8.c +e154421f0f3adf8017c9f004cfbddc95f87fa37a34f81e38a5bf84d3fb66abd5 tomsfastmath/src/sqr/fp_sqr_comba_9.c +1cc51582c61b8204193e19fc87a22b59ea83c8b22a9026d7291724eeff611e31 tomsfastmath/src/sqr/fp_sqr_comba_generic.c +750128e57e329c7ff6806d488cebf46e60a1c172b3df547086de426898304d03 tomsfastmath/src/sqr/fp_sqr_comba_small_set.c +963f1ebf8897e4f3767d381190dc7fb114036916b244dc826d1f19a2970e8b3f tomsfastmath/src/sqr/fp_sqrmod.c +cea72bbbde96ece16cc193ba6f7d4f84e412148debbd35bfae5c898fe64080b4 tomsfastmath/testme.sh +7731cfa20127b9b8f818fbe2c983990183ad74db149e458db9f8b8bce754d86e tomsfastmath/tfm.tex +f848bd2ddd3c592d1669b36f7d6f48611bb7241673243b325679bf8926b50ef8 tomsfastmath/updatemakes.sh diff --git a/GNUmakefile b/GNUmakefile index 35cc7d5..ee0b421 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,14 +1,16 @@ # Download and build libtfm from source with the options we want. -# -# Perhaps we should be using a git subrepository instead of this hack? -# Work that out later. -# See tfm.pdf section 1.3.6 ("Precision configuration") for details on -# how FP_MAX_SIZE works. +# Commit against which we've been testing. Perhaps we should be using +# a git subrepository instead of this hack? + +URL := https://github.com/libtom/tomsfastmath.git +COMMIT := e0fe602802e376a971a84ba300ad0aab17165600 + +# Maximum size of a bignum. See tfm.pdf section 1.3.6 ("Precision +# configuration") for details on how FP_MAX_SIZE works. BITS := 8192 -URL := https://github.com/libtom/tomsfastmath.git REPO := $(notdir $(basename ${URL})) HDR := ${REPO}/src/headers/tfm.h @@ -18,6 +20,8 @@ FLAGS := CFLAGS='-fPIC -Wall -W -Wshadow -Isrc/headers -g3 -DFP_MAX_SIZE="(${BIT TARGETS := $(notdir ${HDR} ${LIB}) +SHA256SUM := $(firstword $(wildcard /usr/local/bin/sha256sum /usr/local/bin/gsha256sum /usr/bin/sha256sum)) + all: ${TARGETS} clean: @@ -28,10 +32,15 @@ distclean: clean rm -rf ${REPO} TAGS ${HDR}: - git clone -q ${URL} + git clone --quiet --no-checkout ${URL} + cd ${REPO}; git checkout --quiet ${COMMIT} ${LIB}: ${HDR} -# sha256sum --check Checksums +ifeq "" "${SHA256SUM}" + @echo "Couldn't find sha256sum, not verifying distribution checksums" +else + ${SHA256SUM} --check Checksums +endif cd ${REPO}; git clean -dxf cd ${REPO}; ${MAKE} ${FLAGS} @@ -49,3 +58,9 @@ tags: TAGS TAGS: ${HDR} find ${REPO} -type f -name '*.[ch]' -print | etags - + +ifneq "" "${SHA256SUM}" +regenerate-checksums: ${HDR} + cd ${REPO}; git clean -dxf + find ${REPO} -name .git -prune -o -type f -print | sort | xargs ${SHA256SUM} >Checksums +endif |