You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
6.8 KiB
56 lines
6.8 KiB
3 years ago
|
\hypertarget{rol__op_8hpp_source}{}\doxysection{rol\+\_\+op.\+hpp}
|
||
|
\label{rol__op_8hpp_source}\index{include/obf/transform/rol\_op.hpp@{include/obf/transform/rol\_op.hpp}}
|
||
|
\mbox{\hyperlink{rol__op_8hpp}{Go to the documentation of this file.}}
|
||
|
\begin{DoxyCode}{0}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00001}00001 \textcolor{comment}{// Copyright (c) 2022, \_xeroxz}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00002}00002 \textcolor{comment}{// All rights reserved.}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00003}00003 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00004}00004 \textcolor{comment}{// Redistribution and use in source and binary forms, with or without}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00005}00005 \textcolor{comment}{// modification, are permitted provided that the following conditions are met:}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00006}00006 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00007}00007 \textcolor{comment}{// 1. Redistributions of source code must retain the above copyright notice,}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00008}00008 \textcolor{comment}{// this list of conditions and the following disclaimer.}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00009}00009 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00010}00010 \textcolor{comment}{// 2. Redistributions in binary form must reproduce the above copyright notice,}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00011}00011 \textcolor{comment}{// this list of conditions and the following disclaimer in the documentation}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00012}00012 \textcolor{comment}{// and/or other materials provided with the distribution.}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00013}00013 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00014}00014 \textcolor{comment}{// 3. Neither the name of the copyright holder nor the names of its}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00015}00015 \textcolor{comment}{// contributors may be used to endorse or promote products derived from}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00016}00016 \textcolor{comment}{// this software without specific prior written permission.}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00017}00017 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00018}00018 \textcolor{comment}{// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "{}AS IS"{}}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00019}00019 \textcolor{comment}{// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00020}00020 \textcolor{comment}{// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00021}00021 \textcolor{comment}{// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00022}00022 \textcolor{comment}{// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00023}00023 \textcolor{comment}{// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00024}00024 \textcolor{comment}{// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00025}00025 \textcolor{comment}{// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00026}00026 \textcolor{comment}{// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00027}00027 \textcolor{comment}{// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00028}00028 \textcolor{comment}{// POSSIBILITY OF SUCH DAMAGE.}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00029}00029 \textcolor{comment}{//}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00030}00030 }
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00031}00031 \textcolor{preprocessor}{\#pragma once}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00032}00032 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{operation_8hpp}{obf/transform/operation.hpp}}>}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00033}00033 }
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00034}00034 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespacetheo_1_1obf_1_1transform}{theo::obf::transform}} \{}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00035}\mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t}{00035}} \textcolor{keyword}{class }\mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t}{rol\_op\_t}} : \textcolor{keyword}{public} \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1operation__t}{operation\_t}} \{}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00036}00036 \textcolor{keyword}{explicit} \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t}{rol\_op\_t}}()}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00037}00037 : \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1operation__t_a3876ca1c7904aed54940e1519fc9fdf4}{operation\_t}}(}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00038}00038 [\&](std::size\_t val, std::uint32\_t imm) -\/> std::size\_t \{}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00039}00039 \textcolor{keywordflow}{return} std::rotl(val, (std::uint8\_t)imm);}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00040}00040 \},}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00041}00041 XED\_ICLASS\_ROL) \{\}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00042}00042 }
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00043}00043 \textcolor{keyword}{public}:}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00044}\mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t_ade2c667c209f2a27f03712f6b151594b}{00044}} \textcolor{keyword}{static} \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t}{rol\_op\_t}}* \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t_ade2c667c209f2a27f03712f6b151594b}{get}}() \{}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00045}00045 \textcolor{keyword}{static} \mbox{\hyperlink{classtheo_1_1obf_1_1transform_1_1rol__op__t}{rol\_op\_t}} obj;}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00046}00046 \textcolor{keywordflow}{return} \&obj;}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00047}00047 \}}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00048}00048 \};}
|
||
|
\DoxyCodeLine{\Hypertarget{rol__op_8hpp_source_l00049}00049 \} \textcolor{comment}{// namespace theo::obf::transform}}
|
||
|
|
||
|
\end{DoxyCode}
|