Skip to content

Commit

Permalink
Explicitly mention copyright notice in each source file
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Jun 24, 2019
1 parent 1624c2a commit 695b7eb
Show file tree
Hide file tree
Showing 41 changed files with 328 additions and 106 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors.
Copyright (C) 2018 Ievgen Korokyi.
Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers.
Copyright (C) 2016 Shinya Yagyu.

Expand Down
8 changes: 8 additions & 0 deletions jni/iri-pearldiver-exlib.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "iri-pearldiver-exlib.h"
#include <jni.h>
#include <stdint.h>
Expand Down
10 changes: 6 additions & 4 deletions src/clcontext.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "clcontext.h"
Expand Down
9 changes: 6 additions & 3 deletions src/clcontext.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef CLCONTEXT_H_
Expand Down
8 changes: 8 additions & 0 deletions src/common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "common.h"

double diff_in_second(struct timespec t1, struct timespec t2)
Expand Down
11 changes: 10 additions & 1 deletion src/common.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef COMMON_H_
#define COMMON_H_

Expand All @@ -12,7 +20,8 @@

double diff_in_second(struct timespec t1, struct timespec t2);

static inline void ddprintf(const char *format, ...) {
static inline void ddprintf(const char *format, ...)
{
#if defined(ENABLE_DEBUG)
va_list ap;
va_start(ap, format);
Expand Down
8 changes: 5 additions & 3 deletions src/compat-ccurl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include <pthread.h>
Expand Down
8 changes: 8 additions & 0 deletions src/constants.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

char TryteAlphabet[] = "9ABCDEFGHIJKLMNOPQRSTUVWXYZ";

const int indices[] = {
Expand Down
8 changes: 8 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef CONSTANTS_H_
#define CONSTANTS_H_

Expand Down
8 changes: 5 additions & 3 deletions src/cpu-utils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include <errno.h>
Expand Down
8 changes: 5 additions & 3 deletions src/curl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "curl.h"
Expand Down
8 changes: 8 additions & 0 deletions src/curl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef CURL_H_
#define CURL_H_

Expand Down
8 changes: 5 additions & 3 deletions src/dcurl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "dcurl.h"
Expand Down
8 changes: 8 additions & 0 deletions src/dcurl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef DCURL_H_
#define DCURL_H_

Expand Down
10 changes: 9 additions & 1 deletion src/implcontext.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "implcontext.h"
#include <stdio.h>

Expand All @@ -16,7 +24,7 @@ bool initializeImplContext(ImplContext *impl_ctx)
bool res = impl_ctx->initialize(impl_ctx);
if (res) {
ddprintf(MSG_PREFIX "Implementation %s is initialized successfully\n",
impl_ctx->description);
impl_ctx->description);
}
return res;
}
Expand Down
8 changes: 8 additions & 0 deletions src/implcontext.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef IMPL_CTX_H_
#define IMPL_CTX_H_

Expand Down
8 changes: 5 additions & 3 deletions src/list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

/* Linux-like double-linked list implementation */
Expand Down
22 changes: 12 additions & 10 deletions src/pow_avx.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (C) 2016 Shinya Yagyu.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2016 Shinya Yagyu
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "pow_avx.h"
Expand All @@ -29,8 +31,8 @@ static void transform256(__m256i *lmid, __m256i *hmid)

alpha = lfrom[t1];
beta = hfrom[t1];
delta = _mm256_and_si256( alpha, _mm256_xor_si256(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
delta = _mm256_and_si256(alpha, _mm256_xor_si256(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
lto[j] = _mm256_andnot_si256(delta, one); /* ~delta */
hto[j] = _mm256_or_si256(_mm256_xor_si256(alpha, hfrom[t2]),
delta); /* (alpha ^ hfrom[t2]) | delta */
Expand All @@ -46,8 +48,8 @@ static void transform256(__m256i *lmid, __m256i *hmid)
t2 = indices[j + 1];
alpha = lfrom[t1];
beta = hfrom[t1];
delta = _mm256_and_si256( alpha, _mm256_xor_si256(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
delta = _mm256_and_si256(alpha, _mm256_xor_si256(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
lto[j] = _mm256_andnot_si256(delta, one); /* ~delta */
hto[j] = _mm256_or_si256(_mm256_xor_si256(alpha, hfrom[t2]),
delta); /* (alpha ^ hfrom[t2]) | delta */
Expand Down Expand Up @@ -226,7 +228,7 @@ static void transform256(__m256d *lmid, __m256d *hmid)
alpha = lfrom[t1];
beta = hfrom[t1];
delta = _mm256_and_pd(alpha, _mm256_xor_pd(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
/* alpha & (lfrom[t2] ^ beta) */
lto[j] = _mm256_andnot_pd(delta, one); /* ~delta */
hto[j] = _mm256_or_pd(_mm256_xor_pd(alpha, hfrom[t2]),
delta); /* (alpha ^ hfrom[t2]) | delta */
Expand All @@ -244,7 +246,7 @@ static void transform256(__m256d *lmid, __m256d *hmid)
alpha = lfrom[t1];
beta = hfrom[t1];
delta = _mm256_and_pd(alpha, _mm256_xor_pd(lfrom[t2], beta));
/* alpha & (lfrom[t2] ^ beta) */
/* alpha & (lfrom[t2] ^ beta) */
lto[j] = _mm256_andnot_pd(delta, one); /* ~delta */
hto[j] = _mm256_or_pd(_mm256_xor_pd(alpha, hfrom[t2]),
delta); /* (alpha ^ hfrom[t2]) | delta */
Expand Down
10 changes: 6 additions & 4 deletions src/pow_c.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (C) 2016 Shinya Yagyu.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2016 Shinya Yagyu
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "pow_c.h"
Expand Down
8 changes: 8 additions & 0 deletions src/pow_c.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef POW_C_H_
#define POW_C_H_

Expand Down
10 changes: 6 additions & 4 deletions src/pow_cl.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "pow_cl.h"
Expand Down
8 changes: 8 additions & 0 deletions src/pow_cl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef POW_CL_H_
#define POW_CL_H_

Expand Down
10 changes: 6 additions & 4 deletions src/pow_fpga_accel.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (c) 2018 Ievgen Korokyi.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* Copyright (c) 2018 Ievgen Korokyi
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "pow_fpga_accel.h"
Expand Down
8 changes: 8 additions & 0 deletions src/pow_fpga_accel.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#ifndef POW_FPGA_ACCEL_H_
#define POW_FPGA_ACCEL_H_

Expand Down
8 changes: 5 additions & 3 deletions src/pow_kernel.cl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2017 IOTA AS, IOTA Foundation and Developers
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#define HASH_TRITS_LENGTH 243
Expand Down
10 changes: 6 additions & 4 deletions src/pow_sse.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
* Copyright (C) 2018 dcurl Developers.
* Copyright (C) 2016 Shinya Yagyu.
* Use of this source code is governed by MIT license that can be
* found in the LICENSE file.
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* Copyright (C) 2016 Shinya Yagyu
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/

#include "pow_sse.h"
Expand Down
Loading

0 comments on commit 695b7eb

Please sign in to comment.