2016-02-22 11:44:12 -08:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// This code was translated into a form compatible with 6a from the public
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
|
|
|
// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
|
2016-02-22 11:44:12 -08:00
|
|
|
|
|
|
|
// +build amd64,!gccgo,!appengine
|
|
|
|
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
|
|
|
#include "const_amd64.h"
|
|
|
|
|
2016-02-22 11:44:12 -08:00
|
|
|
// func square(out, in *[5]uint64)
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
|
|
|
TEXT ·square(SB),7,$0-16
|
2016-02-22 11:44:12 -08:00
|
|
|
MOVQ out+0(FP), DI
|
|
|
|
MOVQ in+8(FP), SI
|
|
|
|
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 0(SI)
|
|
|
|
MOVQ AX,CX
|
|
|
|
MOVQ DX,R8
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 8(SI)
|
|
|
|
MOVQ AX,R9
|
|
|
|
MOVQ DX,R10
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 16(SI)
|
|
|
|
MOVQ AX,R11
|
|
|
|
MOVQ DX,R12
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 24(SI)
|
|
|
|
MOVQ AX,R13
|
|
|
|
MOVQ DX,R14
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 32(SI)
|
|
|
|
MOVQ AX,R15
|
|
|
|
MOVQ DX,BX
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
MULQ 8(SI)
|
|
|
|
ADDQ AX,R11
|
|
|
|
ADCQ DX,R12
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 16(SI)
|
|
|
|
ADDQ AX,R13
|
|
|
|
ADCQ DX,R14
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
SHLQ $1,AX
|
|
|
|
MULQ 24(SI)
|
|
|
|
ADDQ AX,R15
|
|
|
|
ADCQ DX,BX
|
|
|
|
MOVQ 8(SI),DX
|
|
|
|
IMUL3Q $38,DX,AX
|
|
|
|
MULQ 32(SI)
|
|
|
|
ADDQ AX,CX
|
|
|
|
ADCQ DX,R8
|
|
|
|
MOVQ 16(SI),AX
|
|
|
|
MULQ 16(SI)
|
|
|
|
ADDQ AX,R15
|
|
|
|
ADCQ DX,BX
|
|
|
|
MOVQ 16(SI),DX
|
|
|
|
IMUL3Q $38,DX,AX
|
|
|
|
MULQ 24(SI)
|
|
|
|
ADDQ AX,CX
|
|
|
|
ADCQ DX,R8
|
|
|
|
MOVQ 16(SI),DX
|
|
|
|
IMUL3Q $38,DX,AX
|
|
|
|
MULQ 32(SI)
|
|
|
|
ADDQ AX,R9
|
|
|
|
ADCQ DX,R10
|
|
|
|
MOVQ 24(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
|
|
|
MULQ 24(SI)
|
|
|
|
ADDQ AX,R9
|
|
|
|
ADCQ DX,R10
|
|
|
|
MOVQ 24(SI),DX
|
|
|
|
IMUL3Q $38,DX,AX
|
|
|
|
MULQ 32(SI)
|
|
|
|
ADDQ AX,R11
|
|
|
|
ADCQ DX,R12
|
|
|
|
MOVQ 32(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
|
|
|
MULQ 32(SI)
|
|
|
|
ADDQ AX,R13
|
|
|
|
ADCQ DX,R14
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
|
|
|
MOVQ $REDMASK51,SI
|
2019-04-25 15:47:01 -04:00
|
|
|
SHLQ $13,CX,R8
|
2016-02-22 11:44:12 -08:00
|
|
|
ANDQ SI,CX
|
2019-04-25 15:47:01 -04:00
|
|
|
SHLQ $13,R9,R10
|
2016-02-22 11:44:12 -08:00
|
|
|
ANDQ SI,R9
|
|
|
|
ADDQ R8,R9
|
2019-04-25 15:47:01 -04:00
|
|
|
SHLQ $13,R11,R12
|
2016-02-22 11:44:12 -08:00
|
|
|
ANDQ SI,R11
|
|
|
|
ADDQ R10,R11
|
2019-04-25 15:47:01 -04:00
|
|
|
SHLQ $13,R13,R14
|
2016-02-22 11:44:12 -08:00
|
|
|
ANDQ SI,R13
|
|
|
|
ADDQ R12,R13
|
2019-04-25 15:47:01 -04:00
|
|
|
SHLQ $13,R15,BX
|
2016-02-22 11:44:12 -08:00
|
|
|
ANDQ SI,R15
|
|
|
|
ADDQ R14,R15
|
|
|
|
IMUL3Q $19,BX,DX
|
|
|
|
ADDQ DX,CX
|
|
|
|
MOVQ CX,DX
|
|
|
|
SHRQ $51,DX
|
|
|
|
ADDQ R9,DX
|
|
|
|
ANDQ SI,CX
|
|
|
|
MOVQ DX,R8
|
|
|
|
SHRQ $51,DX
|
|
|
|
ADDQ R11,DX
|
|
|
|
ANDQ SI,R8
|
|
|
|
MOVQ DX,R9
|
|
|
|
SHRQ $51,DX
|
|
|
|
ADDQ R13,DX
|
|
|
|
ANDQ SI,R9
|
|
|
|
MOVQ DX,AX
|
|
|
|
SHRQ $51,DX
|
|
|
|
ADDQ R15,DX
|
|
|
|
ANDQ SI,AX
|
|
|
|
MOVQ DX,R10
|
|
|
|
SHRQ $51,DX
|
|
|
|
IMUL3Q $19,DX,DX
|
|
|
|
ADDQ DX,CX
|
|
|
|
ANDQ SI,R10
|
|
|
|
MOVQ CX,0(DI)
|
|
|
|
MOVQ R8,8(DI)
|
|
|
|
MOVQ R9,16(DI)
|
|
|
|
MOVQ AX,24(DI)
|
|
|
|
MOVQ R10,32(DI)
|
|
|
|
RET
|