minor optimization

This commit is contained in:
William Ball 2020-07-05 19:35:35 -07:00
parent 30d6dd9027
commit 73cbe25f4f
516 changed files with 26 additions and 808 deletions

View file

@ -1 +0,0 @@
{"rustc_fingerprint":8820382293931632979,"outputs":{"1164083562126845933":["rustc 1.44.1 (c7087fe00 2020-06-17)\nbinary: rustc\ncommit-hash: c7087fe00d2ba919df1d813c040a5d47e43b0fe7\ncommit-date: 2020-06-17\nhost: x86_64-unknown-linux-gnu\nrelease: 1.44.1\nLLVM version: 9.0\n",""],"4476964694761187371":["___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/wball1/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n",""]},"successes":{}}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1,3 +0,0 @@
{"message":"failed to resolve: use of undeclared type or module `primal`","code":{"code":"E0433","explanation":"An undeclared type or module was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type or module `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n"},"level":"error","spans":[{"file_name":"src/main.rs","byte_start":1717,"byte_end":1723,"line_start":69,"line_end":69,"column_start":12,"column_end":18,"is_primary":true,"text":[{"text":" if primal::is_prime(temp) {","highlight_start":12,"highlight_end":18}],"label":"use of undeclared type or module `primal`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0433]\u001b[0m\u001b[0m\u001b[1m: failed to resolve: use of undeclared type or module `primal`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:69:12\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m69\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m if primal::is_prime(temp) {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9muse of undeclared type or module `primal`\u001b[0m\n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error\u001b[0m\n\n"}
{"message":"For more information about this error, try `rustc --explain E0433`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1mFor more information about this error, try `rustc --explain E0433`.\u001b[0m\n"}

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":16069784454168883861,"profile":14996655781355331481,"path":1036222786711178230,"deps":[[17532073805171608632,"primal",false,4480843508244492526]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/append_digit_primes-f5bed6ed222039f8/dep-bin-append_digit_primes-f5bed6ed222039f8"}}],"rustflags":[],"metadata":18079067696405074419}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":8574161726611873773,"profile":9935990280773120926,"path":2231583120935216222,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/autocfg-1448277b90571096/dep-lib-autocfg-1448277b90571096"}}],"rustflags":[],"metadata":13102859075309379048}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":2322925091997197464,"profile":9935990280773120926,"path":9881501164722877471,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/hamming-f7cd00fddb2c0dde/dep-lib-hamming-f7cd00fddb2c0dde"}}],"rustflags":[],"metadata":11435927085409730030}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[\"default\", \"std\"]","target":7800718724727423882,"profile":9935990280773120926,"path":18360201026855538313,"deps":[[74873448883125965,"num_traits",false,5214679006096731788],[13053465359523334410,"build_script_build",false,2720251519998876714]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/num-integer-10062f162ce3dcba/dep-lib-num_integer-10062f162ce3dcba"}}],"rustflags":[],"metadata":58200369117550911}

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"","target":0,"profile":0,"path":0,"deps":[[13053465359523334410,"build_script_build",false,4308177619064313783]],"local":[{"RerunIfChanged":{"output":"debug/build/num-integer-5388b70d3d6e3c6d/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0}

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[\"default\", \"std\"]","target":10088282520713642473,"profile":9935990280773120926,"path":17268280674213731948,"deps":[[9245478811527615946,"autocfg",false,10666881358045532869]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/num-integer-86e8599f0ba8be3b/dep-build-script-build_script_build-86e8599f0ba8be3b"}}],"rustflags":[],"metadata":58200369117550911}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[\"std\"]","target":16894502179009968931,"profile":9935990280773120926,"path":12734757048507417164,"deps":[[74873448883125965,"build_script_build",false,1177636347299814283]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/num-traits-2d7b6f05babe375a/dep-lib-num_traits-2d7b6f05babe375a"}}],"rustflags":[],"metadata":14621636500951049976}

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"","target":0,"profile":0,"path":0,"deps":[[74873448883125965,"build_script_build",false,7876043645613464414]],"local":[{"RerunIfChanged":{"output":"debug/build/num-traits-30608ef2ad545d45/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0}

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[\"std\"]","target":10088282520713642473,"profile":9935990280773120926,"path":8738564288946884329,"deps":[[9245478811527615946,"autocfg",false,10666881358045532869]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/num-traits-91eaf6e1267a55a4/dep-build-script-build_script_build-91eaf6e1267a55a4"}}],"rustflags":[],"metadata":14621636500951049976}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":4513600356512600704,"profile":9935990280773120926,"path":9794512189424769904,"deps":[[2637431931613344447,"primal_check",false,2927607459513826153],[14235317146973303535,"primal_sieve",false,8235806422586020816],[16083193364972783737,"primal_estimate",false,1336457528261984209]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/primal-7f7bbfb91418db8c/dep-lib-primal-7f7bbfb91418db8c"}}],"rustflags":[],"metadata":10541863805242775778}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":4659132901410725190,"profile":9935990280773120926,"path":8929134705354873327,"deps":[[8531466953748503375,"hamming",false,1277698422196251306]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/primal-bit-96677df9de002578/dep-lib-primal_bit-96677df9de002578"}}],"rustflags":[],"metadata":16167354259392498579}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":9822319782654175482,"profile":9935990280773120926,"path":13545799632343095798,"deps":[[13053465359523334410,"num_integer",false,14892837767277708699]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/primal-check-45820c184352cf6a/dep-lib-primal_check-45820c184352cf6a"}}],"rustflags":[],"metadata":7493097427140581252}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":6950886450152894389,"profile":9935990280773120926,"path":14615040360027345179,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/primal-estimate-501c201e57ed9082/dep-lib-primal_estimate-501c201e57ed9082"}}],"rustflags":[],"metadata":8867417447345094579}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":4535063106481711439,"profile":9935990280773120926,"path":3258652851284269613,"deps":[[7853083695984070762,"smallvec",false,16010109303002512792],[16083193364972783737,"primal_estimate",false,1336457528261984209],[16094930107278604660,"primal_bit",false,9349422631584083951]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/primal-sieve-6c2809511c80f371/dep-lib-primal_sieve-6c2809511c80f371"}}],"rustflags":[],"metadata":5969421905829136718}

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1 +0,0 @@
{"rustc":11295616921483704964,"features":"[]","target":11680772787092534394,"profile":9935990280773120926,"path":17915281146219452528,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/smallvec-786a9391403f62be/dep-lib-smallvec-786a9391403f62be"}}],"rustflags":[],"metadata":11511323240339246835}

View file

@ -1 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/append_digit_primes: /home/wball1/math/append_digit_primes/src/main.rs

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1,9 +0,0 @@
; ModuleID = 'probe0.3a1fbbbh-cgu.0'
source_filename = "probe0.3a1fbbbh-cgu.0"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

View file

@ -1,9 +0,0 @@
; ModuleID = 'probe1.3a1fbbbh-cgu.0'
source_filename = "probe1.3a1fbbbh-cgu.0"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

View file

@ -1,2 +0,0 @@
cargo:rustc-cfg=has_i128
cargo:rerun-if-changed=build.rs

View file

@ -1 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/build/num-integer-5388b70d3d6e3c6d/out

View file

@ -1,5 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/build/num-integer-86e8599f0ba8be3b/build_script_build-86e8599f0ba8be3b: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.43/build.rs
/home/wball1/math/append_digit_primes/target/debug/build/num-integer-86e8599f0ba8be3b/build_script_build-86e8599f0ba8be3b.d: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.43/build.rs
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.43/build.rs:

View file

@ -1 +0,0 @@
This file has an mtime of when this was started.

View file

@ -1,9 +0,0 @@
; ModuleID = 'probe0.3a1fbbbh-cgu.0'
source_filename = "probe0.3a1fbbbh-cgu.0"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

View file

@ -1,9 +0,0 @@
; ModuleID = 'probe1.3a1fbbbh-cgu.0'
source_filename = "probe1.3a1fbbbh-cgu.0"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

View file

@ -1,50 +0,0 @@
; ModuleID = 'probe2.3a1fbbbh-cgu.0'
source_filename = "probe2.3a1fbbbh-cgu.0"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; core::f64::<impl f64>::to_int_unchecked
; Function Attrs: inlinehint nonlazybind uwtable
define i32 @"_ZN4core3f6421_$LT$impl$u20$f64$GT$16to_int_unchecked17h35ddf94b83fa670eE"(double %self) unnamed_addr #0 {
start:
; call <f64 as core::convert::num::FloatToInt<i32>>::to_int_unchecked
%0 = call i32 @"_ZN65_$LT$f64$u20$as$u20$core..convert..num..FloatToInt$LT$i32$GT$$GT$16to_int_unchecked17h83890e443cecc86cE"(double %self)
br label %bb1
bb1: ; preds = %start
ret i32 %0
}
; <f64 as core::convert::num::FloatToInt<i32>>::to_int_unchecked
; Function Attrs: inlinehint nonlazybind uwtable
define internal i32 @"_ZN65_$LT$f64$u20$as$u20$core..convert..num..FloatToInt$LT$i32$GT$$GT$16to_int_unchecked17h83890e443cecc86cE"(double %self) unnamed_addr #0 {
start:
%0 = alloca i32, align 4
%1 = fptosi double %self to i32
store i32 %1, i32* %0, align 4
%2 = load i32, i32* %0, align 4
br label %bb1
bb1: ; preds = %start
ret i32 %2
}
; probe2::probe
; Function Attrs: nonlazybind uwtable
define void @_ZN6probe25probe17h22946313ba01cf45E() unnamed_addr #1 {
start:
; call core::f64::<impl f64>::to_int_unchecked
%_1 = call i32 @"_ZN4core3f6421_$LT$impl$u20$f64$GT$16to_int_unchecked17h35ddf94b83fa670eE"(double 1.000000e+00)
br label %bb1
bb1: ; preds = %start
ret void
}
attributes #0 = { inlinehint nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" }
attributes #1 = { nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" }
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

View file

@ -1,3 +0,0 @@
cargo:rustc-cfg=has_i128
cargo:rustc-cfg=has_to_int_unchecked
cargo:rerun-if-changed=build.rs

View file

@ -1 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/build/num-traits-30608ef2ad545d45/out

View file

@ -1,5 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/build/num-traits-91eaf6e1267a55a4/build_script_build-91eaf6e1267a55a4: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.12/build.rs
/home/wball1/math/append_digit_primes/target/debug/build/num-traits-91eaf6e1267a55a4/build_script_build-91eaf6e1267a55a4.d: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.12/build.rs
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.12/build.rs:

View file

@ -1,5 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/deps/append_digit_primes-c25e81652404bf41: src/main.rs
/home/wball1/math/append_digit_primes/target/debug/deps/append_digit_primes-c25e81652404bf41.d: src/main.rs
src/main.rs:

View file

@ -1,5 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/deps/append_digit_primes-f5bed6ed222039f8: src/main.rs
/home/wball1/math/append_digit_primes/target/debug/deps/append_digit_primes-f5bed6ed222039f8.d: src/main.rs
src/main.rs:

View file

@ -1,9 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/deps/autocfg-1448277b90571096.rmeta: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/error.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/version.rs
/home/wball1/math/append_digit_primes/target/debug/deps/libautocfg-1448277b90571096.rlib: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/error.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/version.rs
/home/wball1/math/append_digit_primes/target/debug/deps/autocfg-1448277b90571096.d: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/error.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/version.rs
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/lib.rs:
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/error.rs:
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.0/src/version.rs:

View file

@ -1,9 +0,0 @@
/home/wball1/math/append_digit_primes/target/debug/deps/hamming-f7cd00fddb2c0dde.rmeta: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/weight_.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/distance_.rs
/home/wball1/math/append_digit_primes/target/debug/deps/libhamming-f7cd00fddb2c0dde.rlib: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/weight_.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/distance_.rs
/home/wball1/math/append_digit_primes/target/debug/deps/hamming-f7cd00fddb2c0dde.d: /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/lib.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/weight_.rs /home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/distance_.rs
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/lib.rs:
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/weight_.rs:
/home/wball1/.cargo/registry/src/github.com-1ecc6299db9ec823/hamming-0.1.3/src/distance_.rs:

Some files were not shown because too many files have changed in this diff Show more