diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-22 07:49:01 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-22 07:49:01 +0100 |
| commit | 97cb8e1b8a4e1df3ed65ac5aa684c7babd1771dc (patch) | |
| tree | 2e620bc2ca36b7f7c0c0d9eb606bc68cb04174fb | |
| parent | 804afb1895fa9aa6c45645bb097bf4937e9d851d (diff) | |
chore: small source code tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | dev/examples/cgi/cgi.cc | 2 | ||||
| -rw-r--r-- | dev/lib/simd/simd.hpp | 12 | ||||
| -rw-r--r-- | dev/lib/utility/cgi.hpp (renamed from dev/lib/utility/cgi_writer.hpp) | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/dev/examples/cgi/cgi.cc b/dev/examples/cgi/cgi.cc index 3e08aad..3eef7b2 100644 --- a/dev/examples/cgi/cgi.cc +++ b/dev/examples/cgi/cgi.cc @@ -4,7 +4,7 @@ licensed under the Boost Software License */ -#include <lib/utility/cgi_writer.hpp> +#include <lib/utility/cgi.hpp> static ocl::basic_chunk_string<char> text_sample = R"( <!DOCTYPE html> diff --git a/dev/lib/simd/simd.hpp b/dev/lib/simd/simd.hpp index 22650bb..7a40adc 100644 --- a/dev/lib/simd/simd.hpp +++ b/dev/lib/simd/simd.hpp @@ -18,7 +18,7 @@ namespace ocl::snu::simd class basic_simd_processor { private: - backend_type processor_; + backend_type backend_; enum opcode { @@ -41,21 +41,21 @@ namespace ocl::snu::simd switch (op) { case add: - return processor_.add(lhs, rhs); + return backend_.add(lhs, rhs); case mul: - return processor_.mul(lhs, rhs); + return backend_.mul(lhs, rhs); case div: - return processor_.div(lhs, rhs); + return backend_.div(lhs, rhs); default: break; } - return processor_.is_bad(); + return backend_.is_bad(); } std::basic_string<char> isa() { - return processor_.isa(); + return backend_.isa(); } }; } // namespace ocl::snu::simd diff --git a/dev/lib/utility/cgi_writer.hpp b/dev/lib/utility/cgi.hpp index 7b95b2e..fd00bbf 100644 --- a/dev/lib/utility/cgi_writer.hpp +++ b/dev/lib/utility/cgi.hpp @@ -1,11 +1,11 @@ /* - * File: cgi_writer.hpp + * File: cgi.hpp * Author: Amlal El Mahrouss, * Copyright 2023-2025, Amlal El Mahrouss, Licensed under the Boost Software License. */ -#ifndef _OCL_CGI_WRITER_HPP -#define _OCL_CGI_WRITER_HPP +#ifndef _OCL_CGI_HPP +#define _OCL_CGI_HPP #include <lib/io/print.hpp> #include <lib/core/chunk_string.hpp> @@ -26,7 +26,7 @@ namespace ocl std::basic_stringstream<char_type> ss_out; ss_out << std::format("Content-Type: {}\r\n", mime.str()); - ss_out << std::format("Server: {}\r\n", "OCL-CGI/1.0"); + ss_out << std::format("Server: {}\r\n", "OCL/1.0"); ss_out << std::format("Content-Length: {}\r\n\r\n", ss.str().size()); ss_out << ss.str(); @@ -76,4 +76,4 @@ namespace ocl } // namespace cgi } // namespace ocl -#endif // ifndef _OCL_CGI_WRITER_HPP +#endif // ifndef _OCL_CGI_HPP |
