diff --git a/src/cpu/avx2.cpp b/src/cpu/avx2.cpp index 46f285f..d48cb37 100644 --- a/src/cpu/avx2.cpp +++ b/src/cpu/avx2.cpp @@ -4,11 +4,11 @@ using namespace std; -void CPU::avx2::avx_sum(int *a, int *b) +void cpu::avx2::avx_sum(int *a, int *b) { } -void CPU::avx2::printAVX2Num(int *num) +void cpu::avx2::printAVX2Num(int *num) { for (int i = 0; i < avx2::AVX2_INT_SIZE; i++) { diff --git a/src/cpu/avx2.hpp b/src/cpu/avx2.hpp index cf63283..33ad2dc 100644 --- a/src/cpu/avx2.hpp +++ b/src/cpu/avx2.hpp @@ -1,5 +1,5 @@ #pragma once -namespace CPU +namespace cpu { class avx2 { diff --git a/src/cpu/demos/sse.cpp b/src/cpu/demos/sse.cpp index 2a2f722..d5c3199 100644 --- a/src/cpu/demos/sse.cpp +++ b/src/cpu/demos/sse.cpp @@ -4,7 +4,7 @@ #include "../naive.hpp" #include -using namespace CPU; +using namespace cpu; using namespace std; long int gettime(){ diff --git a/src/cpu/naive.cpp b/src/cpu/naive.cpp index a9e1d3e..8730b38 100644 --- a/src/cpu/naive.cpp +++ b/src/cpu/naive.cpp @@ -2,7 +2,7 @@ #include "types.hpp" #include -void CPU::Naive::sum_128_long(UInt *a,UInt *b){ +void cpu::Naive::sum_128_long(UInt *a,UInt *b){ ULong a1 = ((ULong)a[0] << 32) | a[1]; ULong a2 = ((ULong)a[2] << 32) | a[3]; ULong b1 = ((ULong)b[0] << 32) | b[1]; diff --git a/src/cpu/naive.hpp b/src/cpu/naive.hpp index 69f1d65..f5999af 100644 --- a/src/cpu/naive.hpp +++ b/src/cpu/naive.hpp @@ -1,7 +1,7 @@ #pragma once #include "types.hpp" -namespace CPU +namespace cpu { class Naive { diff --git a/src/cpu/sse.cpp b/src/cpu/sse.cpp index 96673d3..522622d 100644 --- a/src/cpu/sse.cpp +++ b/src/cpu/sse.cpp @@ -2,7 +2,7 @@ #include //X86 Assembly to add two 128 bit numbers in the form of packed integers 32bit -void CPU::SSE::paddw(UInt *a,UInt *b) { +void cpu::SSE::paddw(UInt *a,UInt *b) { asm( "movdqa %0, %%xmm1\n" "paddw %1, %%xmm1\n" @@ -14,7 +14,7 @@ void CPU::SSE::paddw(UInt *a,UInt *b) { //X86 Assembly to add two 128 bit numbers in the form of packed long 64bit -void CPU::SSE::paddd(ULong *a,ULong *b) { +void cpu::SSE::paddd(ULong *a,ULong *b) { asm( "movdqa %0, %%xmm1\n" "paddd %1, %%xmm1\n" diff --git a/src/cpu/sse.hpp b/src/cpu/sse.hpp index 8e218d7..237d9d4 100644 --- a/src/cpu/sse.hpp +++ b/src/cpu/sse.hpp @@ -3,7 +3,7 @@ #include "types.hpp" -namespace CPU +namespace cpu { class SSE { diff --git a/src/cpu/utils.hpp b/src/cpu/utils.hpp index a595320..4c9590a 100644 --- a/src/cpu/utils.hpp +++ b/src/cpu/utils.hpp @@ -5,7 +5,7 @@ using namespace std; -namespace CPU +namespace cpu { class Utils {