2016-02-22 14:44:12 -05: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 07:11:58 -04:00
|
|
|
// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
|
2016-02-22 14:44:12 -05: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 07:11:58 -04:00
|
|
|
#include "const_amd64.h"
|
|
|
|
|
2016-02-22 14:44:12 -05:00
|
|
|
// func mul(dest, a, b *[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 07:11:58 -04:00
|
|
|
TEXT ·mul(SB),0,$16-24
|
2016-02-22 14:44:12 -05:00
|
|
|
MOVQ dest+0(FP), DI
|
|
|
|
MOVQ a+8(FP), SI
|
|
|
|
MOVQ b+16(FP), DX
|
|
|
|
|
|
|
|
MOVQ DX,CX
|
|
|
|
MOVQ 24(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
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 07:11:58 -04:00
|
|
|
MOVQ AX,0(SP)
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 16(CX)
|
|
|
|
MOVQ AX,R8
|
|
|
|
MOVQ DX,R9
|
|
|
|
MOVQ 32(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
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 07:11:58 -04:00
|
|
|
MOVQ AX,8(SP)
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 8(CX)
|
|
|
|
ADDQ AX,R8
|
|
|
|
ADCQ DX,R9
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 0(CX)
|
|
|
|
ADDQ AX,R8
|
|
|
|
ADCQ DX,R9
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 8(CX)
|
|
|
|
MOVQ AX,R10
|
|
|
|
MOVQ DX,R11
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 16(CX)
|
|
|
|
MOVQ AX,R12
|
|
|
|
MOVQ DX,R13
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 24(CX)
|
|
|
|
MOVQ AX,R14
|
|
|
|
MOVQ DX,R15
|
|
|
|
MOVQ 0(SI),AX
|
|
|
|
MULQ 32(CX)
|
|
|
|
MOVQ AX,BX
|
|
|
|
MOVQ DX,BP
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
MULQ 0(CX)
|
|
|
|
ADDQ AX,R10
|
|
|
|
ADCQ DX,R11
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
MULQ 8(CX)
|
|
|
|
ADDQ AX,R12
|
|
|
|
ADCQ DX,R13
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
MULQ 16(CX)
|
|
|
|
ADDQ AX,R14
|
|
|
|
ADCQ DX,R15
|
|
|
|
MOVQ 8(SI),AX
|
|
|
|
MULQ 24(CX)
|
|
|
|
ADDQ AX,BX
|
|
|
|
ADCQ DX,BP
|
|
|
|
MOVQ 8(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
|
|
|
MULQ 32(CX)
|
|
|
|
ADDQ AX,R8
|
|
|
|
ADCQ DX,R9
|
|
|
|
MOVQ 16(SI),AX
|
|
|
|
MULQ 0(CX)
|
|
|
|
ADDQ AX,R12
|
|
|
|
ADCQ DX,R13
|
|
|
|
MOVQ 16(SI),AX
|
|
|
|
MULQ 8(CX)
|
|
|
|
ADDQ AX,R14
|
|
|
|
ADCQ DX,R15
|
|
|
|
MOVQ 16(SI),AX
|
|
|
|
MULQ 16(CX)
|
|
|
|
ADDQ AX,BX
|
|
|
|
ADCQ DX,BP
|
|
|
|
MOVQ 16(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
|
|
|
MULQ 24(CX)
|
|
|
|
ADDQ AX,R8
|
|
|
|
ADCQ DX,R9
|
|
|
|
MOVQ 16(SI),DX
|
|
|
|
IMUL3Q $19,DX,AX
|
|
|
|
MULQ 32(CX)
|
|
|
|
ADDQ AX,R10
|
|
|
|
ADCQ DX,R11
|
|
|
|
MOVQ 24(SI),AX
|
|
|
|
MULQ 0(CX)
|
|
|
|
ADDQ AX,R14
|
|
|
|
ADCQ DX,R15
|
|
|
|
MOVQ 24(SI),AX
|
|
|
|
MULQ 8(CX)
|
|
|
|
ADDQ AX,BX
|
|
|
|
ADCQ DX,BP
|
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 07:11:58 -04:00
|
|
|
MOVQ 0(SP),AX
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 24(CX)
|
|
|
|
ADDQ AX,R10
|
|
|
|
ADCQ DX,R11
|
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 07:11:58 -04:00
|
|
|
MOVQ 0(SP),AX
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 32(CX)
|
|
|
|
ADDQ AX,R12
|
|
|
|
ADCQ DX,R13
|
|
|
|
MOVQ 32(SI),AX
|
|
|
|
MULQ 0(CX)
|
|
|
|
ADDQ AX,BX
|
|
|
|
ADCQ DX,BP
|
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 07:11:58 -04:00
|
|
|
MOVQ 8(SP),AX
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 16(CX)
|
|
|
|
ADDQ AX,R10
|
|
|
|
ADCQ DX,R11
|
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 07:11:58 -04:00
|
|
|
MOVQ 8(SP),AX
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 24(CX)
|
|
|
|
ADDQ AX,R12
|
|
|
|
ADCQ DX,R13
|
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 07:11:58 -04:00
|
|
|
MOVQ 8(SP),AX
|
2016-02-22 14:44:12 -05:00
|
|
|
MULQ 32(CX)
|
|
|
|
ADDQ AX,R14
|
|
|
|
ADCQ DX,R15
|
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 07:11:58 -04:00
|
|
|
MOVQ $REDMASK51,SI
|
2016-02-22 14:44:12 -05:00
|
|
|
SHLQ $13,R9:R8
|
|
|
|
ANDQ SI,R8
|
|
|
|
SHLQ $13,R11:R10
|
|
|
|
ANDQ SI,R10
|
|
|
|
ADDQ R9,R10
|
|
|
|
SHLQ $13,R13:R12
|
|
|
|
ANDQ SI,R12
|
|
|
|
ADDQ R11,R12
|
|
|
|
SHLQ $13,R15:R14
|
|
|
|
ANDQ SI,R14
|
|
|
|
ADDQ R13,R14
|
|
|
|
SHLQ $13,BP:BX
|
|
|
|
ANDQ SI,BX
|
|
|
|
ADDQ R15,BX
|
|
|
|
IMUL3Q $19,BP,DX
|
|
|
|
ADDQ DX,R8
|
|
|
|
MOVQ R8,DX
|
|
|
|
SHRQ $51,DX
|
|
|
|
ADDQ R10,DX
|
|
|
|
MOVQ DX,CX
|
|
|
|
SHRQ $51,DX
|
|
|
|
ANDQ SI,R8
|
|
|
|
ADDQ R12,DX
|
|
|
|
MOVQ DX,R9
|
|
|
|
SHRQ $51,DX
|
|
|
|
ANDQ SI,CX
|
|
|
|
ADDQ R14,DX
|
|
|
|
MOVQ DX,AX
|
|
|
|
SHRQ $51,DX
|
|
|
|
ANDQ SI,R9
|
|
|
|
ADDQ BX,DX
|
|
|
|
MOVQ DX,R10
|
|
|
|
SHRQ $51,DX
|
|
|
|
ANDQ SI,AX
|
|
|
|
IMUL3Q $19,DX,DX
|
|
|
|
ADDQ DX,R8
|
|
|
|
ANDQ SI,R10
|
|
|
|
MOVQ R8,0(DI)
|
|
|
|
MOVQ CX,8(DI)
|
|
|
|
MOVQ R9,16(DI)
|
|
|
|
MOVQ AX,24(DI)
|
|
|
|
MOVQ R10,32(DI)
|
|
|
|
RET
|