This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Usage: gcc -DCPU_CLOCK_FREQUENCY=1008000000 arm64-neon-throughput-test.S && time ./a.out | |
| */ | |
| .cpu cortex-a53+fp+simd | |
| .file "1.c" | |
| .text | |
| .align 2 | |
| .global main | |
| .type main, %function | |
| main: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Usage: gcc -DCPU_CLOCK_FREQUENCY=1008000000 test.S && time ./a.out | |
| */ | |
| .cpu cortex-a53+fp+simd | |
| .file "1.c" | |
| .text | |
| .align 2 | |
| .global main | |
| .type main, %function | |
| main: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| U-Boot SPL 2016.01-00352-ge77e0e4-dirty (Jan 24 2016 - 10:26:33) | |
| DRAM:DRAM driver version: V1.0 | |
| DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3) | |
| DRAM clk = 672 MHz | |
| DRAM zq value: 3b3bbb | |
| DRAM single rank full DQ OK | |
| DRAM size = 1024 MB | |
| DRAM init ok | |
| 1024 MiB | |
| Trying to boot from MMC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <6>[ 0.000000] Initializing cgroup subsys cpuset | |
| <6>[ 0.000000] Initializing cgroup subsys cpu | |
| <6>[ 0.000000] Initializing cgroup subsys cpuacct | |
| <5>[ 0.000000] Linux version 3.10.93 (jenkins@pallas.corp.jide.com) (gcc version 4.9.3 20150113 (prerelease) (Linaro GCC 4.9-2015.01-3) ) #1 SMP PREEMPT Thu Jan 14 13:49:55 CST 2016 | |
| <4>[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4 | |
| <6>[ 0.000000] Machine: sun50iw1p1 | |
| <6>[ 0.000000] bootconsole [earlycon0] enabled | |
| <6>[ 0.000000] cma: CMA: reserved 300 MiB at ad400000 | |
| <7>[ 0.000000] On node 0 totalpages: 520192 | |
| <7>[ 0.000000] DMA zone: 7112 pages used for memmap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() | |
| { | |
| volatile double a = 1.0; | |
| volatile double b = 1.0; | |
| for (;;) { | |
| a /= b; | |
| } | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/util.c b/util.c | |
| index 52e88b4..ec7c6ff 100644 | |
| --- a/util.c | |
| +++ b/util.c | |
| @@ -59,26 +59,30 @@ void aligned_block_copy_backwards(int64_t * __restrict dst, | |
| int size) | |
| { | |
| int64_t t1, t2, t3, t4; | |
| - src += size / 8 - 1; | |
| - dst += size / 8 - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Usage: gcc -DCPU_CLOCK_FREQUENCY=1200000000 test-arm-neon-mix.S && time ./a.out | |
| * gcc -DCPU_CLOCK_FREQUENCY=1200000000 -DINTERLEAVED test-arm-neon-mix.S && time ./a.out | |
| * | |
| * | -DINTERLEAVED | separate ARM and NEON code chunks | |
| * ------------+---------------+----------------------------------- | |
| * Cortex-A15 | ~6.7 cycles | ~5.7 cycles (!) | |
| * ------------+---------------+----------------------------------- | |
| * Cortex-A8 | 7.0 cycles | 7.0 cycles | |
| * ------------+---------------+----------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat coin_jam.cr | |
| n = 16 | |
| j = 50 | |
| max_bound = (2**n - 1).to_u64 | |
| min_bound = (max_bound - 2**(n-1) + 2).to_u64 | |
| puts "Case #1:" | |
| cur = min_bound |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| data = [] | |
| File.open(ARGV[0]).each_byte {|b| data.push(b) } | |
| (0..(data.size - 1)).step(4) {|i| | |
| x0 = data[i + 0] | |
| x1 = data[i + 1] | |
| x2 = data[i + 2] | |
| x3 = data[i + 3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sunxi-tools 9e7f3a3a93290654c6a30a157484c46d37686d20 | |
| $ arm-linux-gnueabihf-gcc -v | |
| Using built-in specs. | |
| COLLECT_GCC=/usr/x86_64-pc-linux-gnu/arm-linux-gnueabihf/gcc-bin/4.7.4/arm-linux-gnueabihf-gcc | |
| COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-linux-gnueabihf/4.7.4/lto-wrapper | |
| Target: arm-linux-gnueabihf | |
| Configured with: /var/tmp/portage/cross-arm-linux-gnueabihf/gcc-4.7.4/work/gcc-4.7.4/configure --host=x86_64-pc-linux-gnu --target=arm-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/arm-linux-gnueabihf/gcc-bin/4.7.4 --includedir=/usr/lib/gcc/arm-linux-gnueabihf/4.7.4/include --datadir=/usr/share/gcc-data/arm-linux-gnueabihf/4.7.4 --mandir=/usr/share/gcc-data/arm-linux-gnueabihf/4.7.4/man --infodir=/usr/share/gcc-data/arm-linux-gnueabihf/4.7.4/info --with-gxx-include-dir=/usr/lib/gcc/arm-linux-gnueabihf/4.7.4/include/g++-v4 --with-python-dir=/share/gcc-data/arm-linux-gnueabihf/4.7.4/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror - |