max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
825
<reponame>didi/Hummer<gh_stars>100-1000 package com.didi.hummer.component.text; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.Paint; import android.graphics.Typeface; import android.os.Build; import android.text.Html; import android.text.Spanned; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.widget.TextView; import android.widget.Toast; import com.didi.hummer.HummerSDK; import com.didi.hummer.annotation.Component; import com.didi.hummer.annotation.JsAttribute; import com.didi.hummer.annotation.JsProperty; import com.didi.hummer.context.HummerContext; import com.didi.hummer.core.engine.JSValue; import com.didi.hummer.render.component.view.HMBase; import com.didi.hummer.render.style.HummerStyleUtils; @Component("Text") public class Text extends HMBase<TextView> { private ColorStateList orgTextColors; private float orgTextSize; private Typeface orgTypeface; private String fontWeight; private String fontStyle; // x轴定位 private int xGravity = 0; // y轴定位 private int yGravity = 0; public Text(HummerContext context, JSValue jsValue, String viewID) { super(context, jsValue, viewID); } @Override protected TextView createViewInstance(Context context) { return new TextView(context); } @Override public void onCreate() { super.onCreate(); orgTextColors = getView().getTextColors(); orgTextSize = getView().getTextSize(); orgTypeface = getView().getTypeface(); getView().setGravity(Gravity.START | Gravity.CENTER_VERTICAL); getView().setEllipsize(TextUtils.TruncateAt.END); // getView().setIncludeFontPadding(false); } private void requestLayout() { getYogaNode().dirty(); getView().requestLayout(); } private void setRowText(CharSequence text) { getView().setText(text); requestLayout(); getNode().setDesc(String.valueOf(text)); } @SuppressWarnings("deprecation") private Spanned fromHtml(String html) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return Html.fromHtml(html, Html.FROM_HTML_MODE_LEGACY); } else { return Html.fromHtml(html); } } @JsProperty("text") private String text; public void setText(String text) { setRowText(text); } @JsProperty("richText") private Object richText; public void setRichText(Object richText) { if (richText instanceof String) { return; } RichTextHelper.generateRichText(this, richText, this::setRowText); } @Deprecated @JsProperty("formattedText") private String formattedText; public void setFormattedText(String formattedText) { setRowText(fromHtml(formattedText)); } @JsProperty("textCopyEnable") private boolean textCopyEnable; public void setTextCopyEnable(boolean textCopyEnable) { if (textCopyEnable) { getView().setOnLongClickListener(v -> { ClipboardManager clipboardManager = (ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE); ClipData clipData = ClipData.newPlainText("copyText", getView().getText()); clipboardManager.setPrimaryClip(clipData); Toast toast = Toast.makeText(getContext(), null, Toast.LENGTH_SHORT); toast.setText("复制成功"); toast.setGravity(Gravity.CENTER, 0, 0); toast.show(); return false; }); } } @JsAttribute("color") public void setColor(int color) { getView().setTextColor(color); } @JsAttribute("fontFamily") public void setFontFamily(String fontFamily) { if (TextUtils.isEmpty(fontFamily)) { return; } String[] fontArray = fontFamily.split(","); if (fontArray.length == 0) { return; } String fontsAssetsPath = HummerSDK.getFontsAssetsPath(((HummerContext) getContext()).getNamespace()); int style = Typeface.NORMAL; if (getView().getTypeface() != null) { style = getView().getTypeface().getStyle(); } for (String font : fontArray) { Typeface typeface = FontManager.getInstance().getTypeface(font.trim(), fontsAssetsPath, style, getContext().getAssets()); if (typeface != null) { getView().setTypeface(typeface); requestLayout(); break; } } } @JsAttribute("fontSize") public void setFontSize(float fontSize) { getView().setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize); requestLayout(); } @JsAttribute("fontWeight") public void setFontWeight(String fontWeight) { if (TextUtils.isEmpty(fontWeight)) { return; } this.fontWeight = fontWeight.toLowerCase(); processTextTypeface(this.fontWeight, this.fontStyle); requestLayout(); } @JsAttribute("fontStyle") public void setFontStyle(String fontStyle) { if (TextUtils.isEmpty(fontStyle)) { return; } this.fontStyle = fontStyle.toLowerCase(); processTextTypeface(this.fontWeight, this.fontStyle); requestLayout(); } private void processTextTypeface(String fontWeight, String fontStyle) { if ("bold".equals(fontWeight) && "italic".equals(fontStyle)) { getView().setTypeface(getView().getTypeface(), Typeface.BOLD_ITALIC); } else if ("bold".equals(fontWeight)) { getView().setTypeface(getView().getTypeface(), Typeface.BOLD); } else if ("italic".equals(fontStyle)) { getView().setTypeface(getView().getTypeface(), Typeface.ITALIC); } else { // normal or other getView().setTypeface(null, Typeface.NORMAL); } } @JsAttribute("textAlign") public void setTextAlign(String textAlign) { if (TextUtils.isEmpty(textAlign)) { return; } switch (textAlign.toLowerCase()) { case "center": getView().setGravity(Gravity.CENTER); xGravity = Gravity.CENTER; break; case "left": default: getView().setGravity(Gravity.START | Gravity.CENTER_VERTICAL); xGravity = Gravity.START | Gravity.CENTER_VERTICAL; break; case "right": getView().setGravity(Gravity.END | Gravity.CENTER_VERTICAL); xGravity = Gravity.END | Gravity.CENTER_VERTICAL; break; } if (yGravity != 0) { getView().setGravity(xGravity | yGravity); } } @JsAttribute("textVerticalAlign") public void setTextVerticalAlign(String textVerticalAlign) { if (TextUtils.isEmpty(textVerticalAlign)) { return; } switch (textVerticalAlign.toLowerCase()) { case "center": default: getView().setGravity(Gravity.CENTER_VERTICAL); yGravity = Gravity.CENTER_VERTICAL; break; case "top": getView().setGravity(Gravity.TOP); yGravity = Gravity.TOP; break; case "bottom": getView().setGravity(Gravity.BOTTOM); yGravity = Gravity.BOTTOM; break; } if (xGravity != 0) { getView().setGravity(xGravity | yGravity); } } @JsAttribute("textDecoration") public void setTextDecoration(String textDecoration) { if (TextUtils.isEmpty(textDecoration)) { return; } switch (textDecoration.toLowerCase()) { case "underline": getView().getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG); break; case "line-through": getView().getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG); break; default: getView().getPaint().setFlags(0); break; } } @JsAttribute("textOverflow") public void setTextOverflow(String overflow) { if (TextUtils.isEmpty(overflow)) { return; } switch (overflow.toLowerCase()) { case "clip": getView().setEllipsize(null); break; case "ellipsis": default: getView().setEllipsize(TextUtils.TruncateAt.END); break; } } @JsAttribute("textLineClamp") public void setTextLineClamp(int lines) { getView().setSingleLine(lines == 1); getView().setMaxLines(lines > 0 ? lines : Integer.MAX_VALUE); requestLayout(); } @JsAttribute("letterSpacing") public void setLetterSpacing(float letterSpacing) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getView().setLetterSpacing(letterSpacing); requestLayout(); } } @JsAttribute("lineSpacingMulti") public void setLineSpacingMulti(float lineSpacingMulti) { getView().setLineSpacing(0, lineSpacingMulti); requestLayout(); } @Override public void resetStyle() { super.resetStyle(); getView().setTextColor(orgTextColors); getView().setTextSize(TypedValue.COMPLEX_UNIT_PX, orgTextSize); getView().setTypeface(orgTypeface); setTextAlign("left"); setTextDecoration("none"); setTextOverflow("ellipsis"); setTextLineClamp(Integer.MAX_VALUE); setLetterSpacing(0); setLetterSpacing(1); } @Override public boolean setStyle(String key, Object value) { switch (key) { case HummerStyleUtils.Hummer.COLOR: setColor((int) value); break; case HummerStyleUtils.Hummer.FONT_FAMILY: setFontFamily(String.valueOf(value)); break; case HummerStyleUtils.Hummer.FONT_SIZE: setFontSize((float) value); break; case HummerStyleUtils.Hummer.FONT_WEIGHT: setFontWeight(String.valueOf(value)); break; case HummerStyleUtils.Hummer.FONT_STYLE: setFontStyle(String.valueOf(value)); break; case HummerStyleUtils.Hummer.TEXT_ALIGN: setTextAlign(String.valueOf(value)); break; case HummerStyleUtils.Hummer.TEXT_DECORATION: setTextDecoration(String.valueOf(value)); break; case HummerStyleUtils.Hummer.TEXT_OVERFLOW: setTextOverflow(String.valueOf(value)); break; case HummerStyleUtils.Hummer.TEXT_LINE_CLAMP: setTextLineClamp((int) (float) value); break; case HummerStyleUtils.Hummer.LETTER_SPACING: setLetterSpacing((float) value); break; case HummerStyleUtils.Hummer.LINE_SPACING_MULTI: setLineSpacingMulti((float) value); break; case HummerStyleUtils.Hummer.TEXT_VERTICAL_ALIGN: setTextVerticalAlign(String.valueOf(value)); default: return false; } return true; } }
5,474
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-58pg-75f2-3jxj", "modified": "2021-12-04T00:01:15Z", "published": "2021-12-03T00:00:28Z", "aliases": [ "CVE-2021-23258" ], "details": "Authenticated users with Administrator or Developer roles may execute OS commands by SPEL Expression in Spring beans. SPEL Expression does not have security restrictions, which will cause attackers to execute arbitrary commands remotely (RCE).", "severity": [ ], "affected": [ ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23258" }, { "type": "WEB", "url": "https://docs.craftercms.org/en/3.1/security/advisory.html#cv-2021120101" } ], "database_specific": { "cwe_ids": [ "CWE-913" ], "severity": "HIGH", "github_reviewed": false } }
383
1,100
import java.io.*; import java.net.*; import java.util.Date; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.TextArea; import javafx.scene.control.ScrollPane; import javafx.stage.Stage; public class Exercise31_04Server extends Application { // Text area for displaying contents private TextArea ta = new TextArea(); // Count the thread private int threadNo = 0; @Override // Override the start method in the Application class public void start(Stage primaryStage) { // Create a scene and place it in the stage Scene scene = new Scene(new ScrollPane(ta), 450, 200); primaryStage.setTitle("Exercise31_04Sever"); // Set the stage title primaryStage.setScene(scene); // Place the scene in the stage primaryStage.show(); // Display the stage new Thread(() -> { try { // Create a server socket ServerSocket serverSocket = new ServerSocket(8000); ta.appendText("Exercise31_04Sever started at " + new Date() + '\n'); while (true) { // Listen for a new connection request Socket socket = serverSocket.accept(); Platform.runLater(() -> { // Display the thread number ta.appendText("Starting thread " + threadNo++ + '\n'); // Find the client's ip address InetAddress inetAddress = socket.getInetAddress(); ta.appendText("Client IP /" + inetAddress.getHostAddress() + '\n'); }); // Create and start new thread for the connection new Thread(new HandleAClient(socket)).start(); } } catch(IOException ex) { System.err.println(ex); } }).start(); } // Define the thread class for handlind new connection class HandleAClient implements Runnable { private Socket socket; // A connected socket /** Construct a thread */ public HandleAClient(Socket socket) { this.socket = socket; } /** Run a thread */ public void run() { try { // Create a data output stream DataOutputStream outputToClient = new DataOutputStream( socket.getOutputStream()); // Send a string to the Client outputToClient.writeUTF("You are visitor " + threadNo); } catch (IOException ex) { ex.printStackTrace(); } } } }
780
5,547
/*---------------------------------------------------------------------------- * Tencent is pleased to support the open source community by making TencentOS * available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * If you have downloaded a copy of the TencentOS binary from Tencent, please * note that the TencentOS binary is licensed under the BSD 3-Clause License. * * If you have downloaded a copy of the TencentOS source code from Tencent, * please note that TencentOS source code is licensed under the BSD 3-Clause * License, except for the third-party components listed below which are * subject to different license terms. Your integration of TencentOS into your * own projects may require compliance with the BSD 3-Clause License, as well * as the other licenses applicable to the third-party components included * within TencentOS. *---------------------------------------------------------------------------*/ #include "tos_k.h" #include "stdbool.h" #include "e53_sc1.h" extern void key1_handler_callback(void); static k_timer_t key_check_tmr; static uint32_t key_press_count = 0; static uint32_t key_release_count = 0; static bool key_pressed = false; #define KEY_CHECK_SHAKING_COUNT 3 static void key_check_timer_cb(void *arg) { if (GPIO_PIN_RESET == HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_0)){ key_press_count++; key_release_count = 0; } else { key_press_count = 0; key_release_count++; } // 支持按键消抖 if (key_press_count > KEY_CHECK_SHAKING_COUNT) { // 按键按下时功能即生效,且只生效一次 if (!key_pressed) { //printf("key 1 pressed\r\n"); key_pressed = true; key1_handler_callback(); } } if (key_release_count > KEY_CHECK_SHAKING_COUNT){ if (key_pressed) { key_pressed = false; //printf("key 1 release\r\n"); } } } void stm32g0xx_key_init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = GPIO_PIN_0; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); // 使用tencent-os tiny的定时器实现按键检测功能 tos_timer_create(&key_check_tmr, 1u, 10u, key_check_timer_cb, K_NULL, TOS_OPT_TIMER_PERIODIC); tos_timer_start(&key_check_tmr); }
944
454
<reponame>zwkjhx/vertx-zero<filename>vertx-pin/zero-rbac/src/main/java/io/vertx/tp/error/_401CodeExpiredException.java package io.vertx.tp.error; import io.vertx.core.http.HttpStatusCode; import io.vertx.up.exception.WebException; public class _401CodeExpiredException extends WebException { public _401CodeExpiredException(final Class<?> clazz, final String clientId, final String code) { super(clazz, clientId, code); } @Override public int getCode() { return -80201; } @Override public HttpStatusCode getStatus() { return HttpStatusCode.UNAUTHORIZED; } }
312
688
<filename>hyperparameter_hunter/data/datasets.py<gh_stars>100-1000 ################################################## # Import Own Assets ################################################## from hyperparameter_hunter.data.data_core import BaseDataset, NullDataChunk from hyperparameter_hunter.data.data_chunks.input_chunks import ( TrainInputChunk, OOFInputChunk, HoldoutInputChunk, TestInputChunk, ) from hyperparameter_hunter.data.data_chunks.target_chunks import ( TrainTargetChunk, OOFTargetChunk, HoldoutTargetChunk, ) from hyperparameter_hunter.data.data_chunks.prediction_chunks import ( OOFPredictionChunk, HoldoutPredictionChunk, TestPredictionChunk, ) ################################################## # Datasets ################################################## class TrainDataset(BaseDataset): _input_type: type = TrainInputChunk _target_type: type = TrainTargetChunk _prediction_type: type = NullDataChunk input: TrainInputChunk target: TrainTargetChunk prediction: NullDataChunk class OOFDataset(BaseDataset): _input_type: type = OOFInputChunk _target_type: type = OOFTargetChunk _prediction_type: type = OOFPredictionChunk input: OOFInputChunk target: OOFTargetChunk prediction: OOFPredictionChunk class HoldoutDataset(BaseDataset): _input_type: type = HoldoutInputChunk _target_type: type = HoldoutTargetChunk _prediction_type: type = HoldoutPredictionChunk input: HoldoutInputChunk target: HoldoutTargetChunk prediction: HoldoutPredictionChunk class TestDataset(BaseDataset): _input_type: type = TestInputChunk _target_type: type = NullDataChunk _prediction_type: type = TestPredictionChunk input: TestInputChunk target: NullDataChunk prediction: TestPredictionChunk
625
1,456
<reponame>t-imamichi/qiskit-core # This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative works of this code must retain this # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. """Printers for QASM 3 AST nodes.""" import io from typing import Sequence from . import ast class BasicPrinter: """A QASM 3 AST visitor which writes the tree out in text mode to a stream, where the only formatting is simple block indentation.""" _CONSTANT_LOOKUP = { ast.Constant.PI: "pi", ast.Constant.EULER: "euler", ast.Constant.TAU: "tau", } _MODIFIER_LOOKUP = { ast.QuantumGateModifierName.CTRL: "ctrl", ast.QuantumGateModifierName.NEGCTRL: "negctrl", ast.QuantumGateModifierName.INV: "inv", ast.QuantumGateModifierName.POW: "pow", } _FLOAT_WIDTH_LOOKUP = {type: str(type.value) for type in ast.FloatType} # The visitor names include the class names, so they mix snake_case with PascalCase. # pylint: disable=invalid-name def __init__(self, stream: io.TextIOBase, *, indent: str, chain_else_if: bool = False): """ Args: stream (io.TextIOBase): the stream that the output will be written to. indent (str): the string to use as a single indentation level. chain_else_if (bool): If ``True``, then constructs of the form:: if (x == 0) { // ... } else { if (x == 1) { // ... } else { // ... } } will be collapsed into the equivalent but flatter:: if (x == 0) { // ... } else if (x == 1) { // ... } else { // ... } This collapsed form may have less support on backends, so it is turned off by default. While the output of this printer is always unambiguous, using ``else`` without immediately opening an explicit scope with ``{ }`` in nested contexts can cause issues, in the general case, which is why it is sometimes less supported. """ self.stream = stream self.indent = indent self._current_indent = 0 self._chain_else_if = chain_else_if def visit(self, node: ast.ASTNode) -> None: """Visit this node of the AST, printing it out to the stream in this class instance. Normally, you will want to call this function on a complete :obj:`~qiskit.qasm3.ast.Program` node, to print out a complete program to the stream. The visit can start from any node, however, if you want to build up a file bit-by-bit manually. Args: node (ASTNode): the node to convert to QASM 3 and write out to the stream. Raises: RuntimeError: if an AST node is encountered that the visitor is unable to parse. This typically means that the given AST was malformed. """ visitor = None for cls_ in type(node).mro(): visitor = getattr(self, "_visit_" + cls_.__name__, None) if visitor is not None: break else: node_type = node.__class__.__name__ raise RuntimeError( f"This visitor does not know how to handle AST nodes of type '{node_type}'," f" but was given '{node}'." ) visitor(node) def _start_line(self) -> None: self.stream.write(self._current_indent * self.indent) def _end_statement(self) -> None: self.stream.write(";\n") def _end_line(self) -> None: self.stream.write("\n") def _write_statement(self, line: str) -> None: self._start_line() self.stream.write(line) self._end_statement() def _visit_sequence( self, nodes: Sequence[ast.ASTNode], *, start: str = "", end: str = "", separator: str ) -> None: if start: self.stream.write(start) for node in nodes[:-1]: self.visit(node) self.stream.write(separator) if nodes: self.visit(nodes[-1]) if end: self.stream.write(end) def _visit_Program(self, node: ast.Program) -> None: self.visit(node.header) for statement in node.statements: self.visit(statement) def _visit_Header(self, node: ast.Header) -> None: self.visit(node.version) for include in node.includes: self.visit(include) def _visit_Version(self, node: ast.Version) -> None: self._write_statement(f"OPENQASM {node.version_number}") def _visit_Include(self, node: ast.Include) -> None: self._write_statement(f'include "{node.filename}"') def _visit_Pragma(self, node: ast.Pragma) -> None: self._write_statement(f"#pragma {node.content}") def _visit_CalibrationGrammarDeclaration(self, node: ast.CalibrationGrammarDeclaration) -> None: self._write_statement(f'defcalgrammar "{node.name}"') def _visit_FloatType(self, node: ast.FloatType) -> None: self.stream.write(f"float[{self._FLOAT_WIDTH_LOOKUP[node]}]") def _visit_BitArrayType(self, node: ast.BitArrayType) -> None: self.stream.write(f"bit[{node.size}]") def _visit_Identifier(self, node: ast.Identifier) -> None: self.stream.write(node.string) def _visit_PhysicalQubitIdentifier(self, node: ast.PhysicalQubitIdentifier) -> None: self.stream.write("$") self.visit(node.identifier) def _visit_Expression(self, node: ast.Expression) -> None: self.stream.write(str(node.something)) def _visit_Constant(self, node: ast.Constant) -> None: self.stream.write(self._CONSTANT_LOOKUP[node]) def _visit_SubscriptedIdentifier(self, node: ast.SubscriptedIdentifier) -> None: self.visit(node.identifier) self.stream.write("[") self.visit(node.subscript) self.stream.write("]") def _visit_Range(self, node: ast.Range) -> None: if node.start is not None: self.visit(node.start) self.stream.write(":") if node.step is not None: self.visit(node.step) self.stream.write(":") if node.end is not None: self.visit(node.end) def _visit_IndexSet(self, node: ast.IndexSet) -> None: self._visit_sequence(node.values, start="{", separator=", ", end="}") def _visit_QuantumMeasurement(self, node: ast.QuantumMeasurement) -> None: self.stream.write("measure ") self._visit_sequence(node.identifierList, separator=", ") def _visit_QuantumMeasurementAssignment(self, node: ast.QuantumMeasurementAssignment) -> None: self._start_line() self.visit(node.identifier) self.stream.write(" = ") self.visit(node.quantumMeasurement) self._end_statement() def _visit_QuantumReset(self, node: ast.QuantumReset) -> None: self._start_line() self.stream.write("reset ") self.visit(node.identifier) self._end_statement() def _visit_QuantumDelay(self, node: ast.QuantumDelay) -> None: self._start_line() self.stream.write("delay[") self.visit(node.duration) self.stream.write("] ") self._visit_sequence(node.qubits, separator=", ") self._end_statement() def _visit_Integer(self, node: ast.Integer) -> None: self.stream.write(str(node.something)) def _visit_DurationLiteral(self, node: ast.DurationLiteral) -> None: self.stream.write(f"{node.value}{node.unit.value}") def _visit_Designator(self, node: ast.Designator) -> None: self.stream.write("[") self.visit(node.expression) self.stream.write("]") def _visit_ClassicalDeclaration(self, node: ast.ClassicalDeclaration) -> None: self._start_line() self.visit(node.type) self.stream.write(" ") self.visit(node.identifier) if node.initializer is not None: self.stream.write(" = ") self.visit(node.initializer) self._end_statement() def _visit_IODeclaration(self, node: ast.IODeclaration) -> None: self._start_line() modifier = "input" if node.modifier is ast.IOModifier.INPUT else "output" self.stream.write(modifier + " ") self.visit(node.type) self.stream.write(" ") self.visit(node.identifier) self._end_statement() def _visit_QuantumDeclaration(self, node: ast.QuantumDeclaration) -> None: self._start_line() self.stream.write("qubit") self.visit(node.designator) self.stream.write(" ") self.visit(node.identifier) self._end_statement() def _visit_AliasStatement(self, node: ast.AliasStatement) -> None: self._start_line() self.stream.write("let ") self.visit(node.identifier) self.stream.write(" = ") self._visit_sequence(node.concatenation, separator=" ++ ") self._end_statement() def _visit_QuantumGateModifier(self, node: ast.QuantumGateModifier) -> None: self.stream.write(self._MODIFIER_LOOKUP[node.modifier]) if node.argument: self.stream.write("(") self.visit(node.argument) self.stream.write(")") def _visit_QuantumGateCall(self, node: ast.QuantumGateCall) -> None: self._start_line() if node.modifiers: self._visit_sequence(node.modifiers, end=" @ ", separator=" @ ") self.visit(node.quantumGateName) if node.parameters: self._visit_sequence(node.parameters, start="(", end=")", separator=", ") self.stream.write(" ") self._visit_sequence(node.indexIdentifierList, separator=", ") self._end_statement() def _visit_SubroutineCall(self, node: ast.SubroutineCall) -> None: self._start_line() self.visit(node.identifier) if node.expressionList: self._visit_sequence(node.expressionList, start="(", end=")", separator=", ") self.stream.write(" ") self._visit_sequence(node.indexIdentifierList, separator=", ") self._end_statement() def _visit_QuantumBarrier(self, node: ast.QuantumBarrier) -> None: self._start_line() self.stream.write("barrier ") self._visit_sequence(node.indexIdentifierList, separator=", ") self._end_statement() def _visit_ProgramBlock(self, node: ast.ProgramBlock) -> None: self.stream.write("{\n") self._current_indent += 1 for statement in node.statements: self.visit(statement) self._current_indent -= 1 self._start_line() self.stream.write("}") def _visit_ReturnStatement(self, node: ast.ReturnStatement) -> None: self._start_line() if node.expression: self.stream.write("return ") self.visit(node.expression) else: self.stream.write("return") self._end_statement() def _visit_QuantumArgument(self, node: ast.QuantumArgument) -> None: self.stream.write("qubit") if node.designator: self.visit(node.designator) self.stream.write(" ") self.visit(node.identifier) def _visit_QuantumGateSignature(self, node: ast.QuantumGateSignature) -> None: self.visit(node.name) if node.params: self._visit_sequence(node.params, start="(", end=")", separator=", ") self.stream.write(" ") self._visit_sequence(node.qargList, separator=", ") def _visit_QuantumGateDefinition(self, node: ast.QuantumGateDefinition) -> None: self._start_line() self.stream.write("gate ") self.visit(node.quantumGateSignature) self.stream.write(" ") self.visit(node.quantumBlock) self._end_line() def _visit_SubroutineDefinition(self, node: ast.SubroutineDefinition) -> None: self._start_line() self.stream.write("def ") self.visit(node.identifier) self._visit_sequence(node.arguments, start="(", end=")", separator=", ") self.stream.write(" ") self.visit(node.subroutineBlock) self._end_line() def _visit_CalibrationDefinition(self, node: ast.CalibrationDefinition) -> None: self._start_line() self.stream.write("defcal ") self.visit(node.name) self.stream.write(" ") if node.calibrationArgumentList: self._visit_sequence(node.calibrationArgumentList, start="(", end=")", separator=", ") self.stream.write(" ") self._visit_sequence(node.identifierList, separator=", ") # This is temporary: calibration definition blocks are not currently (2021-10-04) defined # properly. self.stream.write(" {}") self._end_line() def _visit_LtOperator(self, _node: ast.LtOperator) -> None: self.stream.write(">") def _visit_GtOperator(self, _node: ast.GtOperator) -> None: self.stream.write("<") def _visit_EqualsOperator(self, _node: ast.EqualsOperator) -> None: self.stream.write("==") def _visit_ComparisonExpression(self, node: ast.ComparisonExpression) -> None: self.visit(node.left) self.stream.write(" ") self.visit(node.relation) self.stream.write(" ") self.visit(node.right) def _visit_BreakStatement(self, _node: ast.BreakStatement) -> None: self._write_statement("break") def _visit_ContinueStatement(self, _node: ast.ContinueStatement) -> None: self._write_statement("continue") def _visit_BranchingStatement( self, node: ast.BranchingStatement, chained: bool = False ) -> None: if not chained: self._start_line() self.stream.write("if (") self.visit(node.condition) self.stream.write(") ") self.visit(node.true_body) if node.false_body is not None: self.stream.write(" else ") # Special handling to flatten a perfectly nested structure of # if {...} else { if {...} else {...} } # into the simpler # if {...} else if {...} else {...} # but only if we're allowed to by our options. if ( self._chain_else_if and len(node.false_body.statements) == 1 and isinstance(node.false_body.statements[0], ast.BranchingStatement) ): self._visit_BranchingStatement(node.false_body.statements[0], chained=True) else: self.visit(node.false_body) if not chained: # The visitor to the first ``if`` will end the line. self._end_line() def _visit_ForLoopStatement(self, node: ast.ForLoopStatement) -> None: self._start_line() self.stream.write("for ") self.visit(node.parameter) self.stream.write(" in ") if isinstance(node.indexset, ast.Range): self.stream.write("[") self.visit(node.indexset) self.stream.write("]") else: self.visit(node.indexset) self.stream.write(" ") self.visit(node.body) self._end_line() def _visit_WhileLoopStatement(self, node: ast.WhileLoopStatement) -> None: self._start_line() self.stream.write("while (") self.visit(node.condition) self.stream.write(") ") self.visit(node.body) self._end_line()
7,287
4,857
<reponame>gvprathyusha6/hbase /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hbase.rsgroup; import static org.apache.hadoop.hbase.rsgroup.RSGroupInfoManagerImpl.META_FAMILY_BYTES; import static org.apache.hadoop.hbase.rsgroup.RSGroupInfoManagerImpl.META_QUALIFIER_BYTES; import static org.apache.hadoop.hbase.rsgroup.RSGroupInfoManagerImpl.RSGROUP_TABLE_NAME; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.concurrent.CountDownLatch; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseClassTestRule; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.TableDescriptors; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Get; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.client.TableDescriptor; import org.apache.hadoop.hbase.coprocessor.CoprocessorHost; import org.apache.hadoop.hbase.master.HMaster; import org.apache.hadoop.hbase.testclassification.MediumTests; import org.apache.hadoop.hbase.testclassification.RSGroupTests; import org.apache.hadoop.hbase.util.Bytes; import org.apache.zookeeper.KeeperException; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.ClassRule; import org.junit.Test; import org.junit.experimental.categories.Category; import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupProtos; /** * Testcase for HBASE-22819 */ @Category({ RSGroupTests.class, MediumTests.class }) public class TestMigrateRSGroupInfo extends TestRSGroupsBase { @ClassRule public static final HBaseClassTestRule CLASS_RULE = HBaseClassTestRule.forClass(TestMigrateRSGroupInfo.class); private static String TABLE_NAME_PREFIX = "Table_"; private static int NUM_TABLES = 10; private static byte[] FAMILY = Bytes.toBytes("family"); private static RSGroupAdminClient RS_GROUP_ADMIN_CLIENT; @BeforeClass public static void setUp() throws Exception { TEST_UTIL.getConfiguration().setClass(HConstants.MASTER_IMPL, HMasterForTest.class, HMaster.class); // confirm that we could enable rs group by setting the old CP. TEST_UTIL.getConfiguration().setBoolean(RSGroupUtil.RS_GROUP_ENABLED, false); TEST_UTIL.getConfiguration().set(CoprocessorHost.MASTER_COPROCESSOR_CONF_KEY, RSGroupAdminEndpoint.class.getName()); setUpTestBeforeClass(); RS_GROUP_ADMIN_CLIENT = new RSGroupAdminClient(TEST_UTIL.getConnection()); for (int i = 0; i < NUM_TABLES; i++) { TEST_UTIL.createTable(TableName.valueOf(TABLE_NAME_PREFIX + i), FAMILY); } } @AfterClass public static void tearDown() throws Exception { tearDownAfterClass(); } private static CountDownLatch RESUME = new CountDownLatch(1); public static final class HMasterForTest extends HMaster { public HMasterForTest(Configuration conf) throws IOException, KeeperException { super(conf); } @Override public TableDescriptors getTableDescriptors() { if (RESUME != null) { for (StackTraceElement element : Thread.currentThread().getStackTrace()) { if (element.getMethodName().equals("migrate")) { try { RESUME.await(); } catch (InterruptedException e) { } RESUME = null; break; } } } return super.getTableDescriptors(); } } @Test public void testMigrate() throws IOException, InterruptedException { String groupName = getNameWithoutIndex(name.getMethodName()); addGroup(groupName, TEST_UTIL.getMiniHBaseCluster().getRegionServerThreads().size() - 1); RSGroupInfo rsGroupInfo = ADMIN.getRSGroup(groupName); assertTrue(rsGroupInfo.getTables().isEmpty()); for (int i = 0; i < NUM_TABLES; i++) { rsGroupInfo.addTable(TableName.valueOf(TABLE_NAME_PREFIX + i)); } try (Table table = TEST_UTIL.getConnection().getTable(RSGROUP_TABLE_NAME)) { RSGroupProtos.RSGroupInfo proto = ProtobufUtil.toProtoGroupInfo(rsGroupInfo); Put p = new Put(Bytes.toBytes(rsGroupInfo.getName())); p.addColumn(META_FAMILY_BYTES, META_QUALIFIER_BYTES, proto.toByteArray()); table.put(p); } TEST_UTIL.getMiniHBaseCluster().stopMaster(0).join(); RESUME = new CountDownLatch(1); TEST_UTIL.getMiniHBaseCluster().startMaster(); TEST_UTIL.invalidateConnection(); RS_GROUP_ADMIN_CLIENT = new RSGroupAdminClient(TEST_UTIL.getConnection()); // wait until we can get the rs group info for a table TEST_UTIL.waitFor(30000, () -> { try { RS_GROUP_ADMIN_CLIENT.getRSGroupInfoOfTable(TableName.valueOf(TABLE_NAME_PREFIX + 0)); return true; } catch (IOException e) { return false; } }); // confirm that before migrating, we could still get the correct rs group for a table. for (int i = 0; i < NUM_TABLES; i++) { RSGroupInfo info = RS_GROUP_ADMIN_CLIENT.getRSGroupInfoOfTable(TableName.valueOf(TABLE_NAME_PREFIX + i)); assertEquals(rsGroupInfo.getName(), info.getName()); assertEquals(NUM_TABLES, info.getTables().size()); } RESUME.countDown(); TEST_UTIL.waitFor(60000, () -> { for (int i = 0; i < NUM_TABLES; i++) { TableDescriptor td; try { td = TEST_UTIL.getAdmin().getDescriptor(TableName.valueOf(TABLE_NAME_PREFIX + i)); } catch (IOException e) { return false; } if (!rsGroupInfo.getName().equals(td.getRegionServerGroup().orElse(null))) { return false; } } return true; }); // make sure that we persist the result to hbase, where we delete all the tables in the rs // group. TEST_UTIL.waitFor(30000, () -> { try (Table table = TEST_UTIL.getConnection().getTable(RSGROUP_TABLE_NAME)) { Result result = table.get(new Get(Bytes.toBytes(rsGroupInfo.getName()))); RSGroupProtos.RSGroupInfo proto = RSGroupProtos.RSGroupInfo .parseFrom(result.getValue(META_FAMILY_BYTES, META_QUALIFIER_BYTES)); RSGroupInfo gi = ProtobufUtil.toGroupInfo(proto); return gi.getTables().isEmpty(); } }); // make sure that the migrate thread has quit. TEST_UTIL.waitFor(30000, () -> Thread.getAllStackTraces().keySet().stream() .noneMatch(t -> t.getName().equals(RSGroupInfoManagerImpl.MIGRATE_THREAD_NAME))); // make sure we could still get the correct rs group info after migration for (int i = 0; i < NUM_TABLES; i++) { RSGroupInfo info = RS_GROUP_ADMIN_CLIENT.getRSGroupInfoOfTable(TableName.valueOf(TABLE_NAME_PREFIX + i)); assertEquals(rsGroupInfo.getName(), info.getName()); assertEquals(NUM_TABLES, info.getTables().size()); } } }
2,911
453
<reponame>The0x539/wasp<gh_stars>100-1000 #include <math.h> #include "headers/fmax.h" double fmax(double x, double y) { return _fmax(x, y); }
70
359
#include "thcrap.h" #include "server.h" #include "download_url.h" DownloadUrl::DownloadUrl(Server& server, std::string url) : server(server), url(server.getUrl() + url) {} DownloadUrl::DownloadUrl(const DownloadUrl& src) : server(src.server), url(src.url) {} Server& DownloadUrl::getServer() const { return this->server; } const std::string& DownloadUrl::getUrl() const { return this->url; }
152
789
<filename>qbit/core/src/main/java/io/advantageous/qbit/http/client/HttpClientTimeoutException.java package io.advantageous.qbit.http.client; /** * If an HTTP Client has a time out, it can throw this exception. * created by rhightower on 4/30/15. */ public class HttpClientTimeoutException extends HttpClientException { public HttpClientTimeoutException() { } public HttpClientTimeoutException(String message) { super(message); } public HttpClientTimeoutException(String message, Throwable cause) { super(message, cause); } public HttpClientTimeoutException(Throwable cause) { super(cause); } public HttpClientTimeoutException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } }
281
1,652
package com.ctrip.xpipe.redis.core.protocal.protocal; import com.ctrip.xpipe.redis.core.protocal.RedisClientProtocol; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author wenchao.meng * * 2016年3月24日 下午6:31:56 */ public class LongParser extends AbstractRedisClientProtocol<Long>{ private static final Logger logger = LoggerFactory.getLogger(LongParser.class); public LongParser() { } public LongParser(Long payload) { super(payload, true, true); } public LongParser(Integer payload) { super(payload.longValue(), true, true); } public LongParser(Long payload, boolean logRead, boolean logWrite) { super(payload, logRead, logWrite); } @Override public RedisClientProtocol<Long> read(ByteBuf byteBuf){ String data = readTilCRLFAsString(byteBuf); if(data == null){ return null; } if(data.charAt(0) != COLON_BYTE){ logger.debug("[read] first char expected is Colon (:)"); return new LongParser(Long.valueOf(data.trim())); } else { return new LongParser(Long.valueOf(data.substring(1).trim())); } } @Override protected ByteBuf getWriteByteBuf() { return Unpooled.wrappedBuffer(getRequestBytes(COLON_BYTE, payload)); } @Override protected Logger getLogger() { return logger; } @Override public boolean supportes(Class<?> clazz) { return Long.class.isAssignableFrom(clazz) || Integer.class.isAssignableFrom(clazz); } }
567
670
<gh_stars>100-1000 package com.uddernetworks.mspaint.gui; import javafx.scene.layout.Pane; import java.io.IOException; public interface SettingItem { Pane getPane() throws IOException; String getFile(); @Override String toString(); }
93
636
package org.hyperledger.indy.sdk.ledger; import org.hyperledger.indy.sdk.did.Did; import org.hyperledger.indy.sdk.did.DidResults; import org.json.JSONObject; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; public class GetFrozenLedgersTest extends LedgerIntegrationTest { @Rule public Timeout globalTimeout = new Timeout(1, TimeUnit.MINUTES); @Test public void TestBuildGetFrozenLedgersRequest() throws Exception { DidResults.CreateAndStoreMyDidResult myDidResult = Did.createAndStoreMyDid(wallet, "{}").get(); String did = myDidResult.getDid(); String request = Ledger.buildGetFrozenLedgersRequest(did).get(); JSONObject expectedResult = new JSONObject() .put("operation", new JSONObject() .put("type", "10") ); System.out.println(request); assert (new JSONObject(request).toMap().entrySet() .containsAll(expectedResult.toMap().entrySet())); } @Test public void TestLedgersFreezeRequest() throws Exception { DidResults.CreateAndStoreMyDidResult myDidResult = Did.createAndStoreMyDid(wallet, "{}").get(); String did = myDidResult.getDid(); List<Integer> ledgersIds = Arrays.asList(0, 1, 28 ,345); String request = Ledger.buildLedgersFreezeRequest(did, ledgersIds).get(); JSONObject expectedResult = new JSONObject() .put("operation", new JSONObject() .put("type", "9") .put("ledgers_ids", ledgersIds) ); assert (new JSONObject(request).toMap().entrySet() .containsAll(expectedResult.toMap().entrySet())); } @Test public void TestLedgersFreezeRequestWithEmptyData() throws Exception { DidResults.CreateAndStoreMyDidResult myDidResult = Did.createAndStoreMyDid(wallet, "{}").get(); String did = myDidResult.getDid(); List<Integer> ledgersIds = Arrays.asList(); String request = Ledger.buildLedgersFreezeRequest(did, ledgersIds).get(); JSONObject expectedResult = new JSONObject() .put("operation", new JSONObject() .put("type", "9") .put("ledgers_ids", ledgersIds) ); assert (new JSONObject(request).toMap().entrySet() .containsAll(expectedResult.toMap().entrySet())); } }
1,041
312
<reponame>cnmade/wfrest<filename>test/multi_part_test.cc #include <string> #include <cstring> #include <iostream> std::string trim_pairs(const std::string& str, const char* pairs) { const char* s = str.c_str(); const char* e = str.c_str() + str.size() - 1; const char* p = pairs; bool is_pair = false; while (*p != '\0' && *(p+1) != '\0') { if (*s == *p && *e == *(p+1)) { is_pair = true; break; } p += 2; } return is_pair ? str.substr(1, str.size()-2) : str; } const static std::string content_type_str = R"(Content-Type:multipart/form-data; boundary=ZnGpDtePMx0KrHh_G0X99Yef9r8JZsRJSXC)"; void test01() { const char* boundary = strstr(content_type_str.c_str(), "boundary="); if (boundary == nullptr) { return; } boundary += strlen("boundary="); std::cout << boundary << std::endl; std::string boundary_str(boundary); boundary_str = trim_pairs(boundary_str, R"(""'')"); std::cout << boundary_str << std::endl; } int main() { test01(); }
495
2,308
/** * Copyright 2016 vip.com. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * </p> **/ package com.vip.saturn.job.console.service.impl.statistics.analyzer; import com.vip.saturn.job.console.domain.DisabledTimeoutAlarmJob; import com.vip.saturn.job.console.domain.RegistryCenterConfiguration; import com.vip.saturn.job.console.repository.zookeeper.CuratorRepository.CuratorFrameworkOp; import com.vip.saturn.job.console.service.helper.DashboardServiceHelper; import com.vip.saturn.job.console.service.impl.JobServiceImpl; import com.vip.saturn.job.console.utils.JobNodePath; import com.vip.saturn.job.integrate.service.ReportAlarmService; import com.vip.saturn.job.sharding.node.SaturnExecutorsNode; import org.apache.commons.lang3.time.FastDateFormat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; import java.util.UUID; /** * 禁用作业时长超时的作业分析器 */ public class DisabledTimeoutJobAnalyzer { private static final Logger log = LoggerFactory.getLogger(DisabledTimeoutJobAnalyzer.class); private static final FastDateFormat fastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss"); private ReportAlarmService reportAlarmService; private List<DisabledTimeoutAlarmJob> disabledTimeoutAlarmJobs = new ArrayList<DisabledTimeoutAlarmJob>(); /** * 查找禁用超时告警作业 */ public void analyze(CuratorFrameworkOp curatorFrameworkOp, List<DisabledTimeoutAlarmJob> oldDisabledTimeoutJobs, String jobName, String jobDegree, RegistryCenterConfiguration config) { DisabledTimeoutAlarmJob disabledTimeoutAlarmJob = new DisabledTimeoutAlarmJob(jobName, config.getNamespace(), config.getNameAndNamespace(), config.getDegree()); if (isDisabledTimeout(disabledTimeoutAlarmJob, oldDisabledTimeoutJobs, curatorFrameworkOp)) { disabledTimeoutAlarmJob.setJobDegree(jobDegree); addDisabledTimeoutJob(disabledTimeoutAlarmJob); } } private synchronized void addDisabledTimeoutJob(DisabledTimeoutAlarmJob disabledTimeoutAlarmJob) { disabledTimeoutAlarmJobs.add(disabledTimeoutAlarmJob); } /** * 如果配置了禁用超时告警时间,而且enabled节点设置为false的时长大于该时长,则告警 */ private boolean isDisabledTimeout(DisabledTimeoutAlarmJob disabledTimeoutAlarmJob, List<DisabledTimeoutAlarmJob> oldDisabledTimeoutJobs, CuratorFrameworkOp curatorFrameworkOp) { String jobName = disabledTimeoutAlarmJob.getJobName(); int disableTimeoutSeconds = getDisableTimeoutSeconds(curatorFrameworkOp, jobName); if (disableTimeoutSeconds <= 0) { return false; } String enableStr = curatorFrameworkOp.getData(SaturnExecutorsNode.getJobConfigEnableNodePath(jobName)); if (enableStr == null || Boolean.parseBoolean(enableStr)) { return false; } long mtime = curatorFrameworkOp.getMtime(SaturnExecutorsNode.getJobConfigEnableNodePath(jobName)); if ((System.currentTimeMillis() - mtime) < (disableTimeoutSeconds * 1000)) { return false; } disabledTimeoutAlarmJob.setDisableTimeoutSeconds(disableTimeoutSeconds); disabledTimeoutAlarmJob.setDisableTime(mtime); disabledTimeoutAlarmJob.setDisableTimeStr(fastDateFormat.format(mtime)); DisabledTimeoutAlarmJob oldJob = DashboardServiceHelper.findEqualDisabledTimeoutJob(disabledTimeoutAlarmJob, oldDisabledTimeoutJobs); if (oldJob != null) { disabledTimeoutAlarmJob.setRead(oldJob.isRead()); if (oldJob.getUuid() != null) { disabledTimeoutAlarmJob.setUuid(oldJob.getUuid()); } else { disabledTimeoutAlarmJob.setUuid(UUID.randomUUID().toString()); } } else { disabledTimeoutAlarmJob.setUuid(UUID.randomUUID().toString()); } if (!disabledTimeoutAlarmJob.isRead()) { try { reportAlarmService.dashboardLongTimeDisabledJob(disabledTimeoutAlarmJob.getDomainName(), jobName, mtime, disableTimeoutSeconds); } catch (Throwable t) { log.error(t.getMessage(), t); } } return true; } /** * 获取作业设置的禁用超时告警时间设置 */ private int getDisableTimeoutSeconds(CuratorFrameworkOp curatorFrameworkOp, String jobName) { String disableTimeoutSecondsStr = curatorFrameworkOp .getData(JobNodePath.getConfigNodePath(jobName, JobServiceImpl.CONFIG_DISABLE_TIMEOUT_SECONDS)); int disableTimeoutSeconds = 0; if (disableTimeoutSecondsStr != null) { try { disableTimeoutSeconds = Integer.parseInt(disableTimeoutSecondsStr); } catch (NumberFormatException e) { log.error(e.getMessage(), e); } } return disableTimeoutSeconds; } public List<DisabledTimeoutAlarmJob> getDisabledTimeoutAlarmJobList() { return new ArrayList<DisabledTimeoutAlarmJob>(disabledTimeoutAlarmJobs); } public void setReportAlarmService(ReportAlarmService reportAlarmService) { this.reportAlarmService = reportAlarmService; } }
1,846
643
# These are defined so that we can evaluate the test code. NONSOURCE = "not a source" SOURCE = "source" def is_source(x): return x == "source" or x == b"source" or x == 42 or x == 42.0 or x == 42j def SINK(x): if is_source(x): print("OK") else: print("Unexpected flow", x) def SINK_F(x): if is_source(x): print("Unexpected flow", x) else: print("OK") # ------------------------------------------------------------------------------ # Actual tests # ------------------------------------------------------------------------------ def give_src(): return SOURCE foo = give_src() SINK(foo) # $ flow="SOURCE, l:-3 -> foo" import os cond = os.urandom(1)[0] > 128 # $ unresolved_call=os.urandom(..) if cond: pass if cond: pass foo = give_src() # $ unresolved_call=give_src() SINK(foo) # $ unresolved_call=SINK(..) MISSING: flow="SOURCE, l:-15 -> foo"
331
312
<reponame>wfrest/wfrest #include "workflow/WFFacilities.h" #include <csignal> #include "wfrest/HttpServer.h" using namespace wfrest; static WFFacilities::WaitGroup wait_group(1); void sig_handler(int signo) { wait_group.done(); } void Factorial(int n, HttpResp *resp) { unsigned long long factorial = 1; for(int i = 1; i <= n; i++) { factorial *= i; } resp->String("fac(" + std::to_string(n) + ") = " + std::to_string(factorial)); } int main() { signal(SIGINT, sig_handler); HttpServer svr; svr.GET("/compute", [](const HttpReq *req, HttpResp *resp) { // First param is queue id resp->Compute(1, Factorial, 10, resp); }); if (svr.track().start(8888) == 0) { svr.list_routes(); wait_group.wait(); svr.stop(); } else { fprintf(stderr, "Cannot start server"); exit(1); } return 0; }
434
2,138
<gh_stars>1000+ package org.jeecgframework.jwt.util; import io.jsonwebtoken.Claims; import io.jsonwebtoken.ExpiredJwtException; import io.jsonwebtoken.Jws; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.SignatureException; import org.jeecgframework.jwt.def.JwtConstants; public class TestJwtSignToken { public static void main1(String[] args) { // 生成JWT签名 String compactJws = Jwts.builder().setId("8a8ab0b246dc81120146dc8181950052").setSubject("admin").claim("age", "999").signWith(SignatureAlgorithm.HS512, JwtConstants.JWT_SECRET).compact(); System.out.println(compactJws); try { // 验证JWT签名 Jws<Claims> parseClaimsJws = Jwts.parser().setSigningKey(JwtConstants.JWT_SECRET).parseClaimsJws(compactJws);// compactJws为jwt字符串 Claims body = parseClaimsJws.getBody();// 得到body后我们可以从body中获取我们需要的信息 // 比如 获取主题,当然,这是我们在生成jwt字符串的时候就已经存进来的 String subject = body.getSubject(); System.out.println("subject:" + subject); System.out.println("body:" + body); System.out.println("id:" + body.getId()); // OK, we can trust this JWT } catch (SignatureException e) { // TODO: handle exception // don't trust the JWT! // jwt 解析错误 e.printStackTrace(); } catch (ExpiredJwtException e) { // TODO: handle exception // jwt // 已经过期,在设置jwt的时候如果设置了过期时间,这里会自动判断jwt是否已经过期,如果过期则会抛出这个异常,我们可以抓住这个异常并作相关处理。 e.printStackTrace(); } } }
794
485
package io.indexr.vlt.segment.index; import com.google.common.base.Preconditions; import org.apache.spark.unsafe.types.UTF8String; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.file.Path; import java.nio.file.StandardOpenOption; import io.indexr.data.Cleanable; import io.indexr.data.DataType; import io.indexr.data.DictStruct; import io.indexr.data.StringsStructOnByteBufferReader; import io.indexr.io.ByteBufferReader; import io.indexr.io.ByteBufferWriter; import io.indexr.segment.Column; import io.indexr.segment.ColumnType; import io.indexr.segment.OuterIndex; import io.indexr.segment.SegmentMode; import io.indexr.segment.pack.DataPack; import io.indexr.segment.pack.DataPackNode; import io.indexr.segment.storage.StorageColumn; import io.indexr.util.BinarySearch; import io.indexr.util.BitMap; import io.indexr.util.ByteBufferUtil; import io.indexr.util.DirectBitMap; import io.indexr.util.IOUtil; import io.indexr.util.Trick; /** * | metadata | dict entries | bitmap | bitmap merge | */ public class OuterIndex_Inverted implements OuterIndex { public static final int MARK = 1; public static final int METADATA_SIZE = 4 + 4 + 4 + 4 + 8 + 8; private byte dataType; private int dictEntryCount; private int packCount; private int bitmapMergeSlotCount; private ByteBufferReader dictReader; private ByteBufferReader bitmapReader; private ByteBufferReader bitmapMergeReader; public OuterIndex_Inverted(byte dataType, ByteBufferReader reader) throws IOException { this.dataType = dataType; ByteBuffer buffer = ByteBufferUtil.allocateHeap(METADATA_SIZE); reader.read(0, buffer); buffer.flip(); int mark = buffer.getInt(); this.dictEntryCount = buffer.getInt(); this.packCount = buffer.getInt(); this.bitmapMergeSlotCount = buffer.getInt(); long dictSize = buffer.getLong(); long bitmapSize = buffer.getLong(); Preconditions.checkState(mark == MARK); long totalBitmapSize = dictEntryCount * MergeBitMapUtil.bitmapSize(packCount); this.dictReader = ByteBufferReader.of(reader, METADATA_SIZE, reader); this.bitmapReader = ByteBufferReader.of(reader, METADATA_SIZE + dictSize, null); this.bitmapMergeReader = ByteBufferReader.of(reader, METADATA_SIZE + dictSize + totalBitmapSize, null); if (dataType == ColumnType.STRING) { // See StringsStruct assert dictSize == ((dictEntryCount + 1) << 2) + reader.readInt(METADATA_SIZE + (dictEntryCount << 2)); } else { assert dictSize == dictEntryCount << DataType.numTypeShift(dataType); } } private int idToMergeSlotId(int id) { return MergeBitMapUtil.idToMergeSlotId(bitmapMergeSlotCount, dictEntryCount, id); } private int mergeSlotIdToId(int slotId) { return MergeBitMapUtil.mergeSlotIdToId(bitmapMergeSlotCount, dictEntryCount, slotId); } /** * [startEntryId, endEntryId) */ private BitMap readMergedBitMap(int startEntryId, int endEntryId) throws IOException { assert startEntryId < endEntryId; DirectBitMap bitmap = new DirectBitMap(packCount); if (bitmapMergeSlotCount == 0) { MergeBitMapUtil.readAndMergeBitmaps( bitmapReader, bitmap, startEntryId, endEntryId); return new BitMap(bitmap, packCount); } int startSlot = idToMergeSlotId(startEntryId); int endSlot = idToMergeSlotId(endEntryId); if (startSlot == endSlot) { MergeBitMapUtil.readAndMergeBitmaps( bitmapReader, bitmap, startEntryId, endEntryId); } else { assert startSlot < endSlot; // | ........ | ........ | ~ | ........ | ........ | // ^ ^ ^ ^ // start1 end1 start2 end2 int start1 = startEntryId; int end1 = mergeSlotIdToId(startSlot + 1); int start2 = mergeSlotIdToId(endSlot); int end2 = endEntryId; if (start1 >= end1) { System.out.println(); } assert start1 < end1; assert start2 <= end2; assert end1 <= start2; if (end1 == start2) { assert startSlot + 1 == endSlot; MergeBitMapUtil.readAndMergeBitmaps( bitmapReader, bitmap, start1, end2); } else { MergeBitMapUtil.readAndMergeBitmaps( bitmapReader, bitmap, start1, end1); if (start2 < end2) { MergeBitMapUtil.readAndMergeBitmaps( bitmapReader, bitmap, start2, end2); } int mergeStart = startSlot + 1; int mergeEnd = endSlot; if (mergeStart < mergeEnd) { MergeBitMapUtil.readAndMergeBitmaps( bitmapMergeReader, bitmap, mergeStart, mergeEnd); } } } return new BitMap(bitmap, packCount); } private int searchEntry(long numValue, UTF8String strValue) throws IOException { int entryId; switch (dataType) { case ColumnType.INT: entryId = BinarySearch.binarySearchInts(dictReader, dictEntryCount, (int) numValue); break; case ColumnType.LONG: entryId = BinarySearch.binarySearchLongs(dictReader, dictEntryCount, numValue); break; case ColumnType.FLOAT: entryId = BinarySearch.binarySearchFloats(dictReader, dictEntryCount, (float) Double.longBitsToDouble(numValue)); break; case ColumnType.DOUBLE: entryId = BinarySearch.binarySearchDoubles(dictReader, dictEntryCount, Double.longBitsToDouble(numValue)); break; case ColumnType.STRING: StringsStructOnByteBufferReader strings = new StringsStructOnByteBufferReader(dictEntryCount, dictReader); byte[] valBuffer = new byte[ColumnType.MAX_STRING_UTF8_SIZE]; entryId = BinarySearch.binarySearchStrings( strings, strValue.getBaseObject(), strValue.getBaseOffset(), strValue.numBytes(), valBuffer); break; default: throw new RuntimeException("Illegal dataType: " + dataType); } return entryId; } @Override public BitMap equal(Column column, long numValue, UTF8String strValue, boolean isNot) throws IOException { assert packCount == column.packCount(); int entryId = searchEntry(numValue, strValue); if (entryId < 0) { return isNot ? BitMap.ALL : BitMap.NONE; } else if (dictEntryCount == 1) { return isNot ? BitMap.NONE : BitMap.ALL; } if (isNot) { // "not equal" can not be handled by this index. return BitMap.ALL; } return readMergedBitMap(entryId, entryId + 1); } @Override public BitMap in(Column column, long[] numValues, UTF8String[] strValues, boolean isNot) throws IOException { int inCount = ColumnType.isNumber(dataType) ? numValues.length : strValues.length; int[] entryIds = new int[inCount]; int entryIdCount = 0; for (int i = 0; i < inCount; i++) { long numValue = numValues == null ? 0 : numValues[i]; UTF8String strValue = strValues == null ? null : strValues[i]; int entryId = searchEntry(numValue, strValue); if (entryId >= 0) { entryIds[entryIdCount++] = entryId; } } if (entryIdCount == 0) { return isNot ? BitMap.ALL : BitMap.NONE; } else if (dictEntryCount == 1) { return isNot ? BitMap.NONE : BitMap.ALL; } if (isNot) { // "not in" can not be handled by this index. return BitMap.ALL; } DirectBitMap bitmap = new DirectBitMap(packCount); MergeBitMapUtil.readAndMergeBitmaps(bitmapReader, bitmap, Trick.subArray(entryIds, 0, entryIdCount)); return new BitMap(bitmap, packCount); } private BitMap greater(int entryId, boolean acceptEqual, boolean isNot) throws IOException { // TODO optimize for acceptEqual int split; if (entryId >= 0) { split = entryId; } else { split = -entryId - 1; } Preconditions.checkState(split >= 0 && split <= dictEntryCount); int start = 0, end = 0; if (!isNot) { // greater if (split == 0) { return BitMap.ALL; } else if (split == dictEntryCount) { return BitMap.NONE; } else { start = split; end = dictEntryCount; } } else { // less if (split == dictEntryCount) { return BitMap.ALL; } else { start = 0; end = entryId >= 0 ? entryId + 1 : -entryId - 1; } } return readMergedBitMap(start, end); } @Override public BitMap greater(Column column, long numValue, UTF8String strValue, boolean acceptEqual, boolean isNot) throws IOException { int entryId = searchEntry(numValue, strValue); return greater(entryId, acceptEqual, isNot); } @Override public BitMap between(Column column, long numValue1, long numValue2, UTF8String strValue1, UTF8String strValue2, boolean isNot) throws IOException { int entryId1 = searchEntry(numValue1, strValue1); int entryId2 = searchEntry(numValue2, strValue2); if (!isNot) { // between BitMap bitmap1 = greater(entryId1, true, false); BitMap bitmap2 = greater(entryId2, true, true); return BitMap.and_free(bitmap1, bitmap2); } else { // not between BitMap bitmap1 = greater(entryId1, false, true); BitMap bitmap2 = greater(entryId2, false, false); return BitMap.or_free(bitmap1, bitmap2); } } @Override public BitMap like(Column column, long numValue, UTF8String strValue, boolean isNot) throws IOException { // TODO optimize me! return BitMap.ALL; } @Override public void close() throws IOException { if (dictReader != null) { dictReader.close(); dictReader = null; bitmapReader.close(); bitmapReader = null; } } public static class Cache implements OuterIndex.Cache { private final Cleanable cleanable; private final int entryCount; private final int packCount; private final int bitmapMergeSlotCount; private final long entryFileSize; private final long entryOffsetFileSize; private final long bitmapFileSize; private final Path entryFilePath; private final Path entryOffsetFilePath; // For strings private final Path bitmapFilePath; public Cache(int entryCount, int packCount, int bitmapMergeSlotCount, long entryFileSize, long entryOffsetFileSize, long bitmapFileSize, Path entryFilePath, Path entryOffsetFilePath, Path bitmapFilePath, Cleanable cleanable) { this.cleanable = cleanable; this.entryCount = entryCount; this.packCount = packCount; this.bitmapMergeSlotCount = bitmapMergeSlotCount; this.entryFileSize = entryFileSize; this.entryOffsetFileSize = entryOffsetFileSize; this.bitmapFileSize = bitmapFileSize; this.entryFilePath = entryFilePath; this.entryOffsetFilePath = entryOffsetFilePath; this.bitmapFilePath = bitmapFilePath; } @Override public void close() throws IOException { if (cleanable != null) { cleanable.clean(); } } @Override public long size() throws IOException { return METADATA_SIZE + entryFileSize + entryOffsetFileSize + bitmapFileSize; } @Override public int write(ByteBufferWriter writer) throws IOException { FileChannel entryOffsetFile = null; FileChannel entryFile = null; FileChannel bitmapFile = null; try { long totalSize = 0; // First mark who we are. ByteBuffer buffer = ByteBufferUtil.allocateHeap(METADATA_SIZE); buffer.putInt(MARK); buffer.putInt(entryCount); buffer.putInt(packCount); buffer.putInt(bitmapMergeSlotCount); buffer.putLong(entryOffsetFileSize + entryFileSize); buffer.putLong(bitmapFileSize); buffer.flip(); writer.write(buffer); totalSize += METADATA_SIZE; // Move in data. if (entryOffsetFilePath != null) { entryOffsetFile = FileChannel.open(entryOffsetFilePath, StandardOpenOption.READ); writer.write(entryOffsetFile.map(FileChannel.MapMode.READ_ONLY, 0, entryOffsetFile.size())); totalSize += entryOffsetFile.size(); } entryFile = FileChannel.open(entryFilePath, StandardOpenOption.READ); writer.write(entryFile.map(FileChannel.MapMode.READ_ONLY, 0, entryFile.size())); totalSize += entryFile.size(); bitmapFile = FileChannel.open(bitmapFilePath, StandardOpenOption.READ); writer.write(bitmapFile.map(FileChannel.MapMode.READ_ONLY, 0, bitmapFile.size())); totalSize += bitmapFile.size(); assert totalSize == this.size(); } finally { if (entryFile != null) { IOUtil.closeQuietly(entryFile); entryFile = null; } if (entryOffsetFile != null) { IOUtil.closeQuietly(entryOffsetFile); entryOffsetFile = null; } if (bitmapFile != null) { IOUtil.closeQuietly(bitmapFile); bitmapFile = null; } } return 0; } } public static Cache create(int version, SegmentMode mode, StorageColumn column) throws IOException { DataPack[] dataPacks = new DataPack[column.packCount()]; DictStruct[] structs = new DictStruct[column.packCount()]; DictMerge dictMerge = new DictMerge(); try { for (int packId = 0; packId < column.packCount(); packId++) { DataPackNode dpn = column.dpn(packId); if (!dpn.isDictEncoded()) { return null; } DataPack pack = new DataPack(null, column.loadPack(dpn), dpn); dataPacks[packId] = pack; structs[packId] = pack.dictStruct(column.dataType(), dpn); } dictMerge.merge(column.dataType(), structs); return new Cache( dictMerge.entryCount(), column.packCount(), dictMerge.bitmapMergeSlotCount(), dictMerge.entryFileSize(), dictMerge.entryOffsetFileSize(), dictMerge.bitmapFileSize(), dictMerge.entryFilePath(), dictMerge.entryOffsetFilePath(), dictMerge.bitmapFilePath(), dictMerge); } finally { for (DataPack dataPack : dataPacks) { if (dataPack != null) { dataPack.free(); } } dictMerge.free(); } } }
8,219
393
<filename>OtrosLogViewer-app/src/main/java/pl/otros/logview/logging/GuiAppender.java /* * Copyright 2012 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package pl.otros.logview.logging; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.AppenderBase; import org.apache.commons.configuration.DataConfiguration; import org.apache.commons.lang.StringUtils; import pl.otros.logview.BufferingLogDataCollectorProxy; import pl.otros.logview.api.model.LogDataBuilder; import pl.otros.logview.api.model.LogDataCollector; import pl.otros.logview.api.store.AbstractMemoryLogStore; import pl.otros.logview.api.store.CachedLogStore; import pl.otros.logview.api.store.MemoryLogDataStore; import pl.otros.logview.api.store.SynchronizedLogDataStore; import pl.otros.logview.api.store.file.FileLogDataStore; import pl.otros.logview.gui.message.update.FormatMessageDialogWorker; import pl.otros.logview.gui.message.update.LogDataFormatter; import pl.otros.logview.gui.message.update.MessageDetailListener; import pl.otros.logview.gui.message.update.MessageUpdateUtils; import pl.otros.logview.gui.renderers.TableMarkDecoratorRenderer; import pl.otros.logview.importer.logback.LogbackUtil; public class GuiAppender extends AppenderBase<ILoggingEvent> { private static BufferingLogDataCollectorProxy bufferingLogDataCollectorProxy; private static final String[] ignoreClassesList = {// MemoryLogDataStore.class.getName(),// FileLogDataStore.class.getName(),// AbstractMemoryLogStore.class.getName(),// CachedLogStore.class.getName(),// SynchronizedLogDataStore.class.getName(),// MessageDetailListener.class.getName(),// TableMarkDecoratorRenderer.class.getName(),// FormatMessageDialogWorker.class.getName(),// LogDataFormatter.class.getName(),// MessageUpdateUtils.class.getName()// }; @Override protected void append(ILoggingEvent eventObject) { if (bufferingLogDataCollectorProxy != null && !isIgnoringLogRecord(eventObject)) { final LogDataBuilder builder = LogbackUtil.translate(eventObject); builder.withFile("Olv-internal"); bufferingLogDataCollectorProxy.add(builder.build()); } } protected boolean isIgnoringLogRecord(ILoggingEvent event) { if (event.getLevel().levelInt < Level.INFO.levelInt) { if (event.hasCallerData() && event.getCallerData().length > 0) { for (String ignoreClass : ignoreClassesList) { if (StringUtils.equals(ignoreClass, event.getCallerData()[0].getClassName())) { return true; } } } } return false; } public static void start(LogDataCollector dataCollector, DataConfiguration configuration) { bufferingLogDataCollectorProxy = new BufferingLogDataCollectorProxy(dataCollector, 5000, configuration); } public static void stopAppender() { bufferingLogDataCollectorProxy.stop(); bufferingLogDataCollectorProxy = null; } }
1,172
3,269
<gh_stars>1000+ // Time: O(m + n) // Space: O(1) class Solution { public: int countNegatives(vector<vector<int>>& grid) { int result = 0, c = grid[0].size() - 1; for (const auto& row : grid) { while (c >= 0 && row[c] < 0) { --c; } result += grid[0].size() - 1 - c; } return result; } };
206
883
<gh_stars>100-1000 { "plugin-data": { "name": "Contatore visite", "description": "Mostra il numero di visite o di visitatori unici nella barra laterale del tuo sito." } }
72
602
<reponame>CorfuDB/CORFU<filename>test/src/test/java/org/corfudb/runtime/view/stream/OpaqueStreamTest.java package org.corfudb.runtime.view.stream; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.corfudb.protocols.service.CorfuProtocolLogReplication.extractOpaqueEntries; import static org.corfudb.protocols.service.CorfuProtocolLogReplication.generatePayload; import com.google.common.reflect.TypeToken; import java.util.List; import java.util.UUID; import java.util.stream.Collectors; import java.util.stream.Stream; import lombok.extern.slf4j.Slf4j; import org.assertj.core.api.Assertions; import org.corfudb.CustomSerializer; import org.corfudb.protocols.logprotocol.OpaqueEntry; import org.corfudb.protocols.service.CorfuProtocolLogReplication; import org.corfudb.protocols.wireprotocol.Token; import org.corfudb.runtime.CorfuRuntime; import org.corfudb.runtime.MultiCheckpointWriter; import org.corfudb.runtime.collections.CorfuTable; import org.corfudb.runtime.exceptions.SerializerException; import org.corfudb.runtime.view.AbstractViewTest; import org.corfudb.util.serializer.ISerializer; import org.corfudb.util.serializer.Serializers; import org.junit.Test; @Slf4j public class OpaqueStreamTest extends AbstractViewTest { @Test public void testMagicByte() { CorfuRuntime rt = getDefaultRuntime(); ISerializer customSerializer = new CustomSerializer((byte) (Serializers.SYSTEM_SERIALIZERS_COUNT + 2)); rt.getSerializers().registerSerializer(customSerializer); UUID streamId = CorfuRuntime.getStreamID("stream1"); CorfuTable<Integer, Integer> map = rt.getObjectsView() .build() .setStreamID(streamId) .setTypeToken(new TypeToken<CorfuTable<Integer, Integer>>() {}) .setSerializer(customSerializer) .open() ; rt.getObjectsView().TXBegin(); final int key1 = 1; final int key2 = 2; final int key3 = 3; map.put(key1, key1); map.put(key2, key2); map.put(key3, key3); rt.getObjectsView().TXEnd(); rt.getSerializers().removeSerializer(customSerializer); CorfuRuntime rt2 = getNewRuntime(getDefaultNode()).connect(); IStreamView sv = rt2.getStreamsView().get(streamId); OpaqueStream opaqueStream = new OpaqueStream(sv); final long snapshot = 100; Stream<OpaqueEntry> stream = opaqueStream.streamUpTo(snapshot); stream.forEach(entry -> { log.debug(entry.getVersion() + " " + entry.getEntries()); }); } /** * Ensure that {@link CorfuProtocolLogReplication#extractOpaqueEntries} and * {@link CorfuProtocolLogReplication#generatePayload} are inverse of one another. */ @Test public void extractAndGenerate() { CorfuRuntime runtime = getDefaultRuntime(); ISerializer customSerializer = new CustomSerializer((byte) (Serializers.SYSTEM_SERIALIZERS_COUNT + 2)); runtime.getSerializers().registerSerializer(customSerializer); UUID streamId = UUID.randomUUID(); CorfuTable<Integer, Integer> map = runtime.getObjectsView() .build() .setStreamID(streamId) .setTypeToken(new TypeToken<CorfuTable<Integer, Integer>>() {}) .setSerializer(customSerializer) .open() ; final int entryCount = 3; runtime.getObjectsView().TXBegin(); for (int key = 0; key < entryCount; key++) { map.put(key, key); } runtime.getObjectsView().TXEnd(); runtime.getSerializers().removeSerializer(customSerializer); CorfuRuntime newRuntime = getNewRuntime(getDefaultNode()).connect(); IStreamView streamView = newRuntime.getStreamsView().get(streamId); OpaqueStream opaqueStream = new OpaqueStream(streamView); List<OpaqueEntry> entries = opaqueStream.streamUpTo(Integer.MAX_VALUE).collect(Collectors.toList()); Assertions.assertThat(extractOpaqueEntries(generatePayload(entries)).size()).isEqualTo(entries.size()); } @Test public void testBasicStreaming() { CorfuRuntime rt = getDefaultRuntime(); ISerializer customSerializer = new CustomSerializer((byte) (Serializers.SYSTEM_SERIALIZERS_COUNT + 2)); rt.getSerializers().registerSerializer(customSerializer); UUID streamId = CorfuRuntime.getStreamID("stream1"); CorfuTable<Integer, Integer> map = rt.getObjectsView() .build() .setStreamID(streamId) .setTypeToken(new TypeToken<CorfuTable<Integer, Integer>>() {}) .setSerializer(customSerializer) .open() ; final int key1 = 1; final int key2 = 2; final int key3 = 3; map.put(key1, key1); map.put(key2, key2); map.put(key3, key3); MultiCheckpointWriter mcw = new MultiCheckpointWriter(); mcw.addMap(map); Token token = mcw.appendCheckpoints(rt, "baah"); rt.getAddressSpaceView().prefixTrim(token); rt.getSerializers().removeSerializer(customSerializer); CorfuRuntime rt2 = getNewRuntime(getDefaultNode()).connect(); IStreamView sv = rt2.getStreamsView().get(streamId); OpaqueStream opaqueStream = new OpaqueStream(sv); final long snapshot = 100; Stream<OpaqueEntry> stream = opaqueStream.streamUpTo(snapshot); stream.forEach(entry -> { log.debug(entry.getVersion() + " " + entry.getEntries()); }); CorfuRuntime rt3 = getNewRuntime(getDefaultNode()).connect(); CorfuTable<Integer, Integer> map2 = rt3.getObjectsView() .build() .setStreamID(streamId) .setTypeToken(new TypeToken<CorfuTable<Integer, Integer>>() {}) .open() ; assertThatThrownBy(() -> map2.size()).isInstanceOf(SerializerException.class); } }
2,521
5,813
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.client.indexing; import com.google.common.collect.ImmutableList; import org.apache.druid.java.util.common.DateTimes; import org.apache.druid.java.util.common.Intervals; import org.apache.druid.java.util.common.granularity.Granularities; import org.apache.druid.segment.IndexIO; import org.apache.druid.timeline.DataSegment; import org.apache.druid.timeline.partition.NoneShardSpec; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.HashMap; public class ClientCompactionIntervalSpecTest { private final DataSegment dataSegment1 = new DataSegment( "test", Intervals.of("2015-04-11/2015-04-12"), DateTimes.nowUtc().toString(), new HashMap<>(), new ArrayList<>(), new ArrayList<>(), NoneShardSpec.instance(), IndexIO.CURRENT_VERSION_ID, 11 ); private final DataSegment dataSegment2 = new DataSegment( "test", Intervals.of("2015-04-12/2015-04-14"), DateTimes.nowUtc().toString(), new HashMap<>(), new ArrayList<>(), new ArrayList<>(), NoneShardSpec.instance(), IndexIO.CURRENT_VERSION_ID, 11 ); private final DataSegment dataSegment3 = new DataSegment( "test", Intervals.of("2015-02-12/2015-03-13"), DateTimes.nowUtc().toString(), new HashMap<>(), new ArrayList<>(), new ArrayList<>(), NoneShardSpec.instance(), IndexIO.CURRENT_VERSION_ID, 11 ); @Test public void testFromSegmentWithNoSegmentGranularity() { // The umbrella interval of segments is 2015-02-12/2015-04-14 ClientCompactionIntervalSpec actual = ClientCompactionIntervalSpec.fromSegments(ImmutableList.of(dataSegment1, dataSegment2, dataSegment3), null); Assert.assertEquals(Intervals.of("2015-02-12/2015-04-14"), actual.getInterval()); } @Test public void testFromSegmentWitSegmentGranularitySameAsSegment() { // The umbrella interval of segments is 2015-04-11/2015-04-12 ClientCompactionIntervalSpec actual = ClientCompactionIntervalSpec.fromSegments(ImmutableList.of(dataSegment1), Granularities.DAY); Assert.assertEquals(Intervals.of("2015-04-11/2015-04-12"), actual.getInterval()); } @Test public void testFromSegmentWithCoarserSegmentGranularity() { // The umbrella interval of segments is 2015-02-12/2015-04-14 ClientCompactionIntervalSpec actual = ClientCompactionIntervalSpec.fromSegments(ImmutableList.of(dataSegment1, dataSegment2, dataSegment3), Granularities.YEAR); // The compaction interval should be expanded to start of the year and end of the year to cover the segmentGranularity Assert.assertEquals(Intervals.of("2015-01-01/2016-01-01"), actual.getInterval()); } @Test public void testFromSegmentWithFinerSegmentGranularityAndUmbrellaIntervalAlign() { // The umbrella interval of segments is 2015-02-12/2015-04-14 ClientCompactionIntervalSpec actual = ClientCompactionIntervalSpec.fromSegments(ImmutableList.of(dataSegment1, dataSegment2, dataSegment3), Granularities.DAY); // The segmentGranularity of DAY align with the umbrella interval (umbrella interval can be evenly divide into the segmentGranularity) Assert.assertEquals(Intervals.of("2015-02-12/2015-04-14"), actual.getInterval()); } @Test public void testFromSegmentWithFinerSegmentGranularityAndUmbrellaIntervalNotAlign() { // The umbrella interval of segments is 2015-02-12/2015-04-14 ClientCompactionIntervalSpec actual = ClientCompactionIntervalSpec.fromSegments(ImmutableList.of(dataSegment1, dataSegment2, dataSegment3), Granularities.WEEK); // The segmentGranularity of WEEK does not align with the umbrella interval (umbrella interval cannot be evenly divide into the segmentGranularity) // Hence the compaction interval is modified to aling with the segmentGranularity Assert.assertEquals(Intervals.of("2015-02-09/2015-04-20"), actual.getInterval()); } }
1,603
348
<gh_stars>100-1000 {"nom":"Louresse-Rochemenier","circ":"4ème circonscription","dpt":"Maine-et-Loire","inscrits":584,"abs":285,"votants":299,"blancs":10,"nuls":3,"exp":286,"res":[{"nuance":"REM","nom":"M<NAME>","voix":101},{"nuance":"UDI","nom":"M. <NAME>","voix":64},{"nuance":"FN","nom":"<NAME>","voix":38},{"nuance":"DVD","nom":"M. <NAME>","voix":16},{"nuance":"FI","nom":"Mme <NAME>","voix":14},{"nuance":"ECO","nom":"Mme <NAME>","voix":13},{"nuance":"DIV","nom":"Mme <NAME>","voix":10},{"nuance":"SOC","nom":"Mme <NAME>","voix":10},{"nuance":"DLF","nom":"M. <NAME>","voix":9},{"nuance":"DVD","nom":"M. <NAME>","voix":8},{"nuance":"COM","nom":"Mme <NAME>","voix":2},{"nuance":"DIV","nom":"M. <NAME>","voix":1},{"nuance":"EXG","nom":"M. <NAME>","voix":0}]}
311
1,590
<reponame>libc16/azure-rest-api-specs<filename>specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-02-01/examples/GenerateCertificate.json { "parameters": { "api-version": "2021-02-01", "subscriptionId": "<KEY>", "resourceGroupName": "GroupForEdgeAutomation", "deviceName": "testedgedevice", "accept-language": [ "en-US" ] }, "responses": { "200": { "body": { "publicKey": "<KEY> "privateKey": null, "expiryTimeInUTC": "2020-11-22T05:06:20.000Z" } } } }
259
310
<filename>gear/software/g/galliumos.json { "name": "GalliumOS", "description": "A lightweight Linux distro for ChromeOS devices.", "url": "https://galliumos.org/" }
59
11,024
<reponame>PierreZ/foundationdb /* * BackupToDBCorrectness.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "fdbrpc/simulator.h" #include "fdbclient/BackupAgent.actor.h" #include "fdbclient/ClusterConnectionMemoryRecord.h" #include "fdbserver/workloads/workloads.actor.h" #include "fdbserver/workloads/BulkSetup.actor.h" #include "flow/actorcompiler.h" // This must be the last #include. // A workload which test the correctness of backup and restore process. The // database must be idle after the restore completes, and this workload checks // that the restore range does not change post restore. struct BackupToDBCorrectnessWorkload : TestWorkload { double backupAfter, abortAndRestartAfter, restoreAfter; double backupStartAt, restoreStartAfterBackupFinished, stopDifferentialAfter; Key backupTag, restoreTag; Key backupPrefix, extraPrefix; bool beforePrefix; int backupRangesCount, backupRangeLengthMax; bool differentialBackup, performRestore, agentRequest; Standalone<VectorRef<KeyRangeRef>> backupRanges; static int drAgentRequests; Database extraDB; LockDB locked{ false }; bool shareLogRange; UID destUid; BackupToDBCorrectnessWorkload(WorkloadContext const& wcx) : TestWorkload(wcx) { locked.set(sharedRandomNumber % 2); backupAfter = getOption(options, LiteralStringRef("backupAfter"), 10.0); restoreAfter = getOption(options, LiteralStringRef("restoreAfter"), 35.0); performRestore = getOption(options, LiteralStringRef("performRestore"), true); backupTag = getOption(options, LiteralStringRef("backupTag"), BackupAgentBase::getDefaultTag()); restoreTag = getOption(options, LiteralStringRef("restoreTag"), LiteralStringRef("restore")); backupPrefix = getOption(options, LiteralStringRef("backupPrefix"), StringRef()); backupRangesCount = getOption(options, LiteralStringRef("backupRangesCount"), 5); // tests can hangs if set higher than 1 + BACKUP_MAP_KEY_LOWER_LIMIT backupRangeLengthMax = getOption(options, LiteralStringRef("backupRangeLengthMax"), 1); abortAndRestartAfter = getOption(options, LiteralStringRef("abortAndRestartAfter"), (!locked && deterministicRandom()->random01() < 0.5) ? deterministicRandom()->random01() * (restoreAfter - backupAfter) + backupAfter : 0.0); differentialBackup = getOption( options, LiteralStringRef("differentialBackup"), deterministicRandom()->random01() < 0.5 ? true : false); stopDifferentialAfter = getOption(options, LiteralStringRef("stopDifferentialAfter"), differentialBackup ? deterministicRandom()->random01() * (restoreAfter - std::max(abortAndRestartAfter, backupAfter)) + std::max(abortAndRestartAfter, backupAfter) : 0.0); agentRequest = getOption(options, LiteralStringRef("simDrAgents"), true); shareLogRange = getOption(options, LiteralStringRef("shareLogRange"), false); // Use sharedRandomNumber if shareLogRange is true so that we can ensure backup and DR both backup the same // range beforePrefix = shareLogRange ? (sharedRandomNumber & 1) : (deterministicRandom()->random01() < 0.5); if (beforePrefix) { extraPrefix = backupPrefix.withPrefix(LiteralStringRef("\xfe\xff\xfe")); backupPrefix = backupPrefix.withPrefix(LiteralStringRef("\xfe\xff\xff")); } else { extraPrefix = backupPrefix.withPrefix(LiteralStringRef("\x00\x00\x01")); backupPrefix = backupPrefix.withPrefix(LiteralStringRef("\x00\x00\00")); } ASSERT(backupPrefix != StringRef()); KeyRef beginRange; KeyRef endRange; UID randomID = nondeterministicRandom()->randomUniqueID(); if (shareLogRange) { if (beforePrefix) backupRanges.push_back_deep(backupRanges.arena(), KeyRangeRef(normalKeys.begin, LiteralStringRef("\xfe\xff\xfe"))); else backupRanges.push_back_deep(backupRanges.arena(), KeyRangeRef(strinc(LiteralStringRef("\x00\x00\x01")), normalKeys.end)); } else if (backupRangesCount <= 0) { if (beforePrefix) backupRanges.push_back_deep(backupRanges.arena(), KeyRangeRef(normalKeys.begin, std::min(backupPrefix, extraPrefix))); else backupRanges.push_back_deep(backupRanges.arena(), KeyRangeRef(strinc(std::max(backupPrefix, extraPrefix)), normalKeys.end)); } else { // Add backup ranges for (int rangeLoop = 0; rangeLoop < backupRangesCount; rangeLoop++) { // Get a random range of a random sizes beginRange = KeyRef(backupRanges.arena(), deterministicRandom()->randomAlphaNumeric( deterministicRandom()->randomInt(1, backupRangeLengthMax + 1))); endRange = KeyRef(backupRanges.arena(), deterministicRandom()->randomAlphaNumeric( deterministicRandom()->randomInt(1, backupRangeLengthMax + 1))); // Add the range to the array backupRanges.push_back_deep(backupRanges.arena(), (beginRange < endRange) ? KeyRangeRef(beginRange, endRange) : KeyRangeRef(endRange, beginRange)); // Track the added range TraceEvent("BackupCorrectness_Range", randomID) .detail("RangeBegin", (beginRange < endRange) ? printable(beginRange) : printable(endRange)) .detail("RangeEnd", (beginRange < endRange) ? printable(endRange) : printable(beginRange)); } } auto extraFile = makeReference<ClusterConnectionMemoryRecord>(*g_simulator.extraDB); extraDB = Database::createDatabase(extraFile, -1); TraceEvent("BARW_Start").detail("Locked", locked); } std::string description() const override { return "BackupToDBCorrectness"; } Future<Void> setup(Database const& cx) override { return Void(); } Future<Void> start(Database const& cx) override { if (clientId != 0) return Void(); return _start(cx, this); } Future<bool> check(Database const& cx) override { return true; } void getMetrics(std::vector<PerfMetric>& m) override {} // Reads a series of key ranges and returns each range. ACTOR static Future<std::vector<RangeResult>> readRanges(Database cx, Standalone<VectorRef<KeyRangeRef>> ranges, StringRef removePrefix) { loop { state Transaction tr(cx); try { state std::vector<Future<RangeResult>> results; for (auto& range : ranges) { results.push_back(tr.getRange(range.removePrefix(removePrefix), 1000)); } wait(waitForAll(results)); std::vector<RangeResult> ret; for (auto result : results) { ret.push_back(result.get()); } return ret; } catch (Error& e) { wait(tr.onError(e)); } } } ACTOR static Future<Void> diffRanges(Standalone<VectorRef<KeyRangeRef>> ranges, StringRef backupPrefix, Database src, Database dest) { state int rangeIndex; for (rangeIndex = 0; rangeIndex < ranges.size(); ++rangeIndex) { state KeyRangeRef range = ranges[rangeIndex]; state Key begin = range.begin; loop { state Transaction tr(src); state Transaction tr2(dest); try { loop { state Future<RangeResult> srcFuture = tr.getRange(KeyRangeRef(begin, range.end), 1000); state Future<RangeResult> bkpFuture = tr2.getRange(KeyRangeRef(begin, range.end).withPrefix(backupPrefix), 1000); wait(success(srcFuture) && success(bkpFuture)); auto src = srcFuture.get().begin(); auto bkp = bkpFuture.get().begin(); while (src != srcFuture.get().end() && bkp != bkpFuture.get().end()) { KeyRef bkpKey = bkp->key.substr(backupPrefix.size()); if (src->key != bkpKey && src->value != bkp->value) { TraceEvent(SevError, "MismatchKeyAndValue") .detail("SrcKey", printable(src->key)) .detail("SrcVal", printable(src->value)) .detail("BkpKey", printable(bkpKey)) .detail("BkpVal", printable(bkp->value)); } else if (src->key != bkpKey) { TraceEvent(SevError, "MismatchKey") .detail("SrcKey", printable(src->key)) .detail("SrcVal", printable(src->value)) .detail("BkpKey", printable(bkpKey)) .detail("BkpVal", printable(bkp->value)); } else if (src->value != bkp->value) { TraceEvent(SevError, "MismatchValue") .detail("SrcKey", printable(src->key)) .detail("SrcVal", printable(src->value)) .detail("BkpKey", printable(bkpKey)) .detail("BkpVal", printable(bkp->value)); } begin = std::min(src->key, bkpKey); if (src->key == bkpKey) { ++src; ++bkp; } else if (src->key < bkpKey) { ++src; } else { ++bkp; } } while (src != srcFuture.get().end() && !bkpFuture.get().more) { TraceEvent(SevError, "MissingBkpKey") .detail("SrcKey", printable(src->key)) .detail("SrcVal", printable(src->value)); begin = src->key; ++src; } while (bkp != bkpFuture.get().end() && !srcFuture.get().more) { TraceEvent(SevError, "MissingSrcKey") .detail("BkpKey", printable(bkp->key.substr(backupPrefix.size()))) .detail("BkpVal", printable(bkp->value)); begin = bkp->key; ++bkp; } if (!srcFuture.get().more && !bkpFuture.get().more) { break; } begin = keyAfter(begin); } break; } catch (Error& e) { wait(tr.onError(e)); } } } return Void(); } ACTOR static Future<Void> doBackup(BackupToDBCorrectnessWorkload* self, double startDelay, DatabaseBackupAgent* backupAgent, Database cx, Key tag, Standalone<VectorRef<KeyRangeRef>> backupRanges, double stopDifferentialDelay, Promise<Void> submitted) { state UID randomID = nondeterministicRandom()->randomUniqueID(); state Future<Void> stopDifferentialFuture = delay(stopDifferentialDelay); wait(delay(startDelay)); if (startDelay || BUGGIFY) { TraceEvent("BARW_DoBackupAbortBackup1", randomID) .detail("Tag", printable(tag)) .detail("StartDelay", startDelay); try { wait(backupAgent->abortBackup(cx, tag)); } catch (Error& e) { TraceEvent("BARW_DoBackupAbortBackupException", randomID).error(e).detail("Tag", printable(tag)); if (e.code() != error_code_backup_unneeded) throw; } wait(backupAgent->unlockBackup(cx, tag)); } // In prior versions of submitBackup, we have seen a rare bug where // submitBackup results in a commit_unknown_result, causing the backup // to retry when in fact it had successfully completed. On the retry, // the range being backed up into was checked to make sure it was // empty, and this check was failing because the backup had succeeded // the first time. The old solution for this was to clear the backup // range in the same transaction as the backup, but now we have // switched to passing a "pre-backup action" to either verify the range // being backed up into is empty, or clearing it first. TraceEvent("BARW_DoBackupClearAndSubmitBackup", randomID) .detail("Tag", printable(tag)) .detail("StopWhenDone", stopDifferentialDelay ? "False" : "True"); try { try { wait(backupAgent->submitBackup(cx, tag, backupRanges, StopWhenDone{ !stopDifferentialDelay }, self->backupPrefix, StringRef(), LockDB{ self->locked }, DatabaseBackupAgent::PreBackupAction::CLEAR)); } catch (Error& e) { TraceEvent("BARW_SubmitBackup1Exception", randomID).error(e); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) { throw; } } } catch (Error& e) { TraceEvent("BARW_DoBackupSubmitBackupException", randomID).error(e).detail("Tag", printable(tag)); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) { throw e; } } submitted.send(Void()); state UID logUid = wait(backupAgent->getLogUid(cx, tag)); // Stop the differential backup, if enabled if (stopDifferentialDelay) { TEST(!stopDifferentialFuture.isReady()); // Restore starts at specified time - stopDifferential not ready wait(stopDifferentialFuture); TraceEvent("BARW_DoBackupWaitToDiscontinue", randomID) .detail("Tag", printable(tag)) .detail("DifferentialAfter", stopDifferentialDelay); state bool aborted = false; try { if (BUGGIFY) { TraceEvent("BARW_DoBackupWaitForRestorable", randomID).detail("Tag", printable(tag)); // Wait until the backup is in a restorable state state EBackupState resultWait = wait(backupAgent->waitBackup(cx, tag, StopWhenDone::False)); TraceEvent("BARW_LastBackupFolder", randomID) .detail("BackupTag", printable(tag)) .detail("LogUid", logUid) .detail("WaitStatus", resultWait); // Abort the backup, if not the first backup because the second backup may have aborted the backup // by now if (startDelay) { TraceEvent("BARW_DoBackupAbortBackup2", randomID) .detail("Tag", printable(tag)) .detail("WaitStatus", resultWait); aborted = true; wait(backupAgent->abortBackup(cx, tag)); } else { TraceEvent("BARW_DoBackupDiscontinueBackup", randomID) .detail("Tag", printable(tag)) .detail("DifferentialAfter", stopDifferentialDelay); wait(backupAgent->discontinueBackup(cx, tag)); } } else { TraceEvent("BARW_DoBackupDiscontinueBackup", randomID) .detail("Tag", printable(tag)) .detail("DifferentialAfter", stopDifferentialDelay); wait(backupAgent->discontinueBackup(cx, tag)); } } catch (Error& e) { TraceEvent("BARW_DoBackupDiscontinueBackupException", randomID).error(e).detail("Tag", printable(tag)); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) throw; } if (aborted) { wait(backupAgent->unlockBackup(cx, tag)); } } // Wait for the backup to complete TraceEvent("BARW_DoBackupWaitBackup", randomID).detail("Tag", printable(tag)); UID _destUid = wait(backupAgent->getDestUid(cx, logUid)); self->destUid = _destUid; state EBackupState statusValue = wait(backupAgent->waitBackup(cx, tag, StopWhenDone::True)); wait(backupAgent->unlockBackup(cx, tag)); state std::string statusText; std::string _statusText = wait(backupAgent->getStatus(cx, 5, tag)); statusText = _statusText; // Can we validate anything about status? TraceEvent("BARW_DoBackupComplete", randomID) .detail("Tag", printable(tag)) .detail("Status", statusText) .detail("StatusValue", statusValue); return Void(); } ACTOR static Future<Void> checkData(Database cx, UID logUid, UID destUid, UID randomID, Key tag, DatabaseBackupAgent* backupAgent, bool shareLogRange) { state Key backupAgentKey = uidPrefixKey(logRangesRange.begin, logUid); state Key backupLogValuesKey = uidPrefixKey(backupLogKeys.begin, destUid); state Key backupLatestVersionsPath = uidPrefixKey(backupLatestVersionsPrefix, destUid); state Key backupLatestVersionsKey = uidPrefixKey(backupLatestVersionsPath, logUid); state int displaySystemKeys = 0; // Ensure that there is no left over key within the backup subspace loop { state Reference<ReadYourWritesTransaction> tr(new ReadYourWritesTransaction(cx)); TraceEvent("BARW_CheckLeftoverKeys", randomID).detail("BackupTag", printable(tag)); try { tr->setOption(FDBTransactionOptions::ACCESS_SYSTEM_KEYS); tr->setOption(FDBTransactionOptions::LOCK_AWARE); // Check the left over tasks // We have to wait for the list to empty since an abort and get status // can leave extra tasks in the queue TraceEvent("BARW_CheckLeftoverTasks", randomID).detail("BackupTag", printable(tag)); state int64_t taskCount = wait(backupAgent->getTaskCount(tr)); state int waitCycles = 0; if ((taskCount) && false) { TraceEvent("BARW_EndingNonzeroTaskCount", randomID) .detail("BackupTag", printable(tag)) .detail("TaskCount", taskCount) .detail("WaitCycles", waitCycles); printf("EndingNonZeroTasks: %ld\n", (long)taskCount); wait(TaskBucket::debugPrintRange(cx, LiteralStringRef("\xff"), StringRef())); } loop { waitCycles++; TraceEvent("BARW_NonzeroTaskWait", randomID) .detail("BackupTag", printable(tag)) .detail("TaskCount", taskCount) .detail("WaitCycles", waitCycles); printf("%.6f %-10s Wait #%4d for %lld tasks to end\n", now(), randomID.toString().c_str(), waitCycles, (long long)taskCount); wait(delay(5.0)); tr = makeReference<ReadYourWritesTransaction>(cx); int64_t _taskCount = wait(backupAgent->getTaskCount(tr)); taskCount = _taskCount; if (!taskCount) { break; } } if (taskCount) { displaySystemKeys++; TraceEvent(SevError, "BARW_NonzeroTaskCount", randomID) .detail("BackupTag", printable(tag)) .detail("TaskCount", taskCount) .detail("WaitCycles", waitCycles); printf("BackupCorrectnessLeftoverLogTasks: %ld\n", (long)taskCount); } RangeResult agentValues = wait(tr->getRange(KeyRange(KeyRangeRef(backupAgentKey, strinc(backupAgentKey))), 100)); // Error if the system keyspace for the backup tag is not empty if (agentValues.size() > 0) { displaySystemKeys++; printf("BackupCorrectnessLeftoverMutationKeys: (%d) %s\n", agentValues.size(), printable(backupAgentKey).c_str()); TraceEvent(SevError, "BackupCorrectnessLeftoverMutationKeys", randomID) .detail("BackupTag", printable(tag)) .detail("LeftoverKeys", agentValues.size()) .detail("KeySpace", printable(backupAgentKey)); for (auto& s : agentValues) { TraceEvent("BARW_LeftoverKey", randomID) .detail("Key", printable(StringRef(s.key.toString()))) .detail("Value", printable(StringRef(s.value.toString()))); printf(" Key: %-50s Value: %s\n", printable(StringRef(s.key.toString())).c_str(), printable(StringRef(s.value.toString())).c_str()); } } else { printf("No left over backup agent configuration keys\n"); } Optional<Value> latestVersion = wait(tr->get(backupLatestVersionsKey)); if (latestVersion.present()) { TraceEvent(SevError, "BackupCorrectnessLeftoverVersionKey", randomID) .detail("BackupTag", printable(tag)) .detail("Key", backupLatestVersionsKey.printable()) .detail("Value", BinaryReader::fromStringRef<Version>(latestVersion.get(), Unversioned())); } else { printf("No left over backup version key\n"); } RangeResult versions = wait( tr->getRange(KeyRange(KeyRangeRef(backupLatestVersionsPath, strinc(backupLatestVersionsPath))), 1)); if (!shareLogRange || !versions.size()) { RangeResult logValues = wait(tr->getRange(KeyRange(KeyRangeRef(backupLogValuesKey, strinc(backupLogValuesKey))), 100)); // Error if the log/mutation keyspace for the backup tag is not empty if (logValues.size() > 0) { displaySystemKeys++; printf("BackupCorrectnessLeftoverLogKeys: (%d) %s\n", logValues.size(), printable(backupLogValuesKey).c_str()); TraceEvent(SevError, "BackupCorrectnessLeftoverLogKeys", randomID) .detail("BackupTag", printable(tag)) .detail("LeftoverKeys", logValues.size()) .detail("KeySpace", printable(backupLogValuesKey)) .detail("Version", decodeBKMutationLogKey(logValues[0].key).first); for (auto& s : logValues) { TraceEvent("BARW_LeftoverKey", randomID) .detail("Key", printable(StringRef(s.key.toString()))) .detail("Value", printable(StringRef(s.value.toString()))); printf(" Key: %-50s Value: %s\n", printable(StringRef(s.key.toString())).c_str(), printable(StringRef(s.value.toString())).c_str()); } } else { printf("No left over backup log keys\n"); } } break; } catch (Error& e) { TraceEvent("BARW_CheckException", randomID).error(e); wait(tr->onError(e)); } } if (displaySystemKeys) { wait(TaskBucket::debugPrintRange(cx, LiteralStringRef("\xff"), StringRef())); } return Void(); } ACTOR static Future<Void> _start(Database cx, BackupToDBCorrectnessWorkload* self) { state DatabaseBackupAgent backupAgent(cx); state DatabaseBackupAgent restoreTool(self->extraDB); state Future<Void> extraBackup; state bool extraTasks = false; TraceEvent("BARW_Arguments") .detail("BackupTag", printable(self->backupTag)) .detail("BackupAfter", self->backupAfter) .detail("AbortAndRestartAfter", self->abortAndRestartAfter) .detail("DifferentialAfter", self->stopDifferentialAfter); state UID randomID = nondeterministicRandom()->randomUniqueID(); // Increment the backup agent requets if (self->agentRequest) { BackupToDBCorrectnessWorkload::drAgentRequests++; } try { state Future<Void> startRestore = delay(self->restoreAfter); // backup wait(delay(self->backupAfter)); TraceEvent("BARW_DoBackup1", randomID).detail("Tag", printable(self->backupTag)); state Promise<Void> submitted; state Future<Void> b = doBackup(self, 0, &backupAgent, self->extraDB, self->backupTag, self->backupRanges, self->stopDifferentialAfter, submitted); if (self->abortAndRestartAfter) { TraceEvent("BARW_DoBackup2", randomID) .detail("Tag", printable(self->backupTag)) .detail("AbortWait", self->abortAndRestartAfter); wait(submitted.getFuture()); b = b && doBackup(self, self->abortAndRestartAfter, &backupAgent, self->extraDB, self->backupTag, self->backupRanges, self->stopDifferentialAfter, Promise<Void>()); } TraceEvent("BARW_DoBackupWait", randomID) .detail("BackupTag", printable(self->backupTag)) .detail("AbortAndRestartAfter", self->abortAndRestartAfter); wait(b); TraceEvent("BARW_DoBackupDone", randomID) .detail("BackupTag", printable(self->backupTag)) .detail("AbortAndRestartAfter", self->abortAndRestartAfter); state UID logUid = wait(backupAgent.getLogUid(self->extraDB, self->backupTag)); // Occasionally start yet another backup that might still be running when we restore if (!self->locked && BUGGIFY) { TraceEvent("BARW_SubmitBackup2", randomID).detail("Tag", printable(self->backupTag)); try { extraBackup = backupAgent.submitBackup(self->extraDB, self->backupTag, self->backupRanges, StopWhenDone::True, self->extraPrefix, StringRef(), self->locked, DatabaseBackupAgent::PreBackupAction::CLEAR); } catch (Error& e) { TraceEvent("BARW_SubmitBackup2Exception", randomID) .error(e) .detail("BackupTag", printable(self->backupTag)); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) throw; } } TEST(!startRestore.isReady()); // Restore starts at specified time wait(startRestore); if (self->performRestore) { // restore database TraceEvent("BARW_Restore", randomID) .detail("RestoreAfter", self->restoreAfter) .detail("BackupTag", printable(self->restoreTag)); // wait(diffRanges(self->backupRanges, self->backupPrefix, cx, self->extraDB)); state Standalone<VectorRef<KeyRangeRef>> restoreRange; for (auto r : self->backupRanges) { restoreRange.push_back_deep( restoreRange.arena(), KeyRangeRef(r.begin.withPrefix(self->backupPrefix), r.end.withPrefix(self->backupPrefix))); } try { wait(restoreTool.submitBackup(cx, self->restoreTag, restoreRange, StopWhenDone::True, StringRef(), self->backupPrefix, self->locked, DatabaseBackupAgent::PreBackupAction::CLEAR)); } catch (Error& e) { TraceEvent("BARW_DoBackupSubmitBackupException", randomID) .error(e) .detail("Tag", printable(self->restoreTag)); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) throw; } wait(success(restoreTool.waitBackup(cx, self->restoreTag))); wait(restoreTool.unlockBackup(cx, self->restoreTag)); // Make sure no more data is written to the restored range // after the restore completes. state std::vector<RangeResult> res1 = wait(readRanges(cx, restoreRange, self->backupPrefix)); wait(delay(5)); state std::vector<RangeResult> res2 = wait(readRanges(cx, restoreRange, self->backupPrefix)); ASSERT(res1.size() == res2.size()); for (int i = 0; i < res1.size(); ++i) { auto range1 = res1.at(i); auto range2 = res2.at(i); ASSERT(range1.size() == range2.size()); for (int j = 0; j < range1.size(); ++j) { ASSERT(range1[j].key == range2[j].key && range1[j].value == range2[j].value); } } } if (extraBackup.isValid()) { TraceEvent("BARW_WaitExtraBackup", randomID).detail("BackupTag", printable(self->backupTag)); extraTasks = true; try { wait(extraBackup); } catch (Error& e) { TraceEvent("BARW_ExtraBackupException", randomID) .error(e) .detail("BackupTag", printable(self->backupTag)); if (e.code() != error_code_backup_unneeded && e.code() != error_code_backup_duplicate) throw; } TraceEvent("BARW_AbortBackupExtra", randomID).detail("BackupTag", printable(self->backupTag)); try { // This abort can race with submitBackup such that destUID may // not be set yet. Adding "waitForDestUID" flag to avoid the race. wait(backupAgent.abortBackup(self->extraDB, self->backupTag, PartialBackup::False, AbortOldBackup::False, DstOnly::False, WaitForDestUID::True)); } catch (Error& e) { TraceEvent("BARW_AbortBackupExtraException", randomID).error(e); if (e.code() != error_code_backup_unneeded) throw; } } wait(checkData( self->extraDB, logUid, self->destUid, randomID, self->backupTag, &backupAgent, self->shareLogRange)); if (self->performRestore) { state UID restoreUid = wait(backupAgent.getLogUid(self->extraDB, self->restoreTag)); wait(checkData( cx, restoreUid, restoreUid, randomID, self->restoreTag, &restoreTool, self->shareLogRange)); } TraceEvent("BARW_Complete", randomID).detail("BackupTag", printable(self->backupTag)); // Decrement the backup agent requets if (self->agentRequest) { BackupToDBCorrectnessWorkload::drAgentRequests--; } // SOMEDAY: Remove after backup agents can exist quiescently if ((g_simulator.drAgents == ISimulator::BackupAgentType::BackupToDB) && (!BackupToDBCorrectnessWorkload::drAgentRequests)) { g_simulator.drAgents = ISimulator::BackupAgentType::NoBackupAgents; } } catch (Error& e) { TraceEvent(SevError, "BackupAndRestoreCorrectness").error(e); throw; } return Void(); } }; int BackupToDBCorrectnessWorkload::drAgentRequests = 0; WorkloadFactory<BackupToDBCorrectnessWorkload> BackupToDBCorrectnessWorkloadFactory("BackupToDBCorrectness");
13,444
995
package zemberek.core.embeddings; public class SupervisedModel extends Model { SupervisedModel(Model model, int seed) { super(model, seed); } }
50
337
package foo; // we use package 'foo' // imports: import java.util.ArrayList; // we need ArrayList // let's declare a class: class A /* just a sample name*/ implements Runnable /* let's implement Runnable */ { void foo /* again a sample name */(int p /* parameter p */, char c /* parameter c */) { // let's print something: System.out.println("1"); // print 1 System.out.println("2"); // print 2 System.out.println("3"); // print 3 // end of printing if (p > 0) { // do this only when p > 0 // we print 4 and return System.out.println("3"); return; // do not continue } // some code to be added } } // end of class A
285
1,338
<filename>src/apps/webpositive/DownloadProgressView.h /* * Copyright (C) 2010 <NAME> <<EMAIL>> * * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef DOWNLOAD_PROGRESS_VIEW_H #define DOWNLOAD_PROGRESS_VIEW_H #include <GroupView.h> #include <Path.h> #include <String.h> class BEntry; class BStatusBar; class BStringView; class BWebDownload; class IconView; class SmallButton; enum { SAVE_SETTINGS = 'svst' }; class DownloadProgressView : public BGroupView { public: DownloadProgressView(BWebDownload* download); DownloadProgressView(const BMessage* archive); bool Init(BMessage* archive = NULL); status_t SaveSettings(BMessage* archive); virtual void AttachedToWindow(); virtual void DetachedFromWindow(); virtual void AllAttached(); virtual void Draw(BRect updateRect); virtual void MessageReceived(BMessage* message); void ShowContextMenu(BPoint screenWhere); BWebDownload* Download() const; const BString& URL() const; bool IsMissing() const; bool IsFinished() const; void DownloadFinished(); void CancelDownload(); static void SpeedVersusEstimatedFinishTogglePulse(); private: void _UpdateStatus(off_t currentSize, off_t expectedSize); void _UpdateStatusText(); void _StartNodeMonitor(const BEntry& entry); void _StopNodeMonitor(); private: IconView* fIconView; BStatusBar* fStatusBar; BStringView* fInfoView; SmallButton* fTopButton; SmallButton* fBottomButton; BWebDownload* fDownload; BString fURL; BPath fPath; off_t fCurrentSize; off_t fExpectedSize; off_t fLastSpeedReferenceSize; off_t fEstimatedFinishReferenceSize; bigtime_t fLastUpdateTime; bigtime_t fLastSpeedReferenceTime; bigtime_t fProcessStartTime; bigtime_t fLastSpeedUpdateTime; bigtime_t fEstimatedFinishReferenceTime; static const size_t kBytesPerSecondSlots = 10; size_t fCurrentBytesPerSecondSlot; double fBytesPerSecondSlot[kBytesPerSecondSlots]; double fBytesPerSecond; static bigtime_t sLastEstimatedFinishSpeedToggleTime; static bool sShowSpeed; }; #endif // DOWNLOAD_PROGRESS_VIEW_H
919
1,894
<filename>experimental/benchmark_health_report/sheet_writer.py # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from benchmark_health_report import drive_api import six _SUMMARY_HEADER = [ 'Benchmark', 'Owner', 'Total Alerts', 'Valid Alerts', 'Invalid Alerts', 'Untriaged Alerts', 'Total Bugs', 'Open Bugs', 'Closed Bugs', 'Fixed Bugs', 'WontFix Bugs', 'Duplicate Bugs', 'Total Bisects', 'Successful Bisects', 'No Repro Bisects', 'Bisect Failures', 'Total Builds', '% Failed Builds', ] def WriteSummarySpreadsheets( benchmarks, bugs, start_date, end_date): date_range = '%s - %s' % ( start_date.strftime('%Y-%m-%d'), end_date.strftime('%Y-%m-%d')) folder_id = drive_api.CreateFolder('Benchmark Health Reports: %s' % date_range) summary_sheet = [_SUMMARY_HEADER] for name, benchmark in six.iteritems(benchmarks): title = 'Benchmark Health Report %s' % name url = drive_api.CreateSpreadsheet(title, [{ 'name': 'Summary', 'values': _GetOverviewValues(benchmark), }, { 'name': 'Alerts', 'values': _GetAlertValues(benchmark), }, { 'name': 'Bugs', 'values': _GetBugValues(benchmark, bugs), }, { 'name': 'Bisects', 'values': _GetBisectValues(benchmark, bugs), }], folder_id) summary_sheet.append(_GetSummaryValues(benchmark, url)) url = drive_api.CreateSpreadsheet( 'Benchmark Health Report', [{'name': 'Overview', 'values': summary_sheet}], folder_id) return folder_id def _GetOverviewValues(benchmark): return [ ['Owner', benchmark['owner']], ['Alerts'], ['Total alerts', benchmark['total_alerts']], ['Valid alerts', benchmark['valid_alerts']], ['Invalid alerts', benchmark['invalid_alerts']], ['Untriaged alerts', benchmark['untriaged_alerts']], ['Bugs'], ['Total Bugs', benchmark['total_bugs']], ['Open Bugs', benchmark['open_bugs']], ['Closed Bugs', benchmark['closed_bugs']], ['Fixed Bugs', benchmark['fixed_bugs']], ['WontFix Bugs', benchmark['wontfix_bugs']], ['Duplicate Bugs', benchmark['duplicate_bugs']], ['Bisects'], ['Total Bisects', benchmark['total_bisects']], ['Successful Bisects', benchmark['successful_bisects']], ['No Repro Bisects', benchmark['no_repro_bisects']], ['Failed Bisects', benchmark['infra_failure_bisects']], ['Total Builds', benchmark['total_builds']], ['% Failed Builds', benchmark['percent_failed_builds']] ] def _GetAlertValues(benchmark): alert_values = [[ 'Timestamp', 'Bot', 'Metric', '% Change', 'Abs Change', 'Units', 'Improvement', 'Bug', 'Link' ]] alert_values += [[ alert['timestamp'], alert['bot'], alert['test'], alert['percent_changed'], alert['absolute_delta'], alert['units'], 'Yes' if alert['improvement'] else 'No', _GetBugLink(alert['bug_id']), _GetHyperlink( 'Graphs', 'https://chromeperf.appspot.com/group_report?keys=%s' % ( alert['key'])) ] for alert in benchmark['alerts']] return alert_values def _GetBugValues(benchmark, bugs): bug_values = [[ 'Summary', 'Published', 'Components', 'Labels', 'State', 'Status', 'Link', ]] bug_values += [[ bugs[bug_id]['summary'], bugs[bug_id]['published'], ','.join(bugs[bug_id]['components']), ','.join(bugs[bug_id]['labels']), bugs[bug_id]['state'], bugs[bug_id]['status'], _GetBugLink(bug_id), ] for bug_id in benchmark['bugs']] return bug_values def _GetBisectValues(benchmark, bugs): bisect_values = [[ 'Status', 'Bug', 'Buildbucket Link', 'Metric', 'Started', 'Culprit', 'Link']] for bug_id in benchmark['bugs']: for bisect in bugs[bug_id]['legacy_bisects']: culprit = bisect.get('culprit') bisect_values.append([ bisect['status'], _GetBugLink(bug_id), _GetHyperlink('link', bisect['buildbucket_link']), bisect.get('metric'), bisect.get('started_timestamp'), culprit['subject'] if culprit else '', _GetCulpritLink(culprit), ]) return bisect_values def _GetSummaryValues(benchmark, url): return [ benchmark['name'], benchmark['owner'], benchmark['total_alerts'], benchmark['valid_alerts'], benchmark['invalid_alerts'], benchmark['untriaged_alerts'], benchmark['total_bugs'], benchmark['open_bugs'], benchmark['closed_bugs'], benchmark['fixed_bugs'], benchmark['wontfix_bugs'], benchmark['duplicate_bugs'], benchmark['total_bisects'], benchmark['successful_bisects'], benchmark['no_repro_bisects'], benchmark['infra_failure_bisects'], benchmark['total_builds'], benchmark['percent_failed_builds'], _GetHyperlink('Full Data', url), ] def _GetHyperlink(title, url): return '=HYPERLINK("%s", "%s")' % (url, six.text_type(title).replace('"', '\'')) def _GetCulpritLink(culprit): if culprit: return _GetHyperlink( culprit['cl'], 'https://chromium.googlesource.com/chromium/src/+/%s' % (culprit['cl'])) return '' def _GetBugLink(bug_id): if not bug_id: return '' if bug_id == -1: return 'Invalid' if bug_id == -2: return 'Ignored' return _GetHyperlink(bug_id, 'http://crbug.com/%s' % bug_id) def _FormatYearMonthDay(dt): return dt.strftime('%Y-%m-%d')
2,500
348
<filename>docs/data/leg-t1/090/09001053.json {"nom":"Grandvillars","circ":"1ère circonscription","dpt":"Territoire de Belfort","inscrits":1955,"abs":928,"votants":1027,"blancs":9,"nuls":9,"exp":1009,"res":[{"nuance":"SOC","nom":"<NAME>","voix":401},{"nuance":"FN","nom":"<NAME>","voix":191},{"nuance":"MDM","nom":"<NAME>","voix":177},{"nuance":"LR","nom":"<NAME>","voix":144},{"nuance":"FI","nom":"Mme <NAME>","voix":56},{"nuance":"DIV","nom":"<NAME>","voix":12},{"nuance":"EXG","nom":"Mme <NAME>","voix":10},{"nuance":"DIV","nom":"M. <NAME>","voix":7},{"nuance":"COM","nom":"Mme <NAME>","voix":7},{"nuance":"DIV","nom":"M. <NAME>","voix":4},{"nuance":"DIV","nom":"M. <NAME>","voix":0}]}
273
427
// Test __sanitizer_reset_coverage(). // RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t // RUN: %env_asan_opts=coverage=1 %run %t // https://github.com/google/sanitizers/issues/618 // UNSUPPORTED: android #include <sanitizer/coverage_interface.h> #include <stdio.h> #include <assert.h> static volatile int sink; __attribute__((noinline)) void bar() { sink = 2; } __attribute__((noinline)) void foo() { sink = 1; } // In MSVC 2015, printf is an inline function, which causes this test to fail as // it introduces an extra coverage point. Define away printf on that platform to // avoid the issue. #if _MSC_VER >= 1900 # define printf(arg, ...) #endif #define GET_AND_PRINT_COVERAGE() \ bitset = 0; \ for (size_t i = 0; i < n_guards; i++) \ if (guards[i]) bitset |= 1U << i; \ printf("line %d: bitset %zd total: %zd\n", __LINE__, bitset, \ __sanitizer_get_total_unique_coverage()); #define IS_POWER_OF_TWO(a) ((a & ((a) - 1)) == 0) int main() { size_t *guards = 0; size_t bitset; size_t n_guards = __sanitizer_get_coverage_guards(&guards); GET_AND_PRINT_COVERAGE(); size_t main_bit = bitset; assert(IS_POWER_OF_TWO(main_bit)); foo(); GET_AND_PRINT_COVERAGE(); size_t foo_bit = bitset & ~main_bit; assert(IS_POWER_OF_TWO(foo_bit)); bar(); GET_AND_PRINT_COVERAGE(); size_t bar_bit = bitset & ~(main_bit | foo_bit); assert(IS_POWER_OF_TWO(bar_bit)); __sanitizer_reset_coverage(); assert(__sanitizer_get_total_unique_coverage() == 0); GET_AND_PRINT_COVERAGE(); assert(bitset == 0); foo(); GET_AND_PRINT_COVERAGE(); assert(bitset == foo_bit); bar(); GET_AND_PRINT_COVERAGE(); assert(bitset == (foo_bit | bar_bit)); }
823
3,083
<filename>debug/client/conns/WindowsSocket.cpp // Copyright 2011-2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "WindowsSocket.hpp" #include <cstdio> #include <iostream> #include "../errors.hpp" #include "../logger.hpp" #include "GenericSocketFunctions.hpp" /** * Binds a local socket to the specified port. * * @return 0 if everything went fine. Non-zero to indicate an error. */ NaviError WindowsSocket::bindSocket() { localSocket = Bind_To_Socket(getPort()); return localSocket ? NaviErrors::SUCCESS : NaviErrors::COULDNT_START_SERVER; } NaviError WindowsSocket::closeSocket() { closesocket (remoteSocket); closesocket (localSocket); return NaviErrors::SUCCESS; } /** * @return 0 if everything went fine. Non-zero to indicate an error. */ NaviError WindowsSocket::waitForConnection() { remoteSocket = Wait_For_Connection(localSocket); return remoteSocket ? NaviErrors::SUCCESS : NaviErrors::COULDNT_CONNECT_TO_BINNAVI; } /** * Indicates whether data from BinNavi is incoming. * * @return True, if incoming data is ready to be read. False, otherwise. */ bool WindowsSocket::hasData() const { // echo_dbg( "Entering %s ...\n", __FUNCTION__); return SocketFunctions::hasData(remoteSocket); } /** * Sends a specified number of bytes from a given buffer to BinNavi. * * @param buffer The data to write. * @param size The size of the buffer. * * @return Zero if everything went fine. Non-zero if the data could not be read. */ NaviError WindowsSocket::send(const char* buffer, unsigned int size) const { return (unsigned int) ::send(remoteSocket, buffer, size, 0) == size ? NaviErrors::SUCCESS : NaviErrors::SEND_ERROR; } /** * Reads an exact amount of incoming bytes from from BinNavi. * * @param buffer The buffer the bytes are written to. * @param size Number of bytes to read. * * @return Zero if everything went fine. Non-zero if the data could not be read. */ NaviError WindowsSocket::read(char* buffer, unsigned int size) const { return SocketFunctions::read(remoteSocket, buffer, size); } /** * Creates a SOCKET object for a given port. * * @param port The number of the port. */ SOCKET Bind_To_Socket(unsigned int port) { struct sockaddr_in sockadd; WSADATA WSAStruc; SOCKET sock; WSAStartup(MAKEWORD(2, 0), &WSAStruc); if (LOBYTE(WSAStruc.wVersion) != 2 || HIBYTE(WSAStruc.wVersion) != 0) { WSACleanup(); msglog->log(LOG_ALWAYS, "Error: system does not support Winsock 2.0."); return 0; } sockadd.sin_family = AF_INET; sockadd.sin_port = htons((u_short) port); sockadd.sin_addr.s_addr = htonl(INADDR_ANY); memset(&(sockadd.sin_zero), 0x00, 8); sock = socket(AF_INET, SOCK_STREAM, 0); if (bind(sock, (struct sockaddr*) &sockadd, sizeof(sockadd))) { msglog->log(LOG_VERBOSE, "Error: bind() for local port %d failed.", port); return 0; } return sock; } /** * Waits until a connection is established at a given socket. * * @param sock The socket object. * * @return The accepted connection. */ SOCKET Wait_For_Connection(SOCKET sock) { SOCKET conn; struct sockaddr_in from; int sockaddlen = sizeof(from); memset(&from, 0, sizeof(from)); if (listen(sock, 10)) { msglog->log(LOG_VERBOSE, "error: listen() for local port failed."); return 0; } conn = accept(sock, reinterpret_cast<sockaddr*>(&from), &sockaddlen); if ((conn == 0) || (conn == INVALID_SOCKET)) { msglog->log(LOG_VERBOSE, "Accept returned null, how can that be ? (%d)\n", GetLastError()); return 0; } else { return conn; } } void WindowsSocket::printConnectionInfo() { WSAData wsaData; if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) { return; } char ac[80]; if (gethostname(ac, sizeof(ac)) == SOCKET_ERROR) { msglog->log(LOG_VERBOSE, "Error %d when getting local host name.", WSAGetLastError()); WSACleanup(); return; } hostent* phe = gethostbyname(ac); if (phe == 0) { msglog->log(LOG_VERBOSE, "Error: Could not not look up host name"); WSACleanup(); return; } for (int i = 0; phe->h_addr_list[i] != 0; ++i) { in_addr addr; memcpy(&addr, phe->h_addr_list[i], sizeof(in_addr)); msglog->log(LOG_ALWAYS, "Opened server port on local IP address: %s", inet_ntoa(addr)); } WSACleanup(); }
1,789
327
<filename>extlibs/examples/de/fhpotsdam/unfolding/examples/marker/advanced/centroid/CentroidLabelMarker.java package de.fhpotsdam.unfolding.examples.marker.advanced.centroid; import java.util.HashMap; import java.util.List; import processing.core.PGraphics; import de.fhpotsdam.unfolding.UnfoldingMap; import de.fhpotsdam.unfolding.geo.Location; import de.fhpotsdam.unfolding.marker.SimplePolygonMarker; import de.fhpotsdam.unfolding.utils.MapPosition; /** * Displays the polygon ID as label at the geometric center of its shape. For this, it uses the geo-spatial centroid of * the polygon, and converts it to object coordinates, to be consistent to other marker draw methods. */ public class CentroidLabelMarker extends SimplePolygonMarker { public CentroidLabelMarker(List<Location> locations) { super(locations); } // Overrides the method with map, as we need to convert the centroid location ourself. @Override protected void draw(PGraphics pg, List<MapPosition> mapPositions, HashMap<String, Object> properties, UnfoldingMap map) { // Polygon shape is drawn by the SimplePolygonMarker super.draw(pg, mapPositions, properties, map); // Draws the country code at the centroid of the polygon if (getId() != null) { pg.pushStyle(); // Gets geometric center as geo-location Location centerLocation = getCentroid(); // Converts geo-location to position on the map (NB: Not the screen!) float[] xy = map.mapDisplay.getObjectFromLocation(centerLocation); int x = Math.round(xy[0] - pg.textWidth(getId()) / 2); int y = Math.round(xy[1] + 6); // Draws label pg.fill(255); pg.text(getId(), x, y); pg.popStyle(); } } }
571
343
[ { "url": "https://hexdocs.pm/elixir/Enumerable.html", "description": "The Enumerable protocol" }, { "url": "https://hexdocs.pm/elixir/Stream.html", "description": "The Stream module" } ]
86
348
{"nom":"Jassans-Riottier","circ":"2ème circonscription","dpt":"Ain","inscrits":4223,"abs":2188,"votants":2035,"blancs":37,"nuls":10,"exp":1988,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":712},{"nuance":"FN","nom":"Mme <NAME>","voix":400},{"nuance":"LR","nom":"M. <NAME>","voix":360},{"nuance":"FI","nom":"Mme <NAME>","voix":211},{"nuance":"ECO","nom":"Mme <NAME>","voix":143},{"nuance":"DLF","nom":"Mme <NAME>","voix":64},{"nuance":"COM","nom":"M. <NAME>","voix":43},{"nuance":"DIV","nom":"Mme <NAME>","voix":28},{"nuance":"EXG","nom":"M. <NAME>","voix":17},{"nuance":"DIV","nom":"M. <NAME>","voix":10}]}
247
1,724
<filename>bson/src/main/org/bson/BSONCallback.java /* * Copyright 2008-present MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.bson; import org.bson.types.Decimal128; import org.bson.types.ObjectId; /** * A callback interface for describing the structure of a BSON document. Implementations of this define how to turn BSON read from MongoDB * into Java objects. * * See the <a href="http://bsonspec.org/spec.html">BSON Spec</a>. */ public interface BSONCallback { /** * Signals the start of a BSON document, which usually maps onto some Java object. * * @mongodb.driver.manual core/document/ MongoDB Documents */ void objectStart(); /** * Signals the start of a BSON document, which usually maps onto some Java object. * * @param name the field name of the document. * @mongodb.driver.manual core/document/ MongoDB Documents */ void objectStart(String name); /** * Called at the end of the document/array, and returns this object. * * @return the Object that has been read from this section of the document. */ Object objectDone(); /** * Resets the callback, clearing all state. */ void reset(); /** * Returns the finished top-level Document. * * @return the top level document read from the database. */ Object get(); /** * Factory method for BSONCallbacks. * * @return a new BSONCallback. */ BSONCallback createBSONCallback(); /** * Signals the start of a BSON array. * * @mongodb.driver.manual tutorial/query-documents/#read-operations-arrays Arrays */ void arrayStart(); /** * Signals the start of a BSON array, with its field name. * * @param name the name of this array field * @mongodb.driver.manual tutorial/query-documents/#read-operations-arrays Arrays */ void arrayStart(String name); /** * Called the end of the array, and returns the completed array. * * @return an Object representing the array that has been read from this section of the document. */ Object arrayDone(); /** * Called when reading a BSON field that exists but has a null value. * * @param name the name of the field * @see org.bson.BsonType#NULL */ void gotNull(String name); /** * Called when reading a field with a {@link org.bson.BsonType#UNDEFINED} value. * * @param name the name of the field * @see org.bson.BsonType#UNDEFINED */ void gotUndefined(String name); /** * Called when reading a field with a {@link org.bson.BsonType#MIN_KEY} value. * * @param name the name of the field */ void gotMinKey(String name); /** * Called when reading a field with a {@link org.bson.BsonType#MAX_KEY} value. * * @param name the name of the field */ void gotMaxKey(String name); /** * Called when reading a field with a {@link org.bson.BsonType#BOOLEAN} value. * * @param name the name of the field * @param value the field's value */ void gotBoolean(String name, boolean value); /** * Called when reading a field with a {@link org.bson.BsonType#DOUBLE} value. * * @param name the name of the field * @param value the field's value */ void gotDouble(String name, double value); /** * Called when reading a field with a {@link org.bson.BsonType#DECIMAL128} value. * * @param name the field name * @param value the Decimal128 field value * @since 3.4 * @mongodb.server.release 3.4 */ void gotDecimal128(String name, Decimal128 value); /** * Called when reading a field with a {@link org.bson.BsonType#INT32} value. * * @param name the name of the field * @param value the field's value */ void gotInt(String name, int value); /** * Called when reading a field with a {@link org.bson.BsonType#INT64} value. * * @param name the name of the field * @param value the field's value */ void gotLong(String name, long value); /** * Called when reading a field with a {@link org.bson.BsonType#DATE_TIME} value. * * @param name the name of the field * @param millis the date and time in milliseconds */ void gotDate(String name, long millis); /** * Called when reading a field with a {@link org.bson.BsonType#STRING} value. * * @param name the name of the field * @param value the field's value */ void gotString(String name, String value); /** * Called when reading a field with a {@link org.bson.BsonType#SYMBOL} value. * * @param name the name of the field * @param value the field's value */ void gotSymbol(String name, String value); /** * Called when reading a field with a {@link org.bson.BsonType#REGULAR_EXPRESSION} value. * * @param name the name of the field * @param pattern the regex pattern * @param flags the optional flags for the regular expression * @mongodb.driver.manual reference/operator/query/regex/ $regex */ void gotRegex(String name, String pattern, String flags); /** * Called when reading a field with a {@link org.bson.BsonType#TIMESTAMP} value. * * @param name the name of the field * @param time the time in seconds since epoch * @param increment an incrementing ordinal for operations within a given second * @mongodb.driver.manual reference/bson-types/#timestamps Timestamps */ void gotTimestamp(String name, int time, int increment); /** * Called when reading a field with a {@link org.bson.BsonType#OBJECT_ID} value. * * @param name the name of the field * @param id the object ID */ void gotObjectId(String name, ObjectId id); /** * Invoked when {@link org.bson.BSONDecoder} encountered a {@link org.bson.BsonType#DB_POINTER} type field in a byte sequence. * * @param name the name of the field * @param namespace the namespace to which reference is pointing to * @param id the if of the object to which reference is pointing to */ void gotDBRef(String name, String namespace, ObjectId id); /** * Called when reading a field with a {@link org.bson.BsonType#BINARY} value. Note that binary values have a subtype, which may * determine how the value is processed. * * @param name the name of the field * @param type one of the binary subtypes: {@link org.bson.BsonBinarySubType} * @param data the field's value */ void gotBinary(String name, byte type, byte[] data); /** * Called when reading a field with a {@link java.util.UUID} value. This is a binary value of subtype * {@link org.bson.BsonBinarySubType#UUID_LEGACY} * * @param name the name of the field * @param part1 the first part of the UUID * @param part2 the second part of the UUID */ void gotUUID(String name, long part1, long part2); /** * Called when reading a field with a {@link org.bson.BsonType#JAVASCRIPT} value. * * @param name the name of the field * @param code the JavaScript code */ void gotCode(String name, String code); /** * Called when reading a field with a {@link org.bson.BsonType#JAVASCRIPT_WITH_SCOPE} value. * * @param name the name of the field * @param code the JavaScript code * @param scope a document representing the scope for the code */ void gotCodeWScope(String name, String code, Object scope); }
3,022
562
<reponame>armandomeeuwenoord/freight from .manager import ProviderManager from .pipeline import PipelineProvider from .shell import ShellProvider manager = ProviderManager() manager.add("pipeline", PipelineProvider) manager.add("shell", ShellProvider) get = manager.get
75
1,603
<filename>datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/analytics/resolver/GetHighlightsResolver.java package com.linkedin.datahub.graphql.analytics.resolver; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.linkedin.datahub.graphql.analytics.service.AnalyticsService; import com.linkedin.datahub.graphql.generated.DateRange; import com.linkedin.datahub.graphql.generated.EntityType; import com.linkedin.datahub.graphql.generated.Highlight; import graphql.schema.DataFetcher; import graphql.schema.DataFetchingEnvironment; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import lombok.RequiredArgsConstructor; import org.joda.time.DateTime; /** * Retrieves the Highlights to be rendered of the Analytics screen of the DataHub application. */ @RequiredArgsConstructor public final class GetHighlightsResolver implements DataFetcher<List<Highlight>> { private final AnalyticsService _analyticsService; @Override public final List<Highlight> get(DataFetchingEnvironment environment) throws Exception { return getHighlights(); } /** * TODO: Config Driven Charts Instead of Hardcoded. */ private List<Highlight> getHighlights() { final List<Highlight> highlights = new ArrayList<>(); DateTime endDate = DateTime.now(); DateTime startDate = endDate.minusWeeks(1); DateTime lastWeekStartDate = startDate.minusWeeks(1); DateRange dateRange = new DateRange(String.valueOf(startDate.getMillis()), String.valueOf(endDate.getMillis())); DateRange dateRangeLastWeek = new DateRange(String.valueOf(lastWeekStartDate.getMillis()), String.valueOf(startDate.getMillis())); // Highlight 1: The Highlights! String title = "Weekly Active Users"; String eventType = "SearchEvent"; int weeklyActiveUsers = _analyticsService.getHighlights(_analyticsService.getUsageIndexName(), Optional.of(dateRange), ImmutableMap.of(), ImmutableMap.of(), Optional.of("browserId")); int weeklyActiveUsersLastWeek = _analyticsService.getHighlights(_analyticsService.getUsageIndexName(), Optional.of(dateRangeLastWeek), ImmutableMap.of(), ImmutableMap.of(), Optional.of("browserId")); String bodyText = ""; if (weeklyActiveUsersLastWeek > 0) { Double percentChange = (Double.valueOf(weeklyActiveUsers) - Double.valueOf(weeklyActiveUsersLastWeek)) / Double.valueOf( weeklyActiveUsersLastWeek) * 100; String directionChange = percentChange > 0 ? "increase" : "decrease"; bodyText = Double.isInfinite(percentChange) ? "" : String.format("%.2f%% %s from last week", percentChange, directionChange); } highlights.add(Highlight.builder().setTitle(title).setValue(weeklyActiveUsers).setBody(bodyText).build()); // Entity metdata statistics getEntityMetadataStats("Datasets", EntityType.DATASET).ifPresent(highlights::add); getEntityMetadataStats("Dashboards", EntityType.DASHBOARD).ifPresent(highlights::add); getEntityMetadataStats("Charts", EntityType.CHART).ifPresent(highlights::add); getEntityMetadataStats("Pipelines", EntityType.DATA_FLOW).ifPresent(highlights::add); getEntityMetadataStats("Tasks", EntityType.DATA_JOB).ifPresent(highlights::add); getEntityMetadataStats("Domains", EntityType.DOMAIN).ifPresent(highlights::add); return highlights; } private Optional<Highlight> getEntityMetadataStats(String title, EntityType entityType) { String index = _analyticsService.getEntityIndexName(entityType); int numEntities = getNumEntitiesFiltered(index, ImmutableMap.of()); // If there are no entities for the type, do not show the highlight if (numEntities == 0) { return Optional.empty(); } int numEntitiesWithOwners = getNumEntitiesFiltered(index, ImmutableMap.of("hasOwners", ImmutableList.of("true"))); int numEntitiesWithTags = getNumEntitiesFiltered(index, ImmutableMap.of("hasTags", ImmutableList.of("true"))); int numEntitiesWithGlossaryTerms = getNumEntitiesFiltered(index, ImmutableMap.of("hasGlossaryTerms", ImmutableList.of("true"))); int numEntitiesWithDescription = getNumEntitiesFiltered(index, ImmutableMap.of("hasDescription", ImmutableList.of("true"))); String bodyText = ""; if (numEntities > 0) { double percentWithOwners = 100.0 * numEntitiesWithOwners / numEntities; double percentWithTags = 100.0 * numEntitiesWithTags / numEntities; double percentWithGlossaryTerms = 100.0 * numEntitiesWithGlossaryTerms / numEntities; double percentWithDescription = 100.0 * numEntitiesWithDescription / numEntities; if (entityType == EntityType.DOMAIN) { // Don't show percent with domain when asking for stats regarding domains bodyText = String.format("%.2f%% have owners, %.2f%% have tags, %.2f%% have glossary terms, %.2f%% have description!", percentWithOwners, percentWithTags, percentWithGlossaryTerms, percentWithDescription); } else { int numEntitiesWithDomains = getNumEntitiesFiltered(index, ImmutableMap.of("hasDomain", ImmutableList.of("true"))); double percentWithDomains = 100.0 * numEntitiesWithDomains / numEntities; bodyText = String.format( "%.2f%% have owners, %.2f%% have tags, %.2f%% have glossary terms, %.2f%% have description, %.2f%% have domain assigned!", percentWithOwners, percentWithTags, percentWithGlossaryTerms, percentWithDescription, percentWithDomains); } } return Optional.of(Highlight.builder().setTitle(title).setValue(numEntities).setBody(bodyText).build()); } private int getNumEntitiesFiltered(String index, Map<String, List<String>> filters) { return _analyticsService.getHighlights(index, Optional.empty(), filters, ImmutableMap.of("removed", ImmutableList.of("true")), Optional.empty()); } }
2,037
372
<gh_stars>100-1000 /* * * (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1989 HEWLETT-PACKARD COMPANY * (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permission to use, copy, modify, and distribute this * file for any purpose is hereby granted without fee, provided that * the above copyright notices and this notice appears in all source * code copies, and that none of the names of Open Software * Foundation, Inc., Hewlett-Packard Company, or Digital Equipment * Corporation be used in advertising or publicity pertaining to * distribution of the software without specific, written prior * permission. Neither Open Software Foundation, Inc., Hewlett- * Packard Company, nor Digital Equipment Corporation makes any * representations about the suitability of this software for any * purpose. * */ /* ** ** NAME: ** ** files.h ** ** FACILITY: ** ** Interface Definition Language (IDL) Compiler ** ** ABSTRACT: ** ** Header file for file manipulation routines. ** ** VERSION: DCE 1.0 ** */ #ifndef files_incl #define files_incl #ifndef S_IFREG #ifdef vms # include <types.h> # include <stat.h> #else # include <sys/types.h> # include <sys/stat.h> #endif #endif #include <nidl.h> /* IDL common defs */ #include <nametbl.h> typedef enum /* Filespec kinds: */ { file_dir, /* Directory */ file_file, /* Regular ol' file */ file_special /* Something else */ } FILE_k_t; extern boolean FILE_open( char *filespec, FILE **fid ); extern boolean FILE_create( char *filespec, FILE **fid ); extern boolean FILE_lookup( char const *filespec, char const * const *idir_list, struct stat *stat_buf, char *lookup_spec ); extern boolean FILE_form_filespec( char const *in_filespec, char const *dir, char const *type, char const *rel_filespec, char *out_filespec ); #ifdef VMS /* ** Default filespec; only good for one call to FILE_parse. */ extern char *FILE_def_filespec; #endif extern boolean FILE_parse( char const *filespec, char *dir, char *name, char *type ); extern boolean FILE_has_dir_info( char const *filespec ); extern boolean FILE_is_cwd( char *filespec ); extern boolean FILE_kind( char const *filespec, FILE_k_t *filekind ); extern int FILE_execute_cmd( char *cmd_string, char *p1, char *p2, long msg_id ); extern void FILE_delete( char *filename ); #endif /* files_incl */
1,071
486
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * $Id$ */ #include "DOMErrorImpl.hpp" #include <xercesc/dom/DOMException.hpp> #include <xercesc/dom/DOMLocator.hpp> XERCES_CPP_NAMESPACE_BEGIN // --------------------------------------------------------------------------- // DOMErrorImpl: Constructors and Destructor // --------------------------------------------------------------------------- DOMErrorImpl::DOMErrorImpl(const ErrorSeverity severity) : fAdoptLocation(false) , fSeverity(severity) , fMessage(0) , fLocation(0) , fType(0) , fRelatedData(0) { } DOMErrorImpl::DOMErrorImpl(const ErrorSeverity severity, const XMLCh* const message, DOMLocator* const location) : fAdoptLocation(false) , fSeverity(severity) , fMessage(message) , fLocation(location) , fType(0) , fRelatedData(0) { } DOMErrorImpl::DOMErrorImpl(const ErrorSeverity severity, const XMLCh* type, const XMLCh* message, void* relatedData) : fAdoptLocation(false) , fSeverity(severity) , fMessage(message) , fLocation(0) , fType(type) , fRelatedData(relatedData) { } DOMErrorImpl::~DOMErrorImpl() { if (fAdoptLocation) delete fLocation; } // --------------------------------------------------------------------------- // DOMErrorImpl: Setter methods // --------------------------------------------------------------------------- void DOMErrorImpl::setLocation(DOMLocator* const location) { if (fAdoptLocation) delete fLocation; fLocation = location; } void DOMErrorImpl::setRelatedException(void*) const { throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0); } XERCES_CPP_NAMESPACE_END
835
12,278
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once namespace folly { template <typename T> constexpr T constexpr_max(T a) { return a; } template <typename T, typename... Ts> constexpr T constexpr_max(T a, T b, Ts... ts) { return b < a ? constexpr_max(a, ts...) : constexpr_max(b, ts...); } namespace detail { template <typename T> constexpr T constexpr_log2_(T a, T e) { return e == T(1) ? a : constexpr_log2_(a + T(1), e / T(2)); } template <typename T> constexpr T constexpr_log2_ceil_(T l2, T t) { return l2 + T(T(1) << l2 < t ? 1 : 0); } template <typename T> constexpr T constexpr_square_(T t) { return t * t; } } // namespace detail template <typename T> constexpr T constexpr_log2(T t) { return detail::constexpr_log2_(T(0), t); } template <typename T> constexpr T constexpr_log2_ceil(T t) { return detail::constexpr_log2_ceil_(constexpr_log2(t), t); } } // namespace folly
430
1,237
from io import StringIO import sys import threading from http.server import BaseHTTPRequestHandler, HTTPServer ###From https://github.com/bmc/grizzled-python/blob/bf9998bd0f6497d1e368610f439f9085d019bf76/grizzled/io/__init__.py # --------------------------------------------------------------------------- # Imports # --------------------------------------------------------------------------- import os import zipfile class MultiWriter(object): """ Wraps multiple file-like objects so that they all may be written at once. For example, the following code arranges to have anything written to ``sys.stdout`` go to ``sys.stdout`` and to a temporary file: .. python:: import sys from grizzled.io import MultiWriter sys.stdout = MultiWriter(sys.__stdout__, open('/tmp/log', 'w')) """ def __init__(self, *args): """ Create a new ``MultiWriter`` object to wrap one or more file-like objects. :Parameters: args : iterable One or more file-like objects to wrap """ self.__files = args def write(self, buf): """ Write the specified buffer to the wrapped files. :Parameters: buf : str or bytes buffer to write """ for f in self.__files: f.write(buf) def flush(self): """ Force a flush. """ for f in self.__files: f.flush() def close(self): """ Close all contained files. """ for f in self.__files: f.close() logsbuf = StringIO() class Capturing(list): def __enter__(self): self._stdout = sys.stdout self._stderr = sys.stderr sys.stdout = self._stringioout = MultiWriter(logsbuf, self._stdout) sys.stderr = self._stringioerr = MultiWriter(logsbuf, self._stderr) return self def __exit__(self, *args): self.extend(logsbuf.getvalue().splitlines()) self.extend(logsbuf.getvalue().splitlines()) sys.stdout = self._stdout sys.stderr = self._stderr CONST_PORT=9967 # HTTPRequestHandler class class LogServer(BaseHTTPRequestHandler): # GET def do_GET(self): # Send response status code self.send_response(200) # Send headers self.send_header('Content-type','text/html') self.end_headers() # Send message back to client message = logsbuf.getvalue() # Write content as utf-8 data self.wfile.write(bytes(message, "utf8")) return def run(): print('starting server on port', CONST_PORT) server_address = ('0.0.0.0', CONST_PORT) httpd = HTTPServer(server_address, LogServer) print('running server...') httpd.serve_forever() with Capturing(): os.chdir("/bootpart") t = threading.Thread(target = run) t.daemon = True t.start() import main.py ##NAME OF SCRIPT GOES HERE
1,224
491
<gh_stars>100-1000 from .Site import Site from .Paste import Paste from bs4 import BeautifulSoup from . import helper from time import sleep from settings import SLEEP_PASTIE from twitter import TwitterError import logging class PastiePaste(Paste): def __init__(self, id): self.id = id self.headers = None self.url = 'http://pastie.org/pastes/' + self.id + '/text' super(PastiePaste, self).__init__() class Pastie(Site): def __init__(self, last_id=None): if not last_id: last_id = None self.ref_id = last_id self.BASE_URL = 'http://pastie.org' self.sleep = SLEEP_PASTIE super(Pastie, self).__init__() def update(self): '''update(self) - Fill Queue with new Pastie IDs''' logging.info('Retrieving Pastie ID\'s') results = [tag for tag in BeautifulSoup(helper.download( self.BASE_URL + '/pastes')).find_all('p', 'link') if tag.a] new_pastes = [] if not self.ref_id: results = results[:60] for entry in results: paste = PastiePaste(entry.a['href'].replace( self.BASE_URL + '/pastes/', '')) # Check to see if we found our last checked URL if paste.id == self.ref_id: break new_pastes.append(paste) for entry in new_pastes[::-1]: logging.debug('Adding URL: ' + entry.url) self.put(entry) def get_paste_text(self, paste): return BeautifulSoup(helper.download(paste.url)).pre.text
720
1,894
<gh_stars>1000+ # -*- coding: utf-8 -*- # Copyright 2019 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Implementation of credentials that refreshes using the iamcredentials API.""" from __future__ import absolute_import from __future__ import print_function from __future__ import division from __future__ import unicode_literals import datetime from oauth2client import client from gslib.iamcredentials_api import IamcredentailsApi class ImpersonationCredentials(client.OAuth2Credentials): _EXPIRY_FORMAT = '%Y-%m-%dT%H:%M:%SZ' def __init__(self, service_account_id, scopes, credentials, logger): self._service_account_id = service_account_id self.api = IamcredentailsApi(logger, credentials) response = self.api.GenerateAccessToken(service_account_id, scopes) self.access_token = response.accessToken self.token_expiry = self._ConvertExpiryTime(response.expireTime) super(ImpersonationCredentials, self).__init__(self.access_token, None, None, None, self.token_expiry, None, None, scopes=scopes) def _refresh(self, http): # client.Oauth2Credentials converts scopes into a set, so we need to convert # back to a list before making the API request. response = self.api.GenerateAccessToken(self._service_account_id, list(self.scopes)) self.access_token = response.accessToken self.token_expiry = self._ConvertExpiryTime(response.expireTime) def _ConvertExpiryTime(self, value): return datetime.datetime.strptime(value, ImpersonationCredentials._EXPIRY_FORMAT)
1,098
14,668
<reponame>zealoussnow/chromium // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_PREFETCH_STORE_SCHEMA_H_ #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_PREFETCH_STORE_SCHEMA_H_ #include <string> namespace sql { class Database; } // namespace sql namespace offline_pages { // Maintains the schema of the prefetch database, ensuring creation and upgrades // from any and all previous database versions to the latest. class PrefetchStoreSchema { public: // See version_schemas for a history of schema versions. static constexpr int kCurrentVersion = 3; static constexpr int kCompatibleVersion = 1; static_assert(kCurrentVersion >= kCompatibleVersion, "compatible version shouldn't be greater than the current one"); // Creates or upgrade the database schema as needed from information stored in // a metadata table. Returns |true| if the database is ready to be used, // |false| if creation or upgrades failed. static bool CreateOrUpgradeIfNeeded(sql::Database* db); // Returns the current items table creation SQL command for test usage. static std::string GetItemTableCreationSqlForTesting(); }; } // namespace offline_pages #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_PREFETCH_STORE_SCHEMA_H_
441
473
/* * Copyright 2015, Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "hw/openrisc/mmio.h" #include "hw/openrisc/aes.h" #define KEY 0x0 #define DIN 0x20 #define DOUT 0x30 #define CTRL 0x40 #define END 0x44 #define KEY_SZ 32 #define DIN_SZ 16 #define DOUT_SZ 16 #define CTRL_SZ 4 #define GO (ctrl[3] & 0x01) #define MODE ((ctrl[3] >> 1) & 0x01) #define ALGO ((ctrl[3] >> 2) & 0x03) #define RESET (ctrl[2] & 0x01) #define BUSY (ctrl[1] & 0x01) #define SET_BUSY(val) (val ? ctrl[2] |= 1 : (ctrl[2] &= 0xfe)) #define SET_GO(val) (val ? ctrl[0] |= 1 : (ctrl[0] &= 0xfe)) static aes_ctx_t ctx; static uint8_t key[KEY_SZ] = {0}; static uint8_t din[DIN_SZ] = {0}; static uint8_t dout[DOUT_SZ] = {0}; static uint8_t ctrl[CTRL_SZ] = {0}; static const uint8_t ctrl_mask_r[4] = {0x0, 0x1, 0x0, 0x0}; static const uint8_t ctrl_mask_w[4] = {0x00, 0x00, 0x01, 0x0f}; #ifdef MMIO_DEBUG static void aes_print_state(void) { int i; printf("Key: "); for (i = 0; i < KEY_SZ; ++i) printf("%02x ", (int)key[i]); printf("\n"); printf("din: "); for (i = 0; i < DIN_SZ; ++i) printf("%02x ", (int)din[i]); printf("\n"); printf("dout: "); for (i = 0; i < DOUT_SZ; ++i) printf("%02x ", (int)dout[i]); printf("\n"); printf("ctrl: "); for (i = 0; i < CTRL_SZ; ++i) printf("%02x ", (int)ctrl[i]); printf("\n"); } #endif /* Reset clears all of the data structure arrays */ static void aes_reset(void) { memset(key, 0, KEY_SZ); memset(din, 0, DIN_SZ); memset(dout, 0, DOUT_SZ); memset(ctrl, 0, CTRL_SZ); } /* Read out data; we can only read from DOUT and the BUSY bit of the ctrl reg */ static uint64_t aes_read(void* opaque, hwaddr addr, unsigned size) { uint64_t data = 0; unsigned i; for (i = 0; i < size; ++i) { unsigned pos = addr + i; uint8_t byte; if (IN_RANGE(pos, KEY)) return 0; else if (IN_RANGE(pos, DIN)) return 0; else if (IN_RANGE(pos, DOUT)) byte = dout[pos - DOUT]; else if (IN_RANGE(pos, CTRL)) byte = ctrl[pos - CTRL] & ctrl_mask_r[pos - CTRL]; // Need to return the bytes in the right order; first byte read is left-most byte of data data |= (byte << ((size - i - 1) * 8)); } return data; } /* Write data; can load key, DIN, and GO/ENCDEC/SZ/RESET of ctrl */ static void aes_write(void* opaque, hwaddr addr, uint64_t data, unsigned size) { // Don't allow writes if the algorithm is currently encrypting something if (BUSY) return; // Read the bytes of data in reverse order, so we can just bitshift at the end int i; for (i = size - 1; i >= 0; --i) { hwaddr pos = addr + i; if (IN_RANGE(pos, KEY)) key[pos - KEY] = data; else if (IN_RANGE(pos, DIN)) din[pos - DIN] = data; else if (IN_RANGE(pos, DOUT)) continue; else if (IN_RANGE(pos, CTRL)) ctrl[pos - CTRL] = data & ctrl_mask_w[pos - CTRL]; data >>= 8; } // If the RESET bit is toggled, don't do anything else if (RESET) aes_reset(); // Otherwise, run encryption if the GO bit is set else if (GO) { // We're busy encrypting -- just call the AES lib SET_BUSY(1); #ifdef MMIO_DEBUG aes_print_state(); #endif aes_setkey(&ctx, ALGO, key); if (MODE == 0) aes_ecb_encrypt(&ctx, din, dout); else aes_ecb_decrypt(&ctx, din, dout); #ifdef MMIO_DEBUG aes_print_state(); #endif // When we're done, toggle the GO and BUSY bits SET_GO(0); SET_BUSY(0); } } // Initialize the MMIO region static MemoryRegion aes_mmio_region; static const MemoryRegionOps aes_ops= { .read = &aes_read, .write = &aes_write, }; void orp_init_aes_mmio(void* opaque, MemoryRegion* address_space) { memory_region_init_io(&aes_mmio_region, NULL, &aes_ops, opaque, "aes", AES_WIDTH); memory_region_add_subregion(address_space, AES_ADDR, &aes_mmio_region); aes_reset(); }
1,955
2,111
<filename>cv/src/LKFlow.cpp<gh_stars>1000+ #include "ygz/LKFlow.h" #include "ygz/Align.h" #include "ygz/Feature.h" #include "ygz/MapPoint.h" #include <opencv2/video/video.hpp> #include <opencv2/calib3d/calib3d.hpp> namespace ygz { int LKFlow( const shared_ptr<Frame> ref, const shared_ptr<Frame> current, VecVector2f &trackPts, bool keepNotConverged ) { if (ref->mPyramidLeft.empty()) ref->ComputeImagePyramid(); if (current->mPyramidLeft.empty()) current->ComputeImagePyramid(); if (trackPts.empty()) { trackPts.resize(ref->mFeaturesLeft.size()); for (size_t i = 0; i < ref->mFeaturesLeft.size(); i++) if (ref->mFeaturesLeft[i]) trackPts[i] = ref->mFeaturesLeft[i]->mPixel; else trackPts[i] = Vector2f(-1, -1); } else { // 已经给定了一些点,则按照这些初始值运行 assert(ref->mFeaturesLeft.size() == trackPts.size()); } // 匹配局部地图用的 patch, 默认8x8 uchar patch[align_patch_area] = {0}; // 带边界的,左右各1个像素 uchar patch_with_border[(align_patch_size + 2) * (align_patch_size + 2)] = {0}; int successPts = 0; for (size_t i = 0; i < ref->mFeaturesLeft.size(); i++) { auto feat = ref->mFeaturesLeft[i]; if (feat == nullptr) { // 特征无效 trackPts[i] = Vector2f(-1, -1); continue; } // from coarse to fine Vector2f refPixel = feat->mPixel; Vector2f trackedPos = trackPts[i]; // 第零层分辨率下的位置 bool success = true; for (int lvl = setting::numPyramid - 1; lvl >= 0; lvl--) { float scale = setting::scaleFactors[lvl]; float invScale = setting::invScaleFactors[lvl]; Vector2f posLvl = trackedPos * invScale; // 第lvl层下的位置 Vector2f refPixelLvl = refPixel * invScale; cv::Mat &img_ref = ref->mPyramidLeft[lvl]; // copy the patch with boarder uchar *patch_ptr = patch_with_border; const int ix = floor(refPixelLvl[0]); const int iy = floor(refPixelLvl[1]); const float xx = refPixelLvl[0] - ix; const float yy = refPixelLvl[1] - iy; for (int y = 0; y < align_patch_size + 2; y++) { for (int x = 0; x < align_patch_size + 2; x++, ++patch_ptr) { const int dx = x - align_halfpatch_size - 1; const int dy = y - align_halfpatch_size - 1; const int iix = ix + dx; const int iiy = iy + dy; if (iix < 0 || iiy < 0 || iix >= img_ref.cols - 1 || iiy >= img_ref.rows - 1) { *patch_ptr = 0; } else { uchar *data = img_ref.data + iiy * img_ref.step + iix; *patch_ptr = (1 - xx) * (1 - yy) * data[0] + xx * (1 - yy) * data[1] + (1 - xx) * yy * data[img_ref.step] + xx * yy * data[img_ref.step + 1]; } } } // remove the boarder uint8_t *ref_patch_ptr = patch; for (int y = 1; y < align_patch_size + 1; ++y, ref_patch_ptr += align_patch_size) { uint8_t *ref_patch_border_ptr = patch_with_border + y * (align_patch_size + 2) + 1; for (int x = 0; x < align_patch_size; ++x) ref_patch_ptr[x] = ref_patch_border_ptr[x]; } bool ret = Align2D( current->mPyramidLeft[lvl], patch_with_border, patch, 30, posLvl ); if (!keepNotConverged) if (lvl == 2) success = ret; // set the tracked pos trackedPos = posLvl * scale; if (trackedPos[0] < setting::boarder || trackedPos[0] >= setting::imageWidth - setting::boarder || trackedPos[1] < setting::boarder || trackedPos[1] >= setting::imageHeight - setting::boarder) { success = false; break; } } if (success) { // copy the results trackPts[i] = trackedPos; successPts++; } else { trackPts[i] = Vector2f(-1, -1); } } //std::chrono::steady_clock::time_point t3 = std::chrono::steady_clock::now(); //timeCost = std::chrono::duration_cast<std::chrono::duration<double> >(t3 - t2).count(); //LOG(INFO)<<"Alignment cost time: "<<timeCost<<endl; return successPts; } bool LKFlowSinglePoint( const vector<Mat> &pyramid1, const vector<Mat> &pyramid2, const Vector2f &pixel1, Vector2f &pixel2 ) { // 匹配局部地图用的 patch, 默认8x8 uchar patch[align_patch_area] = {0}; // 带边界的,左右各1个像素 uchar patch_with_border[(align_patch_size + 2) * (align_patch_size + 2)] = {0}; // from coarse to fine Vector2f refPixel = pixel1; Vector2f trackedPos = pixel2; bool success = true; for (int lvl = setting::numPyramid - 1; lvl >= 2; lvl--) { float scale = setting::scaleFactors[lvl]; float invScale = setting::invScaleFactors[lvl]; Vector2f posLvl = trackedPos * invScale; // 第lvl层下的位置 Vector2f refPixelLvl = refPixel * invScale; const cv::Mat &img_ref = pyramid1[lvl]; // copy the patch with boarder uchar *patch_ptr = patch_with_border; const int ix = floor(refPixelLvl[0]); const int iy = floor(refPixelLvl[1]); const float xx = refPixelLvl[0] - ix; const float yy = refPixelLvl[1] - iy; for (int y = 0; y < align_patch_size + 2; y++) { for (int x = 0; x < align_patch_size + 2; x++, ++patch_ptr) { const int dx = x - align_halfpatch_size - 1; const int dy = y - align_halfpatch_size - 1; const int iix = ix + dx; const int iiy = iy + dy; if (iix < 0 || iiy < 0 || iix >= img_ref.cols - 1 || iiy >= img_ref.rows - 1) { *patch_ptr = 0; } else { uchar *data = img_ref.data + iiy * img_ref.step + iix; *patch_ptr = (1 - xx) * (1 - yy) * data[0] + xx * (1 - yy) * data[1] + (1 - xx) * yy * data[img_ref.step] + xx * yy * data[img_ref.step + 1]; } } } // remove the boarder uint8_t *ref_patch_ptr = patch; for (int y = 1; y < align_patch_size + 1; ++y, ref_patch_ptr += align_patch_size) { uint8_t *ref_patch_border_ptr = patch_with_border + y * (align_patch_size + 2) + 1; for (int x = 0; x < align_patch_size; ++x) ref_patch_ptr[x] = ref_patch_border_ptr[x]; } bool ret = Align2D( pyramid2[lvl], patch_with_border, patch, 30, posLvl ); if (lvl == 2) success = ret; // set the tracked pos trackedPos = posLvl * scale; if (trackedPos[0] < setting::boarder || trackedPos[0] >= setting::imageWidth - setting::boarder || trackedPos[1] < setting::boarder || trackedPos[1] >= setting::imageHeight - setting::boarder) { success = false; break; } } if (success) { // copy the results pixel2 = trackedPos; } return success; } int LKFlow1D(const shared_ptr<Frame> frame) { // 匹配局部地图用的 patch, 默认8x8 uchar patch[align_patch_area] = {0}; // 带边界的,左右各1个像素 uchar patch_with_border[(align_patch_size + 2) * (align_patch_size + 2)] = {0}; int successPts = 0; for (shared_ptr<Feature> feat: frame->mFeaturesLeft) { // from coarse to fine Vector2f trackedPos = feat->mPixel; // 第零层分辨率下的位置 Vector2f refPixel = trackedPos; Vector2f direction(-1, 0); // 右图中点应该出现在左侧 bool success = true; for (int lvl = setting::numPyramid - 1; lvl >= 0; lvl--) { float scale = setting::scaleFactors[lvl]; float invScale = setting::invScaleFactors[lvl]; Vector2f posLvl = trackedPos * invScale; // 第lvl层下的位置 Vector2f refPixelLvl = refPixel * invScale; cv::Mat &img_ref = frame->mPyramidLeft[lvl]; // copy the patch with boarder uchar *patch_ptr = patch_with_border; for (int y = 0; y < align_patch_size + 2; y++) { for (int x = 0; x < align_patch_size + 2; x++, ++patch_ptr) { Vector2f delta(x - align_halfpatch_size - 1, y - align_halfpatch_size - 1); const Vector2f px(refPixelLvl + delta); if (px[0] < 0 || px[1] < 0 || px[0] >= img_ref.cols - 1 || px[1] >= img_ref.rows - 1) { *patch_ptr = 0; } else { *patch_ptr = GetBilateralInterpUchar(px[0], px[1], img_ref); } } } // remove the boarder uint8_t *ref_patch_ptr = patch; for (int y = 1; y < align_patch_size + 1; ++y, ref_patch_ptr += align_patch_size) { uint8_t *ref_patch_border_ptr = patch_with_border + y * (align_patch_size + 2) + 1; for (int x = 0; x < align_patch_size; ++x) ref_patch_ptr[x] = ref_patch_border_ptr[x]; } /* 一维align的调用方法,但是对双目校正要求过高,不太现实 double hinv = 0; success = Align1D( frame->mPyramidRight[lvl], direction, patch_with_border, patch, 10, posLvl, hinv ); */ success = Align2D( frame->mPyramidRight[lvl], patch_with_border, patch, 10, posLvl ); if (success == false) break; // set the tracked pos trackedPos = posLvl * scale; } if (success) { // compute the disparity float disparity = refPixel[0] - trackedPos[0]; feat->mfInvDepth = disparity / frame->mpCam->bf; successPts++; } else { feat->mfInvDepth = -1; } } return successPts; } int LKFlowCV( const shared_ptr<Frame> ref, const shared_ptr<Frame> current, VecVector2f &refPts, VecVector2f &trackedPts ) { if (refPts.size() == 0) return 0; vector<cv::Point2f> refPx, currPts; for (auto &px:refPts) { refPx.push_back(cv::Point2f(px[0], px[1])); } for (Vector2f &v: trackedPts) { currPts.push_back(cv::Point2f(v[0], v[1])); } vector<uchar> status; vector<float> err; cv::calcOpticalFlowPyrLK(ref->mImLeft, current->mImLeft, refPx, currPts, status, err, cv::Size(21, 21), 3, cv::TermCriteria(cv::TermCriteria::COUNT + cv::TermCriteria::EPS, 30, 0.01), cv::OPTFLOW_USE_INITIAL_FLOW); // reject with F matrix cv::findFundamentalMat(refPx, currPts, cv::FM_RANSAC, 3.0, 0.99, status); int successPts = 0; for (int i = 0; i < currPts.size(); i++) { if (status[i] && (currPts[i].x > setting::boarder && currPts[i].y > setting::boarder && currPts[i].x < setting::imageWidth - setting::boarder && currPts[i].y < setting::imageHeight - setting::boarder)) { // succeed // trackedPts.push_back(Vector2f(currPts[i].x, currPts[i].y)); trackedPts[i] = Vector2f(currPts[i].x, currPts[i].y); successPts++; } else { // failed // trackedPts.push_back(Vector2f(-1, -1)); trackedPts[i] = Vector2f(-1, -1); } } return successPts; } }
8,135
14,668
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" #include "content/common/pepper_renderer_instance_data.h" #include "content/public/common/process_type.h" #include "ipc/ipc_message_macros.h" #include "ppapi/proxy/ppapi_messages.h" namespace content { // static BrowserPpapiHost* BrowserPpapiHost::CreateExternalPluginProcess( IPC::Sender* sender, ppapi::PpapiPermissions permissions, base::Process plugin_child_process, IPC::ChannelProxy* channel, const base::FilePath& profile_directory) { // The plugin name and path shouldn't be needed for external plugins. BrowserPpapiHostImpl* browser_ppapi_host = new BrowserPpapiHostImpl(sender, permissions, std::string(), base::FilePath(), profile_directory, false /* in_process */, true /* external_plugin */); browser_ppapi_host->set_plugin_process(std::move(plugin_child_process)); channel->AddFilter(browser_ppapi_host->message_filter().get()); return browser_ppapi_host; } BrowserPpapiHostImpl::BrowserPpapiHostImpl( IPC::Sender* sender, const ppapi::PpapiPermissions& permissions, const std::string& plugin_name, const base::FilePath& plugin_path, const base::FilePath& profile_data_directory, bool in_process, bool external_plugin) : ppapi_host_(new ppapi::host::PpapiHost(sender, permissions)), plugin_name_(plugin_name), plugin_path_(plugin_path), profile_data_directory_(profile_data_directory), in_process_(in_process), external_plugin_(external_plugin) { message_filter_ = new HostMessageFilter(ppapi_host_.get(), this); ppapi_host_->AddHostFactoryFilter(std::unique_ptr<ppapi::host::HostFactory>( new ContentBrowserPepperHostFactory(this))); } BrowserPpapiHostImpl::~BrowserPpapiHostImpl() { // Notify the filter so it won't foward messages to us. message_filter_->OnHostDestroyed(); // Notify instance observers about our impending destruction. for (auto& instance_data : instance_map_) { for (auto& observer : instance_data.second->observer_list) observer.OnHostDestroyed(); } // Delete the host explicitly first. This shutdown will destroy the // resources, which may want to do cleanup in their destructors and expect // their pointers to us to be valid. ppapi_host_.reset(); } ppapi::host::PpapiHost* BrowserPpapiHostImpl::GetPpapiHost() { return ppapi_host_.get(); } const base::Process& BrowserPpapiHostImpl::GetPluginProcess() { // Handle should previously have been set before use. DCHECK(in_process_ || plugin_process_.IsValid()); return plugin_process_; } bool BrowserPpapiHostImpl::IsValidInstance(PP_Instance instance) { return instance_map_.find(instance) != instance_map_.end(); } bool BrowserPpapiHostImpl::GetRenderFrameIDsForInstance(PP_Instance instance, int* render_process_id, int* render_frame_id) { auto it = instance_map_.find(instance); if (it == instance_map_.end()) { *render_process_id = 0; *render_frame_id = 0; return false; } *render_process_id = it->second->renderer_data.render_process_id; *render_frame_id = it->second->renderer_data.render_frame_id; return true; } const std::string& BrowserPpapiHostImpl::GetPluginName() { return plugin_name_; } const base::FilePath& BrowserPpapiHostImpl::GetPluginPath() { return plugin_path_; } const base::FilePath& BrowserPpapiHostImpl::GetProfileDataDirectory() { return profile_data_directory_; } GURL BrowserPpapiHostImpl::GetDocumentURLForInstance(PP_Instance instance) { auto it = instance_map_.find(instance); if (it == instance_map_.end()) return GURL(); return it->second->renderer_data.document_url; } GURL BrowserPpapiHostImpl::GetPluginURLForInstance(PP_Instance instance) { auto it = instance_map_.find(instance); if (it == instance_map_.end()) return GURL(); return it->second->renderer_data.plugin_url; } bool BrowserPpapiHostImpl::IsPotentiallySecurePluginContext( PP_Instance instance) { auto it = instance_map_.find(instance); if (it == instance_map_.end()) return false; return it->second->renderer_data.is_potentially_secure_plugin_context; } void BrowserPpapiHostImpl::AddInstance( PP_Instance instance, const PepperRendererInstanceData& renderer_instance_data) { // NOTE: 'instance' may be coming from a compromised renderer process. We // take care here to make sure an attacker can't overwrite data for an // existing plugin instance. // See http://crbug.com/733548. if (instance_map_.find(instance) == instance_map_.end()) { instance_map_[instance] = std::make_unique<InstanceData>(renderer_instance_data); } else { NOTREACHED(); } } void BrowserPpapiHostImpl::DeleteInstance(PP_Instance instance) { // NOTE: 'instance' may be coming from a compromised renderer process. We // take care here to make sure an attacker can't cause a UAF by deleting a // non-existent plugin instance. // See http://crbug.com/733548. auto it = instance_map_.find(instance); if (it != instance_map_.end()) { // We need to tell the observers for that instance that we are destroyed // because we won't have the opportunity to once we remove them from the // |instance_map_|. If the instance was deleted, observers for those // instances should never call back into the host anyway, so it is safe to // tell them that the host is destroyed. for (auto& observer : it->second->observer_list) observer.OnHostDestroyed(); instance_map_.erase(it); } else { NOTREACHED(); } } void BrowserPpapiHostImpl::AddInstanceObserver(PP_Instance instance, InstanceObserver* observer) { instance_map_[instance]->observer_list.AddObserver(observer); } void BrowserPpapiHostImpl::RemoveInstanceObserver(PP_Instance instance, InstanceObserver* observer) { auto it = instance_map_.find(instance); if (it != instance_map_.end()) it->second->observer_list.RemoveObserver(observer); } BrowserPpapiHostImpl::HostMessageFilter::HostMessageFilter( ppapi::host::PpapiHost* ppapi_host, BrowserPpapiHostImpl* browser_ppapi_host_impl) : ppapi_host_(ppapi_host), browser_ppapi_host_impl_(browser_ppapi_host_impl) {} bool BrowserPpapiHostImpl::HostMessageFilter::OnMessageReceived( const IPC::Message& msg) { // Don't forward messages if our owner object has been destroyed. if (!ppapi_host_) return false; return ppapi_host_->OnMessageReceived(msg); } void BrowserPpapiHostImpl::HostMessageFilter::OnHostDestroyed() { DCHECK(ppapi_host_); ppapi_host_ = nullptr; browser_ppapi_host_impl_ = nullptr; } BrowserPpapiHostImpl::HostMessageFilter::~HostMessageFilter() {} BrowserPpapiHostImpl::InstanceData::InstanceData( const PepperRendererInstanceData& renderer_data) : renderer_data(renderer_data) {} BrowserPpapiHostImpl::InstanceData::~InstanceData() { } } // namespace content
2,716
7,137
package io.onedev.server.maintenance; import java.util.List; import javax.annotation.Nullable; import io.onedev.server.model.support.administration.BackupSetting; import io.onedev.server.util.init.ManualConfig; public interface DataManager { List<ManualConfig> init(); void scheduleBackup(@Nullable BackupSetting backupSetting); }
110
1,031
/* ----------------------------------------------------------------------------- * This file is part of SWIG, which is licensed as a whole under version 3 * (or any later version) of the GNU General Public License. Some additional * terms also apply to certain portions of SWIG. The full details of the SWIG * license and copyrights can be found in the LICENSE and COPYRIGHT files * included with the SWIG source code as distributed by the SWIG developers * and at http://www.swig.org/legal.html. * * swigwrap.h * * Functions related to wrapper objects. * ----------------------------------------------------------------------------- */ typedef struct Wrapper { Hash *localh; String *def; String *locals; String *code; } Wrapper; extern Wrapper *NewWrapper(void); extern void DelWrapper(Wrapper *w); extern void Wrapper_compact_print_mode_set(int flag); extern void Wrapper_pretty_print(String *str, File *f); extern void Wrapper_compact_print(String *str, File *f); extern void Wrapper_print(Wrapper *w, File *f); extern int Wrapper_add_local(Wrapper *w, const_String_or_char_ptr name, const_String_or_char_ptr decl); extern int Wrapper_add_localv(Wrapper *w, const_String_or_char_ptr name, ...); extern int Wrapper_check_local(Wrapper *w, const_String_or_char_ptr name); extern char *Wrapper_new_local(Wrapper *w, const_String_or_char_ptr name, const_String_or_char_ptr decl); extern char *Wrapper_new_localv(Wrapper *w, const_String_or_char_ptr name, ...);
492
3,358
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2010 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email <<EMAIL>>. The license is also available online at <http://quantlib.org/license.shtml>. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ #ifndef quantlib_math_constants_hpp #define quantlib_math_constants_hpp #include <cmath> #ifndef M_E #define M_E 2.71828182845904523536 #endif #ifndef M_LOG2E #define M_LOG2E 1.44269504088896340736 #endif #ifndef M_LOG10E #define M_LOG10E 0.434294481903251827651 #endif #ifndef M_IVLN10 #define M_IVLN10 0.434294481903251827651 #endif #ifndef M_LN2 #define M_LN2 0.693147180559945309417 #endif #ifndef M_LOG2_E #define M_LOG2_E 0.693147180559945309417 #endif #ifndef M_LN10 #define M_LN10 2.30258509299404568402 #endif #ifndef M_PI # define M_PI 3.141592653589793238462643383280 #endif #ifndef M_TWOPI #define M_TWOPI (M_PI * 2.0) #endif #ifndef M_PI_2 #define M_PI_2 1.57079632679489661923 #endif #ifndef M_PI_4 #define M_PI_4 0.785398163397448309616 #endif #ifndef M_3PI_4 #define M_3PI_4 2.3561944901923448370E0 #endif #ifndef M_SQRTPI #define M_SQRTPI 1.77245385090551602792981 #endif #ifndef M_1_PI #define M_1_PI 0.318309886183790671538 #endif #ifndef M_2_PI #define M_2_PI 0.636619772367581343076 #endif #ifndef M_1_SQRTPI #define M_1_SQRTPI 0.564189583547756286948 #endif #ifndef M_2_SQRTPI #define M_2_SQRTPI 1.12837916709551257390 #endif #ifndef M_SQRT2 #define M_SQRT2 1.41421356237309504880 #endif #ifndef M_SQRT_2 #define M_SQRT_2 0.7071067811865475244008443621048490392848359376887 #endif #ifndef M_SQRT1_2 #define M_SQRT1_2 0.7071067811865475244008443621048490392848359376887 #endif #ifndef M_LN2LO #define M_LN2LO 1.9082149292705877000E-10 #endif #ifndef M_LN2HI #define M_LN2HI 6.9314718036912381649E-1 #endif #ifndef M_SQRT3 #define M_SQRT3 1.73205080756887719000 #endif #ifndef M_INVLN2 #define M_INVLN2 1.4426950408889633870E0 #endif /* This should ensure that no macro are redefined if we happen to include <math.h> again, whether or not we're using our macros or theirs. We can't know in advance, since it depends on the order of inclusion of headers in client code. */ #ifdef _MSC_VER #undef _USE_MATH_DEFINES #endif #endif
1,366
310
package org.seasar.doma.internal.apt.processor.domain; import org.seasar.doma.Domain; @Domain(valueType = OfEnumDomain.JobType.class, factoryMethod = "of", acceptNull = true) public class OfEnumDomain { private final JobType jobType; private OfEnumDomain(JobType jobType) { this.jobType = jobType; } public JobType getValue() { return jobType; } public static OfEnumDomain of(JobType value) { return new OfEnumDomain(value); } public enum JobType { SALESMAN } }
176
348
<gh_stars>100-1000 {"nom":"Saint-Laurent-Chabreuges","dpt":"Haute-Loire","inscrits":213,"abs":33,"votants":180,"blancs":17,"nuls":8,"exp":155,"res":[{"panneau":"1","voix":116},{"panneau":"2","voix":39}]}
86
2,023
<filename>recipes/Python/413086_Gibbs_Sampler/recipe-413086.py #Author: <NAME> from math import * from RandomArray import * from matplotlib.pylab import * n=10000 rho=.99 #correlation #Means m1 = 10 m2 = 20 #Standard deviations s1 = 1 s2 = 1 #Initialize vectors x=zeros(n, Float) y=zeros(n, Float) sd=sqrt(1-rho**2) # the core of the method: sample recursively from two normal distributions # Tthe mean for the current sample, is updated at each step. for i in range(1,n): x[i] = normal(m1+rho*(y[i-1]-m2)/s2,s1*sd) y[i] = normal(m2+rho*(x[i-1]-m1)/s1,s2*sd) scatter(x,y,marker='d',c='r') title('Amostrador de Gibbs') xlabel('x') ylabel('y') grid() show()
293
1,466
<filename>java/main/com/facebook/profilo/logger/LoggerWorkerThread.java /** * Copyright 2004-present, Facebook, Inc. * * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing permissions and * limitations under the License. */ package com.facebook.profilo.logger; import android.os.Process; import com.facebook.profilo.core.ProfiloConstants; import com.facebook.profilo.mmapbuf.core.Buffer; import com.facebook.profilo.writer.NativeTraceWriter; import com.facebook.profilo.writer.NativeTraceWriterCallbacks; public class LoggerWorkerThread extends Thread { private final long mTraceId; private final String mFolder; private final String mPrefix; private final Buffer[] mBuffers; private final CachingNativeTraceWriterCallbacks mCallbacks; private final NativeTraceWriter mMainTraceWriter; public LoggerWorkerThread( long traceId, String folder, String prefix, Buffer[] buffers, NativeTraceWriterCallbacks callbacks) { super("Prflo:Logger"); mTraceId = traceId; mFolder = folder; mPrefix = prefix; mBuffers = buffers; boolean needsCachedCallbacks = buffers.length > 1; mCallbacks = new CachingNativeTraceWriterCallbacks(needsCachedCallbacks, callbacks); mMainTraceWriter = new NativeTraceWriter(buffers[0], folder, prefix + "-0", mCallbacks); } public NativeTraceWriter getTraceWriter() { return mMainTraceWriter; } public void run() { try { Process.setThreadPriority(ProfiloConstants.TRACE_CONFIG_PARAM_LOGGER_PRIORITY_DEFAULT); mMainTraceWriter.loop(); if (mBuffers.length > 1) { dumpSecondaryBuffers(); } } catch (RuntimeException ex) { mCallbacks.onTraceWriteException(mTraceId, ex); } finally { mCallbacks.emit(); } } private void dumpSecondaryBuffers() { StringBuilder prefixBuilder = new StringBuilder(mPrefix.length() + 2); for (int idx = 1; idx < mBuffers.length; idx++) { prefixBuilder.setLength(0); prefixBuilder.append(mPrefix).append('-').append(idx); // Additional buffers do not have trace control entries, so will not // need to issue callbacks. NativeTraceWriter bufferDumpWriter = new NativeTraceWriter(mBuffers[idx], mFolder, prefixBuilder.toString(), null); bufferDumpWriter.dump(mTraceId); } } }
945
573
// Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // * Neither the name of ARM Limited nor the names of its contributors may be // used to endorse or promote products derived from this software without // specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // --------------------------------------------------------------------- // This file is auto generated using tools/generate_simulator_traces.py. // // PLEASE DO NOT EDIT. // --------------------------------------------------------------------- #ifndef VIXL_SIMULATOR_COND_RD_RN_OPERAND_RM_SXTAB16_T32_H_ #define VIXL_SIMULATOR_COND_RD_RN_OPERAND_RM_SXTAB16_T32_H_ const Inputs kOutputs_Sxtab16_Condition_eq_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_ne_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_cs_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_cc_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_mi_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_pl_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_vs_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_vc_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_hi_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_ls_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_ge_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_lt_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_gt_r0_r0_r0[] = { { 0x80000000, 0xabababab, 0xabababab, 0xabababab }, { 0x40000000, 0xabababab, 0xabababab, 0xabababab }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xabababab, 0xabababab, 0xabababab }, { 0xc0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xa0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xabababab, 0xabababab, 0xabababab }, { 0x50000000, 0xabababab, 0xabababab, 0xabababab }, { 0x30000000, 0xabababab, 0xabababab, 0xabababab }, { 0xe0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xd0000000, 0xabababab, 0xabababab, 0xabababab }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xabababab, 0xabababab, 0xabababab }, { 0xf0000000, 0xabababab, 0xabababab, 0xabababab }, }; const Inputs kOutputs_Sxtab16_Condition_le_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xabababab, 0xabababab, 0xabababab }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xabababab, 0xabababab, 0xabababab }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xabababab, 0xabababab, 0xabababab }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_Condition_al_r0_r0_r0[] = { { 0x80000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x40000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x20000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x10000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xc0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xa0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x90000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x60000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x50000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x30000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xe0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xd0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xb0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0x70000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, { 0xf0000000, 0xab56ab56, 0xab56ab56, 0xab56ab56 }, }; const Inputs kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r11[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0xffff7ffc, 0xffff7ffc, 0x7ffffffe }, { 0x90000000, 0x0000007e, 0x0000007e, 0x0000007d }, { 0xc0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0xc0000000, 0x55555575, 0x55555575, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x8000fffe, 0x8000fffe, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8001, 0xffff8001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0xffff7ffc, 0xffff7ffc, 0xfffffffe }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0xffffffff, 0xffffffff, 0xfffffffd }, { 0x20000000, 0xffffff80, 0xffffff80, 0xffff8003 }, { 0xf0000000, 0xfffffffb, 0xfffffffb, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xf0000000, 0x00007ffc, 0x00007ffc, 0x00007ffd }, { 0xf0000000, 0x555454d7, 0x555454d7, 0xffffff82 }, { 0xa0000000, 0xffff8003, 0xffff8003, 0x7ffffffe }, { 0xa0000000, 0xffffff80, 0xffffff80, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555556, 0x55555556, 0x80000001 }, { 0x30000000, 0xffffff82, 0xffffff82, 0x00007ffe }, { 0x90000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xfffeff81, 0xfffeff81, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0xc0000000, 0xcccccccd, 0xcccccccd, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0x90000000, 0xaaa9aaaa, 0xaaa9aaaa, 0xffff8000 }, { 0xc0000000, 0xfffeffc0, 0xfffeffc0, 0xffffffe0 }, { 0xc0000000, 0x0000ffff, 0x0000ffff, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xfffefffd, 0xfffefffd, 0xfffffffe }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000003, 0x00000003, 0x80000001 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0xffffff80 }, { 0xa0000000, 0xcccccccc, 0xcccccccc, 0x00007ffe }, { 0xd0000000, 0x7ffeff7d, 0x7ffeff7d, 0xffffff80 }, { 0x30000000, 0x0000007d, 0x0000007d, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xfffe7f84, 0xfffe7f84, 0xffffff81 }, { 0x20000000, 0x00000000, 0x00000000, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff7f, 0xffffff7f, 0x00007ffd }, { 0xe0000000, 0xfffeff7d, 0xfffeff7d, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8003 }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7fff007b, 0x7fff007b, 0x0000007e }, { 0x30000000, 0xffffffff, 0xffffffff, 0x7ffffffd }, { 0xa0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0xd0000000, 0xffffffa3, 0xffffffa3, 0x00000020 }, { 0xc0000000, 0x0000fffe, 0x0000fffe, 0x00007ffd }, { 0xd0000000, 0xccccccec, 0xccccccec, 0x00000020 }, { 0xa0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00330035, 0x00330035, 0x33333333 }, { 0xa0000000, 0xffffff81, 0xffffff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0x00328034, 0x00328034, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0x00328033, 0x00328033, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8081, 0xffff8081, 0x0000007f }, { 0xc0000000, 0x7ffeffdd, 0x7ffeffdd, 0xffffffe0 }, { 0xf0000000, 0xffff0003, 0xffff0003, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55545554, 0x55545554, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0x0000007e, 0x0000007e, 0xffff8002 }, { 0x20000000, 0xffffff82, 0xffffff82, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0x00007ffe, 0x00007ffe, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0xd0000000, 0x55555554, 0x55555554, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xfffefffd, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffd, 0x00007ffd, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0xffff7ffe, 0xffff7ffe, 0x7fffffff }, { 0xf0000000, 0x7fa9ffa7, 0x7fa9ffa7, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0xffffff82, 0x00000001 }, { 0x20000000, 0xffffff81, 0xffffff81, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccbcc4e, 0xcccbcc4e, 0xffffff82 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffffff }, { 0x20000000, 0x7ffffffe, 0x7ffffffe, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffe0000, 0xfffe0000, 0xffff8002 }, { 0x90000000, 0xffff007a, 0xffff007a, 0xfffffffd }, { 0x20000000, 0x55555555, 0x55555555, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x80000001, 0x80000001, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xfffe7ffd, 0xfffe7ffd, 0xfffffffd }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x55555555 }, { 0xc0000000, 0xfffeff03, 0xfffeff03, 0xffffff83 }, { 0xa0000000, 0x7ffffffe, 0x7ffffffe, 0xffffff80 }, { 0x90000000, 0xffcb7fce, 0xffcb7fce, 0xcccccccc }, { 0xc0000000, 0xfffffffc, 0xfffffffc, 0x00007fff }, { 0xf0000000, 0xffff007e, 0xffff007e, 0xffffffff }, { 0xe0000000, 0x00550075, 0x00550075, 0x55555555 }, { 0x90000000, 0x7ffffffc, 0x7ffffffc, 0x00007ffe }, { 0xe0000000, 0xffcc7fc9, 0xffcc7fc9, 0xcccccccc }, { 0x30000000, 0x00000001, 0x00000001, 0xffff8003 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xfffeff04, 0xfffeff04, 0xffffff83 }, { 0x30000000, 0x00007fff, 0x00007fff, 0xffffffe0 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0xffff7f81, 0xffff7f81, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffd, 0x00007ffd, 0x00000001 }, { 0xe0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff82 }, { 0x30000000, 0x00000020, 0x00000020, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x80000000, 0x80000000, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x80540053, 0x80540053, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000001, 0x00000001, 0x80000001 }, { 0xc0000000, 0xfffe8001, 0xfffe8001, 0xffff8001 }, { 0xc0000000, 0x7ffffffb, 0x7ffffffb, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff82, 0xffffff82, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0xa0000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0xffaa7fa8, 0xffaa7fa8, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_le_r7_r7_r11[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0xffff7ffc, 0xffff7ffc, 0x7ffffffe }, { 0x90000000, 0x00000001, 0x00000001, 0x0000007d }, { 0xc0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0xc0000000, 0x55555575, 0x55555575, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0xffff7ffc, 0xffff7ffc, 0xfffffffe }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0xffffffff, 0xffffffff, 0xfffffffd }, { 0x20000000, 0xffffff80, 0xffffff80, 0xffff8003 }, { 0xf0000000, 0xfffffffb, 0xfffffffb, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xf0000000, 0x00007ffc, 0x00007ffc, 0x00007ffd }, { 0xf0000000, 0x555454d7, 0x555454d7, 0xffffff82 }, { 0xa0000000, 0xfffe8001, 0xfffe8001, 0x7ffffffe }, { 0xa0000000, 0xfffeff7f, 0xfffeff7f, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555555, 0x55555555, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xfffeff81, 0xfffeff81, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0xc0000000, 0xcccccccd, 0xcccccccd, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0x90000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000 }, { 0xc0000000, 0xfffeffc0, 0xfffeffc0, 0xffffffe0 }, { 0xc0000000, 0x0000ffff, 0x0000ffff, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xfffefffd, 0xfffefffd, 0xfffffffe }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007b, 0x0000007b, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000003, 0x00000003, 0x80000001 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0xffffff80 }, { 0xa0000000, 0xccccccca, 0xccccccca, 0x00007ffe }, { 0xd0000000, 0x7ffeff7d, 0x7ffeff7d, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xfffe7f84, 0xfffe7f84, 0xffffff81 }, { 0x20000000, 0x00000000, 0x00000000, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff7f, 0xffffff7f, 0x00007ffd }, { 0xe0000000, 0xfffeff7d, 0xfffeff7d, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaa9aaad, 0xaaa9aaad, 0xffff8003 }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7fff007b, 0x7fff007b, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0xd0000000, 0xffffffa3, 0xffffffa3, 0x00000020 }, { 0xc0000000, 0x0000fffe, 0x0000fffe, 0x00007ffd }, { 0xd0000000, 0xccccccec, 0xccccccec, 0x00000020 }, { 0xa0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00330035, 0x00330035, 0x33333333 }, { 0xa0000000, 0xfffeff81, 0xfffeff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007c, 0x0000007c, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0xffff8001, 0xffff8001, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0x00328033, 0x00328033, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8081, 0xffff8081, 0x0000007f }, { 0xc0000000, 0x7ffeffdd, 0x7ffeffdd, 0xffffffe0 }, { 0xf0000000, 0xffff0003, 0xffff0003, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55545554, 0x55545554, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xffffff82, 0xffffff82, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0xffff7ffd, 0xffff7ffd, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0xd0000000, 0x55555554, 0x55555554, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xfffefffd, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffd, 0x00007ffd, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0xffff7ffe, 0xffff7ffe, 0x7fffffff }, { 0xf0000000, 0x7fa9ffa7, 0x7fa9ffa7, 0xaaaaaaaa }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x00000001 }, { 0x20000000, 0xffffff81, 0xffffff81, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccbcc4e, 0xcccbcc4e, 0xffffff82 }, { 0xa0000000, 0x55545554, 0x55545554, 0xffffffff }, { 0x20000000, 0x7ffffffe, 0x7ffffffe, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffffffe, 0xfffffffe, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x0000007d, 0xfffffffd }, { 0x20000000, 0x55555555, 0x55555555, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x80000001, 0x80000001, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xfffe7ffd, 0xfffe7ffd, 0xfffffffd }, { 0xa0000000, 0x005500d2, 0x005500d2, 0x55555555 }, { 0xc0000000, 0xfffeff03, 0xfffeff03, 0xffffff83 }, { 0xa0000000, 0x7ffeff7e, 0x7ffeff7e, 0xffffff80 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xcccccccc }, { 0xc0000000, 0xfffffffc, 0xfffffffc, 0x00007fff }, { 0xf0000000, 0xffff007e, 0xffff007e, 0xffffffff }, { 0xe0000000, 0x00550075, 0x00550075, 0x55555555 }, { 0x90000000, 0x7ffffffe, 0x7ffffffe, 0x00007ffe }, { 0xe0000000, 0xffcc7fc9, 0xffcc7fc9, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x555454d5, 0x555454d5, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xfffeff04, 0xfffeff04, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0xffff7f81, 0xffff7f81, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x80540053, 0x80540053, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xfffe8001, 0xfffe8001, 0xffff8001 }, { 0xc0000000, 0x7ffffffb, 0x7ffffffb, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff82, 0xffffff82, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0xa0000000, 0x7fff0000, 0x7fff0000, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0xffaa7fa8, 0xffaa7fa8, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007a, 0x0000007a, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_vc_r14_r14_r7[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0xffff7ffc, 0xffff7ffc, 0x7ffffffe }, { 0x90000000, 0x00000001, 0x00000001, 0x0000007d }, { 0xc0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0xc0000000, 0x55555575, 0x55555575, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8001, 0xffff8001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xfffffffe }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0x10000000, 0x00007fff, 0x00007fff, 0x7ffffffe }, { 0xf0000000, 0x00000002, 0x00000002, 0xfffffffd }, { 0x20000000, 0xfffeff83, 0xfffeff83, 0xffff8003 }, { 0xf0000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0x00007ffd }, { 0xf0000000, 0x55555555, 0x55555555, 0xffffff82 }, { 0xa0000000, 0xfffe8001, 0xfffe8001, 0x7ffffffe }, { 0xa0000000, 0xfffeff7f, 0xfffeff7f, 0x7fffffff }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffffe0 }, { 0x90000000, 0x55555555, 0x55555555, 0x80000001 }, { 0x30000000, 0xffffff82, 0xffffff82, 0x00007ffe }, { 0x90000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0x00007ffd, 0x00007ffd, 0xffffff80 }, { 0xc0000000, 0xfffeff81, 0xfffeff81, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0xc0000000, 0xcccccccd, 0xcccccccd, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0x90000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000 }, { 0xc0000000, 0xfffeffc0, 0xfffeffc0, 0xffffffe0 }, { 0xc0000000, 0x0000ffff, 0x0000ffff, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555555, 0x55555555, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xffffffff, 0xffffffff, 0xfffffffe }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007b, 0x0000007b, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0xffffff80 }, { 0xa0000000, 0xccccccca, 0xccccccca, 0x00007ffe }, { 0xd0000000, 0x7ffffffd, 0x7ffffffd, 0xffffff80 }, { 0x30000000, 0x0000007d, 0x0000007d, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xfffe7f84, 0xfffe7f84, 0xffffff81 }, { 0x20000000, 0x00000001, 0x00000001, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff82, 0xffffff82, 0x00007ffd }, { 0xe0000000, 0xfffeff7d, 0xfffeff7d, 0xfffffffd }, { 0x50000000, 0x7ffffffe, 0x7ffffffe, 0xfffffffd }, { 0xa0000000, 0xaaa9aaad, 0xaaa9aaad, 0xffff8003 }, { 0x20000000, 0xffffff7e, 0xffffff7e, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0x0000007e }, { 0x30000000, 0xffffffff, 0xffffffff, 0x7ffffffd }, { 0xa0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0xd0000000, 0xffffff83, 0xffffff83, 0x00000020 }, { 0xc0000000, 0x0000fffe, 0x0000fffe, 0x00007ffd }, { 0xd0000000, 0xcccccccc, 0xcccccccc, 0x00000020 }, { 0xa0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0x10000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xf0000000, 0x00000002, 0x00000002, 0x33333333 }, { 0xa0000000, 0xfffeff81, 0xfffeff81, 0xffff8000 }, { 0x50000000, 0xffffffe0, 0xffffffe0, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x50000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007c, 0x0000007c, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0xffff8001, 0xffff8001, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555555, 0x55555555, 0x00007ffd }, { 0xc0000000, 0x00328033, 0x00328033, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x0000007e, 0x0000007e, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0x00000020, 0x00000020, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x0000007f }, { 0xc0000000, 0x7ffeffdd, 0x7ffeffdd, 0xffffffe0 }, { 0xf0000000, 0x00000002, 0x00000002, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0x00000001, 0x00000001, 0x7ffffffd }, { 0x70000000, 0x0000007d, 0x0000007d, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff8001, 0xffff8001, 0x00007ffe }, { 0xc0000000, 0x55545554, 0x55545554, 0x7fffffff }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0xffffffff }, { 0x10000000, 0x00007ffe, 0x00007ffe, 0xffff8002 }, { 0x30000000, 0x0000007e, 0x0000007e, 0xffff8002 }, { 0x20000000, 0xfffeff84, 0xfffeff84, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0xffff7ffd, 0xffff7ffd, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0xd0000000, 0x55555555, 0x55555555, 0x00007fff }, { 0x50000000, 0xffff8002, 0xffff8002, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xfffefffd, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xffff8002, 0xffff8002, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55555555, 0x55555555, 0xfffffffe }, { 0xd0000000, 0x00007ffe, 0x00007ffe, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0xffff7ffe, 0xffff7ffe, 0x7fffffff }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x00000001 }, { 0x20000000, 0xfffeff7e, 0xfffeff7e, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccbcc4e, 0xcccbcc4e, 0xffffff82 }, { 0xa0000000, 0x55545554, 0x55545554, 0xffffffff }, { 0x20000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffffffe, 0xfffffffe, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x0000007d, 0xfffffffd }, { 0x20000000, 0x55545535, 0x55545535, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x7fff0004, 0x7fff0004, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xfffffffd }, { 0xa0000000, 0x005500d2, 0x005500d2, 0x55555555 }, { 0xc0000000, 0xfffeff03, 0xfffeff03, 0xffffff83 }, { 0xa0000000, 0x7ffeff7e, 0x7ffeff7e, 0xffffff80 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xcccccccc }, { 0xc0000000, 0xfffffffc, 0xfffffffc, 0x00007fff }, { 0xf0000000, 0x0000007f, 0x0000007f, 0xffffffff }, { 0xe0000000, 0x00550075, 0x00550075, 0x55555555 }, { 0x90000000, 0x7ffffffe, 0x7ffffffe, 0x00007ffe }, { 0xe0000000, 0xffcc7fc9, 0xffcc7fc9, 0xcccccccc }, { 0x30000000, 0x00000001, 0x00000001, 0xffff8003 }, { 0xa0000000, 0x555454d5, 0x555454d5, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xfffeff04, 0xfffeff04, 0xffffff83 }, { 0x30000000, 0x00007fff, 0x00007fff, 0xffffffe0 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffd, 0x00007ffd, 0x00000001 }, { 0xe0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff82 }, { 0x30000000, 0x00000020, 0x00000020, 0x00007ffd }, { 0x10000000, 0x00000000, 0x00000000, 0x00007ffd }, { 0x30000000, 0x80000000, 0x80000000, 0xffffff82 }, { 0x70000000, 0xffffffe0, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0x80540053, 0x80540053, 0x55555555 }, { 0x70000000, 0x7fffffff, 0x7fffffff, 0x55555555 }, { 0x30000000, 0x00000001, 0x00000001, 0x80000001 }, { 0xc0000000, 0xfffe8001, 0xfffe8001, 0xffff8001 }, { 0xc0000000, 0x7ffffffb, 0x7ffffffb, 0x00007ffe }, { 0x70000000, 0xffffff82, 0xffffff82, 0x7ffffffd }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0xa0000000, 0x7fff0000, 0x7fff0000, 0x00000001 }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffff83 }, { 0xe0000000, 0xffaa7fa8, 0xffaa7fa8, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007a, 0x0000007a, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_vs_r3_r3_r14[] = { { 0x60000000, 0x00000000, 0x00000000, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0x7ffffffe }, { 0x90000000, 0x0000007e, 0x0000007e, 0x0000007d }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000020 }, { 0xb0000000, 0x00000003, 0x00000003, 0x00000002 }, { 0xb0000000, 0x00540054, 0x00540054, 0x55555555 }, { 0x90000000, 0x8000fffe, 0x8000fffe, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xfffeff81, 0xfffeff81, 0xffffff82 }, { 0x60000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0xffff7ffc, 0xffff7ffc, 0xfffffffe }, { 0xc0000000, 0x00000002, 0x00000002, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0xffffffff, 0xffffffff, 0xfffffffd }, { 0x20000000, 0xffffff80, 0xffffff80, 0xffff8003 }, { 0xf0000000, 0xfffffffb, 0xfffffffb, 0x00007ffe }, { 0xb0000000, 0xfffeff82, 0xfffeff82, 0xffffffff }, { 0x80000000, 0x0000007f, 0x0000007f, 0x00000002 }, { 0xc0000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xf0000000, 0x00007ffc, 0x00007ffc, 0x00007ffd }, { 0xf0000000, 0x555454d7, 0x555454d7, 0xffffff82 }, { 0xa0000000, 0xffff8003, 0xffff8003, 0x7ffffffe }, { 0xa0000000, 0xffffff80, 0xffffff80, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555556, 0x55555556, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0x40000000, 0x00007fff, 0x00007fff, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xffff8000, 0xffff8000, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xffffff83, 0xffffff83, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0x40000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x20000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0xc0000000, 0xcccccccc, 0xcccccccc, 0x00000001 }, { 0x40000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xffffffe0, 0xffffffff }, { 0xa0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0x90000000, 0xaaa9aaaa, 0xaaa9aaaa, 0xffff8000 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0xc0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0x40000000, 0x33333333, 0x33333333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000021, 0x00000021, 0x00000020 }, { 0xe0000000, 0xfffffffd, 0xfffffffd, 0x00000001 }, { 0x80000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xe0000000, 0x0000007d, 0x0000007d, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xfffefffd, 0xfffefffd, 0xfffffffe }, { 0xc0000000, 0x00000000, 0x00000000, 0xfffffffd }, { 0xb0000000, 0xffff7ffe, 0xffff7ffe, 0xffff8001 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffe }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000020 }, { 0xf0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000003, 0x00000003, 0x80000001 }, { 0xc0000000, 0x0000007f, 0x0000007f, 0xffffff80 }, { 0xa0000000, 0xcccccccc, 0xcccccccc, 0x00007ffe }, { 0xd0000000, 0x7ffeff7d, 0x7ffeff7d, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffd, 0x7ffffffd, 0x80000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff81 }, { 0x20000000, 0x00000000, 0x00000000, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff7f, 0xffffff7f, 0x00007ffd }, { 0xe0000000, 0xffffff80, 0xffffff80, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8003 }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7fff007b, 0x7fff007b, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0xd0000000, 0xffffffa3, 0xffffffa3, 0x00000020 }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007ffd }, { 0xd0000000, 0xccccccec, 0xccccccec, 0x00000020 }, { 0xa0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00330035, 0x00330035, 0x33333333 }, { 0xa0000000, 0xffffff81, 0xffffff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffefffb, 0xfffefffb, 0x7ffffffe }, { 0x90000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xffffff80, 0xffffff80, 0x7ffffffe }, { 0x40000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0x90000000, 0x00328034, 0x00328034, 0x33333333 }, { 0xb0000000, 0xffff7fff, 0xffff7fff, 0x00007ffd }, { 0xa0000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x333333b0, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0xffff8000, 0xffff8000, 0x33333333 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x80000001 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8081, 0xffff8081, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0xffffffe0 }, { 0xf0000000, 0xffff0003, 0xffff0003, 0xffff8001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55555555, 0x55555555, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xffffff82, 0xffffff82, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0x00007ffe, 0x00007ffe, 0x7fffffff }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x0000007d }, { 0xd0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0xd0000000, 0x55555554, 0x55555554, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffffffe, 0xfffffffe, 0x7fffffff }, { 0x60000000, 0x80000001, 0x80000001, 0x80000001 }, { 0x60000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffd, 0x00007ffd, 0x00007fff }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffffff81 }, { 0x40000000, 0x00000020, 0x00000020, 0xfffffffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x7fffffff }, { 0xf0000000, 0x7fa9ffa7, 0x7fa9ffa7, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0xffffff82, 0x00000001 }, { 0x20000000, 0xffffff81, 0xffffff81, 0xfffffffd }, { 0xb0000000, 0xfffeff83, 0xfffeff83, 0xffff8001 }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0xffffff82 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffffff }, { 0x20000000, 0x7ffffffe, 0x7ffffffe, 0x00000001 }, { 0x40000000, 0x00007fff, 0x00007fff, 0x0000007e }, { 0x90000000, 0xfffe0000, 0xfffe0000, 0xffff8002 }, { 0x90000000, 0xffff007a, 0xffff007a, 0xfffffffd }, { 0x20000000, 0x55555555, 0x55555555, 0xffffffe0 }, { 0x60000000, 0xcccccccc, 0xcccccccc, 0x0000007d }, { 0xb0000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x80000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x20000000, 0x80000001, 0x80000001, 0xffff8003 }, { 0xb0000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xf0000000, 0xfffe7ffd, 0xfffe7ffd, 0xfffffffd }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x55555555 }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x7ffffffe, 0x7ffffffe, 0xffffff80 }, { 0x90000000, 0xffcb7fce, 0xffcb7fce, 0xcccccccc }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00007fff }, { 0xf0000000, 0xffff007e, 0xffff007e, 0xffffffff }, { 0xe0000000, 0x00000020, 0x00000020, 0x55555555 }, { 0x90000000, 0x7ffffffc, 0x7ffffffc, 0x00007ffe }, { 0xe0000000, 0x00007ffd, 0x00007ffd, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffff80 }, { 0xb0000000, 0xffff7f81, 0xffff7f81, 0xffffff83 }, { 0x60000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xc0000000, 0xffffff81, 0xffffff81, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0xffff7f81, 0xffff7f81, 0xffffff82 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x7ffffffe, 0x7ffffffe, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xffff8000, 0xffff8000, 0xffff8001 }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff82, 0xffffff82, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x7faaffaa, 0x7faaffaa, 0xaaaaaaaa }, { 0xc0000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0xa0000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0xffffff81 }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x40000000, 0xffffffe0, 0xffffffe0, 0x0000007f }, { 0x60000000, 0x33333333, 0x33333333, 0x00007ffe }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffff8002 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_pl_r10_r10_r7[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0x7ffffffe }, { 0x90000000, 0x00000001, 0x00000001, 0x0000007d }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xfffffffe }, { 0xc0000000, 0x00000002, 0x00000002, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0x00000002, 0x00000002, 0xfffffffd }, { 0x20000000, 0xfffeff83, 0xfffeff83, 0xffff8003 }, { 0xf0000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x0000007f, 0x0000007f, 0x00000002 }, { 0xc0000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0x00007ffd }, { 0xf0000000, 0x55555555, 0x55555555, 0xffffff82 }, { 0xa0000000, 0xffff8003, 0xffff8003, 0x7ffffffe }, { 0xa0000000, 0xffffff80, 0xffffff80, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555555, 0x55555555, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xffff8000, 0xffff8000, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xffffff83, 0xffffff83, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0xc0000000, 0xcccccccc, 0xcccccccc, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xffffffe0, 0xffffffff }, { 0xa0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0x90000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0xc0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffd, 0xfffffffd, 0x00000001 }, { 0x80000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xe0000000, 0x0000007d, 0x0000007d, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xffffffff, 0xffffffff, 0xfffffffe }, { 0xc0000000, 0x00000000, 0x00000000, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffe }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000020 }, { 0xf0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0x0000007f, 0x0000007f, 0xffffff80 }, { 0xa0000000, 0xcccccccc, 0xcccccccc, 0x00007ffe }, { 0xd0000000, 0x7ffffffd, 0x7ffffffd, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff81 }, { 0x20000000, 0x00000001, 0x00000001, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff82, 0xffffff82, 0x00007ffd }, { 0xe0000000, 0xffffff80, 0xffffff80, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8003 }, { 0x20000000, 0xffffff7e, 0xffffff7e, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0xd0000000, 0xffffff83, 0xffffff83, 0x00000020 }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007ffd }, { 0xd0000000, 0xcccccccc, 0xcccccccc, 0x00000020 }, { 0xa0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00000002, 0x00000002, 0x33333333 }, { 0xa0000000, 0xffffff81, 0xffffff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0xffff8001, 0xffff8001, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0xffff8000, 0xffff8000, 0x33333333 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0xffffffe0 }, { 0xf0000000, 0x00000002, 0x00000002, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55555555, 0x55555555, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xfffeff84, 0xfffeff84, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0x00007ffe, 0x00007ffe, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0xd0000000, 0x55555555, 0x55555555, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffffffe, 0xfffffffe, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xffff8002, 0xffff8002, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffe, 0x00007ffe, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x7fffffff }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0xffffff82, 0x00000001 }, { 0x20000000, 0xfffeff7e, 0xfffeff7e, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0xffffff82 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffffff }, { 0x20000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffffffe, 0xfffffffe, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x0000007d, 0xfffffffd }, { 0x20000000, 0x55545535, 0x55545535, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x20000000, 0x7fff0004, 0x7fff0004, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xfffffffd }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x55555555 }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x7ffffffe, 0x7ffffffe, 0xffffff80 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xcccccccc }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00007fff }, { 0xf0000000, 0x0000007f, 0x0000007f, 0xffffffff }, { 0xe0000000, 0x00000020, 0x00000020, 0x55555555 }, { 0x90000000, 0x7ffffffe, 0x7ffffffe, 0x00007ffe }, { 0xe0000000, 0x00007ffd, 0x00007ffd, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xffffff81, 0xffffff81, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0xffffff82 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x7ffffffe, 0x7ffffffe, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xffff8000, 0xffff8000, 0xffff8001 }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0xa0000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0xffffff81 }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_hi_r8_r8_r7[] = { { 0x60000000, 0x00000000, 0x00000000, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0x7ffffffe }, { 0x90000000, 0x00000001, 0x00000001, 0x0000007d }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000020 }, { 0xb0000000, 0x00000003, 0x00000003, 0x00000002 }, { 0xb0000000, 0x00540054, 0x00540054, 0x55555555 }, { 0x90000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xfffeff81, 0xfffeff81, 0xffffff82 }, { 0x60000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xfffffffe }, { 0xc0000000, 0x00000002, 0x00000002, 0x00007fff }, { 0x10000000, 0x00007fff, 0x00007fff, 0x7ffffffe }, { 0xf0000000, 0x00000002, 0x00000002, 0xfffffffd }, { 0x20000000, 0xfffeff83, 0xfffeff83, 0xffff8003 }, { 0xf0000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0xb0000000, 0xfffeff82, 0xfffeff82, 0xffffffff }, { 0x80000000, 0x0000007f, 0x0000007f, 0x00000002 }, { 0xc0000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0x00007ffd }, { 0xf0000000, 0x55555555, 0x55555555, 0xffffff82 }, { 0xa0000000, 0xfffe8001, 0xfffe8001, 0x7ffffffe }, { 0xa0000000, 0xfffeff7f, 0xfffeff7f, 0x7fffffff }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffffe0 }, { 0x90000000, 0x55555555, 0x55555555, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0x40000000, 0x00007fff, 0x00007fff, 0x55555555 }, { 0x10000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xffff8000, 0xffff8000, 0xffff8003 }, { 0x50000000, 0x00007ffd, 0x00007ffd, 0xffffff80 }, { 0xc0000000, 0xffffff83, 0xffffff83, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0x40000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x20000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0xc0000000, 0xcccccccc, 0xcccccccc, 0x00000001 }, { 0x40000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xffffffe0, 0xffffffff }, { 0xa0000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0x90000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0xc0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0x40000000, 0x33333333, 0x33333333, 0xffff8000 }, { 0x10000000, 0x55555555, 0x55555555, 0x00000001 }, { 0xb0000000, 0x00000021, 0x00000021, 0x00000020 }, { 0xe0000000, 0xfffffffd, 0xfffffffd, 0x00000001 }, { 0x80000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xe0000000, 0x0000007d, 0x0000007d, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xffffffff, 0xffffffff, 0xfffffffe }, { 0xc0000000, 0x00000000, 0x00000000, 0xfffffffd }, { 0xb0000000, 0xffff7ffe, 0xffff7ffe, 0xffff8001 }, { 0xa0000000, 0x0000007b, 0x0000007b, 0x00007ffe }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000020 }, { 0xf0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0x0000007f, 0x0000007f, 0xffffff80 }, { 0xa0000000, 0xccccccca, 0xccccccca, 0x00007ffe }, { 0xd0000000, 0x7ffffffd, 0x7ffffffd, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffd, 0x7ffffffd, 0x80000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff81 }, { 0x20000000, 0x00000001, 0x00000001, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff82, 0xffffff82, 0x00007ffd }, { 0xe0000000, 0xffffff80, 0xffffff80, 0xfffffffd }, { 0x50000000, 0x7ffffffe, 0x7ffffffe, 0xfffffffd }, { 0xa0000000, 0xaaa9aaad, 0xaaa9aaad, 0xffff8003 }, { 0x20000000, 0xffffff7e, 0xffffff7e, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0xd0000000, 0xffffff83, 0xffffff83, 0x00000020 }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007ffd }, { 0xd0000000, 0xcccccccc, 0xcccccccc, 0x00000020 }, { 0xa0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0x10000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xf0000000, 0x00000002, 0x00000002, 0x33333333 }, { 0xa0000000, 0xfffeff81, 0xfffeff81, 0xffff8000 }, { 0x50000000, 0xffffffe0, 0xffffffe0, 0x55555555 }, { 0xb0000000, 0xfffefffb, 0xfffefffb, 0x7ffffffe }, { 0x90000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x50000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007c, 0x0000007c, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xffffff80, 0xffffff80, 0x7ffffffe }, { 0x40000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0x90000000, 0xffff8001, 0xffff8001, 0x33333333 }, { 0xb0000000, 0xffff7fff, 0xffff7fff, 0x00007ffd }, { 0xa0000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x333333b0, 0x0000007d }, { 0x10000000, 0x55555555, 0x55555555, 0x00007ffd }, { 0xc0000000, 0xffff8000, 0xffff8000, 0x33333333 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x80000001 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x00000020 }, { 0x50000000, 0x0000007e, 0x0000007e, 0x0000007f }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffffff }, { 0x70000000, 0x00000020, 0x00000020, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0xffffffe0 }, { 0xf0000000, 0x00000002, 0x00000002, 0xffff8001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x33333333 }, { 0x70000000, 0x00000001, 0x00000001, 0x7ffffffd }, { 0x70000000, 0x0000007d, 0x0000007d, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff8001, 0xffff8001, 0x00007ffe }, { 0xc0000000, 0x55555555, 0x55555555, 0x7fffffff }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0xffffffff }, { 0x10000000, 0x00007ffe, 0x00007ffe, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xfffeff84, 0xfffeff84, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0xffff7ffd, 0xffff7ffd, 0x7fffffff }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x0000007d }, { 0xd0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0xd0000000, 0x55555555, 0x55555555, 0x00007fff }, { 0x50000000, 0xffff8002, 0xffff8002, 0xaaaaaaaa }, { 0xc0000000, 0xfffffffe, 0xfffffffe, 0x7fffffff }, { 0x60000000, 0x80000001, 0x80000001, 0x80000001 }, { 0x60000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0xffff8002, 0xffff8002, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55555555, 0x55555555, 0xfffffffe }, { 0xd0000000, 0x00007ffe, 0x00007ffe, 0x00007fff }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffffff81 }, { 0x40000000, 0x00000020, 0x00000020, 0xfffffffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x7fffffff }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x00000001 }, { 0x20000000, 0xfffeff7e, 0xfffeff7e, 0xfffffffd }, { 0xb0000000, 0xfffeff83, 0xfffeff83, 0xffff8001 }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0xffffff82 }, { 0xa0000000, 0x55545554, 0x55545554, 0xffffffff }, { 0x20000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x40000000, 0x00007fff, 0x00007fff, 0x0000007e }, { 0x90000000, 0xfffffffe, 0xfffffffe, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x0000007d, 0xfffffffd }, { 0x20000000, 0x55545535, 0x55545535, 0xffffffe0 }, { 0x60000000, 0xcccccccc, 0xcccccccc, 0x0000007d }, { 0xb0000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x80000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x20000000, 0x7fff0004, 0x7fff0004, 0xffff8003 }, { 0xb0000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xfffffffd }, { 0xa0000000, 0x005500d2, 0x005500d2, 0x55555555 }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x7ffeff7e, 0x7ffeff7e, 0xffffff80 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xcccccccc }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00007fff }, { 0xf0000000, 0x0000007f, 0x0000007f, 0xffffffff }, { 0xe0000000, 0x00000020, 0x00000020, 0x55555555 }, { 0x90000000, 0x7ffffffe, 0x7ffffffe, 0x00007ffe }, { 0xe0000000, 0x00007ffd, 0x00007ffd, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x555454d5, 0x555454d5, 0xffffff80 }, { 0xb0000000, 0xffff7f81, 0xffff7f81, 0xffffff83 }, { 0x60000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xc0000000, 0xffffff81, 0xffffff81, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0xffffff82 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x00000000, 0x00000000, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe0, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0x7ffffffe, 0x7ffffffe, 0x55555555 }, { 0x70000000, 0x7fffffff, 0x7fffffff, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xffff8000, 0xffff8000, 0xffff8001 }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0x00007ffe }, { 0x70000000, 0xffffff82, 0xffffff82, 0x7ffffffd }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x7faaffaa, 0x7faaffaa, 0xaaaaaaaa }, { 0xc0000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0xa0000000, 0x7fff0000, 0x7fff0000, 0x00000001 }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffff83 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0xffffff81 }, { 0xa0000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x40000000, 0xffffffe0, 0xffffffe0, 0x0000007f }, { 0x60000000, 0x33333333, 0x33333333, 0x00007ffe }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffff8002 }, { 0xa0000000, 0x0000007a, 0x0000007a, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_le_r8_r8_r6[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0xffff7ffc, 0xffff7ffc, 0x7ffffffe }, { 0x90000000, 0x00000001, 0x00000001, 0x0000007d }, { 0xc0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0xc0000000, 0x55555575, 0x55555575, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0xffff7ffc, 0xffff7ffc, 0xfffffffe }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0xffffffff, 0xffffffff, 0xfffffffd }, { 0x20000000, 0xffffff80, 0xffffff80, 0xffff8003 }, { 0xf0000000, 0xfffffffb, 0xfffffffb, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xf0000000, 0x00007ffc, 0x00007ffc, 0x00007ffd }, { 0xf0000000, 0x555454d7, 0x555454d7, 0xffffff82 }, { 0xa0000000, 0xfffe8001, 0xfffe8001, 0x7ffffffe }, { 0xa0000000, 0xfffeff7f, 0xfffeff7f, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555555, 0x55555555, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xfffeff81, 0xfffeff81, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0xc0000000, 0xcccccccd, 0xcccccccd, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0x90000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000 }, { 0xc0000000, 0xfffeffc0, 0xfffeffc0, 0xffffffe0 }, { 0xc0000000, 0x0000ffff, 0x0000ffff, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xfffefffd, 0xfffefffd, 0xfffffffe }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007b, 0x0000007b, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000003, 0x00000003, 0x80000001 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0xffffff80 }, { 0xa0000000, 0xccccccca, 0xccccccca, 0x00007ffe }, { 0xd0000000, 0x7ffeff7d, 0x7ffeff7d, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xfffe7f84, 0xfffe7f84, 0xffffff81 }, { 0x20000000, 0x00000000, 0x00000000, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff7f, 0xffffff7f, 0x00007ffd }, { 0xe0000000, 0xfffeff7d, 0xfffeff7d, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaa9aaad, 0xaaa9aaad, 0xffff8003 }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7fff007b, 0x7fff007b, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0xd0000000, 0xffffffa3, 0xffffffa3, 0x00000020 }, { 0xc0000000, 0x0000fffe, 0x0000fffe, 0x00007ffd }, { 0xd0000000, 0xccccccec, 0xccccccec, 0x00000020 }, { 0xa0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00330035, 0x00330035, 0x33333333 }, { 0xa0000000, 0xfffeff81, 0xfffeff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007c, 0x0000007c, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0xffff8001, 0xffff8001, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0x00328033, 0x00328033, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8081, 0xffff8081, 0x0000007f }, { 0xc0000000, 0x7ffeffdd, 0x7ffeffdd, 0xffffffe0 }, { 0xf0000000, 0xffff0003, 0xffff0003, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55545554, 0x55545554, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xffffff82, 0xffffff82, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0xffff7ffd, 0xffff7ffd, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0xd0000000, 0x55555554, 0x55555554, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xfffefffd, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffd, 0x00007ffd, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0xffff7ffe, 0xffff7ffe, 0x7fffffff }, { 0xf0000000, 0x7fa9ffa7, 0x7fa9ffa7, 0xaaaaaaaa }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x00000001 }, { 0x20000000, 0xffffff81, 0xffffff81, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccbcc4e, 0xcccbcc4e, 0xffffff82 }, { 0xa0000000, 0x55545554, 0x55545554, 0xffffffff }, { 0x20000000, 0x7ffffffe, 0x7ffffffe, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffffffe, 0xfffffffe, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x0000007d, 0xfffffffd }, { 0x20000000, 0x55555555, 0x55555555, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x80000001, 0x80000001, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xfffe7ffd, 0xfffe7ffd, 0xfffffffd }, { 0xa0000000, 0x005500d2, 0x005500d2, 0x55555555 }, { 0xc0000000, 0xfffeff03, 0xfffeff03, 0xffffff83 }, { 0xa0000000, 0x7ffeff7e, 0x7ffeff7e, 0xffffff80 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xcccccccc }, { 0xc0000000, 0xfffffffc, 0xfffffffc, 0x00007fff }, { 0xf0000000, 0xffff007e, 0xffff007e, 0xffffffff }, { 0xe0000000, 0x00550075, 0x00550075, 0x55555555 }, { 0x90000000, 0x7ffffffe, 0x7ffffffe, 0x00007ffe }, { 0xe0000000, 0xffcc7fc9, 0xffcc7fc9, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x555454d5, 0x555454d5, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xfffeff04, 0xfffeff04, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0xffff7f81, 0xffff7f81, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x80540053, 0x80540053, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xfffe8001, 0xfffe8001, 0xffff8001 }, { 0xc0000000, 0x7ffffffb, 0x7ffffffb, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff82, 0xffffff82, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0xa0000000, 0x7fff0000, 0x7fff0000, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0xffaa7fa8, 0xffaa7fa8, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007a, 0x0000007a, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_ne_r5_r5_r1[] = { { 0x60000000, 0x00000000, 0x00000000, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0x7ffffffe }, { 0x90000000, 0x0000007e, 0x0000007e, 0x0000007d }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000020 }, { 0xb0000000, 0x00000003, 0x00000003, 0x00000002 }, { 0xb0000000, 0x00540054, 0x00540054, 0x55555555 }, { 0x90000000, 0x8000fffe, 0x8000fffe, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x30000000, 0xffff8003, 0xffff8003, 0x00000002 }, { 0xb0000000, 0xfffeff81, 0xfffeff81, 0xffffff82 }, { 0x60000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xfffffffe }, { 0xc0000000, 0x00000002, 0x00000002, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0x00000002, 0x00000002, 0xfffffffd }, { 0x20000000, 0xfffeff83, 0xfffeff83, 0xffff8003 }, { 0xf0000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0xb0000000, 0xfffeff82, 0xfffeff82, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0x00007ffd }, { 0xf0000000, 0x55555555, 0x55555555, 0xffffff82 }, { 0xa0000000, 0xfffe8001, 0xfffe8001, 0x7ffffffe }, { 0xa0000000, 0xfffeff7f, 0xfffeff7f, 0x7fffffff }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffffe0 }, { 0x90000000, 0x55555556, 0x55555556, 0x80000001 }, { 0x30000000, 0xffffff80, 0xffffff80, 0x00007ffe }, { 0x90000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0x40000000, 0x00007fff, 0x00007fff, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0x00007ffd, 0x00007ffd, 0xffffff80 }, { 0xc0000000, 0xffffff83, 0xffffff83, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0x40000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x20000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0xc0000000, 0xcccccccc, 0xcccccccc, 0x00000001 }, { 0x40000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0x90000000, 0xaaa9aaaa, 0xaaa9aaaa, 0xffff8000 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0xc0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0x40000000, 0x33333333, 0x33333333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000021, 0x00000021, 0x00000020 }, { 0xe0000000, 0xfffffffd, 0xfffffffd, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0x0000007d, 0x0000007d, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xffffffff, 0xffffffff, 0xfffffffe }, { 0xc0000000, 0x00000000, 0x00000000, 0xfffffffd }, { 0xb0000000, 0xffff7ffe, 0xffff7ffe, 0xffff8001 }, { 0xa0000000, 0x0000007b, 0x0000007b, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0x0000007f, 0x0000007f, 0xffffff80 }, { 0xa0000000, 0xccccccca, 0xccccccca, 0x00007ffe }, { 0xd0000000, 0x7ffffffd, 0x7ffffffd, 0xffffff80 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8003 }, { 0x40000000, 0x7ffffffd, 0x7ffffffd, 0x80000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff81 }, { 0x20000000, 0x00000001, 0x00000001, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff82, 0xffffff82, 0x00007ffd }, { 0xe0000000, 0xffffff80, 0xffffff80, 0xfffffffd }, { 0x50000000, 0x7ffffffe, 0x7ffffffe, 0xfffffffd }, { 0xa0000000, 0xaaa9aaad, 0xaaa9aaad, 0xffff8003 }, { 0x20000000, 0xffffff7e, 0xffffff7e, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0x0000007e }, { 0x30000000, 0xfffefffc, 0xfffefffc, 0x7ffffffd }, { 0xa0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0xd0000000, 0xffffff83, 0xffffff83, 0x00000020 }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007ffd }, { 0xd0000000, 0xcccccccc, 0xcccccccc, 0x00000020 }, { 0xa0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00000002, 0x00000002, 0x33333333 }, { 0xa0000000, 0xfffeff81, 0xfffeff81, 0xffff8000 }, { 0x50000000, 0xffffffe0, 0xffffffe0, 0x55555555 }, { 0xb0000000, 0xfffefffb, 0xfffefffb, 0x7ffffffe }, { 0x90000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x50000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007c, 0x0000007c, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xffffff80, 0xffffff80, 0x7ffffffe }, { 0x40000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0x90000000, 0x00328034, 0x00328034, 0x33333333 }, { 0xb0000000, 0xffff7fff, 0xffff7fff, 0x00007ffd }, { 0xa0000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x333333b0, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0xffff8000, 0xffff8000, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x00000020 }, { 0x50000000, 0x0000007e, 0x0000007e, 0x0000007f }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffffff }, { 0x70000000, 0x00000020, 0x00000020, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0xffffffe0 }, { 0xf0000000, 0x00000002, 0x00000002, 0xffff8001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x33333333 }, { 0x70000000, 0x00000001, 0x00000001, 0x7ffffffd }, { 0x70000000, 0x0000007d, 0x0000007d, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff8001, 0xffff8001, 0x00007ffe }, { 0xc0000000, 0x55555555, 0x55555555, 0x7fffffff }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0xffff0080, 0xffff0080, 0xffff8002 }, { 0x20000000, 0xfffeff84, 0xfffeff84, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0xffff7ffd, 0xffff7ffd, 0x7fffffff }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x0000007d }, { 0xd0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0xd0000000, 0x55555555, 0x55555555, 0x00007fff }, { 0x50000000, 0xffff8002, 0xffff8002, 0xaaaaaaaa }, { 0xc0000000, 0xfffffffe, 0xfffffffe, 0x7fffffff }, { 0x60000000, 0x80000001, 0x80000001, 0x80000001 }, { 0x60000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0xffff8002, 0xffff8002, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55555555, 0x55555555, 0xfffffffe }, { 0xd0000000, 0x00007ffe, 0x00007ffe, 0x00007fff }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffffff81 }, { 0x40000000, 0x00000020, 0x00000020, 0xfffffffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x7fffffff }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x00000001 }, { 0x20000000, 0xfffeff7e, 0xfffeff7e, 0xfffffffd }, { 0xb0000000, 0xfffeff83, 0xfffeff83, 0xffff8001 }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0xffffff82 }, { 0xa0000000, 0x55545554, 0x55545554, 0xffffffff }, { 0x20000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x40000000, 0x00007fff, 0x00007fff, 0x0000007e }, { 0x90000000, 0xfffe0000, 0xfffe0000, 0xffff8002 }, { 0x90000000, 0xffff007a, 0xffff007a, 0xfffffffd }, { 0x20000000, 0x55545535, 0x55545535, 0xffffffe0 }, { 0x60000000, 0xcccccccc, 0xcccccccc, 0x0000007d }, { 0xb0000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x7fff0004, 0x7fff0004, 0xffff8003 }, { 0xb0000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xfffffffd }, { 0xa0000000, 0x005500d2, 0x005500d2, 0x55555555 }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x7ffeff7e, 0x7ffeff7e, 0xffffff80 }, { 0x90000000, 0xffcb7fce, 0xffcb7fce, 0xcccccccc }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00007fff }, { 0xf0000000, 0x0000007f, 0x0000007f, 0xffffffff }, { 0xe0000000, 0x00000020, 0x00000020, 0x55555555 }, { 0x90000000, 0x7ffffffc, 0x7ffffffc, 0x00007ffe }, { 0xe0000000, 0x00007ffd, 0x00007ffd, 0xcccccccc }, { 0x30000000, 0xffff0004, 0xffff0004, 0xffff8003 }, { 0xa0000000, 0x555454d5, 0x555454d5, 0xffffff80 }, { 0xb0000000, 0xffff7f81, 0xffff7f81, 0xffffff83 }, { 0x60000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xc0000000, 0xffffff81, 0xffffff81, 0xffffff83 }, { 0x30000000, 0xffff7fdf, 0xffff7fdf, 0xffffffe0 }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffe, 0x00007ffe, 0x00000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff82 }, { 0x30000000, 0x0000001d, 0x0000001d, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x7fffff82, 0x7fffff82, 0xffffff82 }, { 0x70000000, 0xffffffe0, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0x7ffffffe, 0x7ffffffe, 0x55555555 }, { 0x70000000, 0x7fffffff, 0x7fffffff, 0x55555555 }, { 0x30000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0xffff8000, 0xffff8000, 0xffff8001 }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0x00007ffe }, { 0x70000000, 0xffffff82, 0xffffff82, 0x7ffffffd }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x7faaffaa, 0x7faaffaa, 0xaaaaaaaa }, { 0xc0000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0xa0000000, 0x7fff0000, 0x7fff0000, 0x00000001 }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffff83 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x40000000, 0xffffffe0, 0xffffffe0, 0x0000007f }, { 0x60000000, 0x33333333, 0x33333333, 0x00007ffe }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffff8002 }, { 0xa0000000, 0x0000007a, 0x0000007a, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_gt_r10_r10_r3[] = { { 0x60000000, 0x00000000, 0x00000000, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0x7ffffffe }, { 0x90000000, 0x0000007e, 0x0000007e, 0x0000007d }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000020 }, { 0xb0000000, 0x00000003, 0x00000003, 0x00000002 }, { 0xb0000000, 0x00540054, 0x00540054, 0x55555555 }, { 0x90000000, 0x8000fffe, 0x8000fffe, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x30000000, 0xffff8001, 0xffff8001, 0x00000002 }, { 0xb0000000, 0xfffeff81, 0xfffeff81, 0xffffff82 }, { 0x60000000, 0x00000001, 0x00000001, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xfffffffe }, { 0xc0000000, 0x00000002, 0x00000002, 0x00007fff }, { 0x10000000, 0x00007fff, 0x00007fff, 0x7ffffffe }, { 0xf0000000, 0x00000002, 0x00000002, 0xfffffffd }, { 0x20000000, 0xfffeff83, 0xfffeff83, 0xffff8003 }, { 0xf0000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0xb0000000, 0xfffeff82, 0xfffeff82, 0xffffffff }, { 0x80000000, 0x0000007f, 0x0000007f, 0x00000002 }, { 0xc0000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0x00007ffd }, { 0xf0000000, 0x55555555, 0x55555555, 0xffffff82 }, { 0xa0000000, 0xffff8003, 0xffff8003, 0x7ffffffe }, { 0xa0000000, 0xffffff80, 0xffffff80, 0x7fffffff }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffffe0 }, { 0x90000000, 0x55555556, 0x55555556, 0x80000001 }, { 0x30000000, 0xffffff82, 0xffffff82, 0x00007ffe }, { 0x90000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0x40000000, 0x00007fff, 0x00007fff, 0x55555555 }, { 0x10000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xffff8000, 0xffff8000, 0xffff8003 }, { 0x50000000, 0x00007ffd, 0x00007ffd, 0xffffff80 }, { 0xc0000000, 0xffffff83, 0xffffff83, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0x40000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x20000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0xc0000000, 0xcccccccc, 0xcccccccc, 0x00000001 }, { 0x40000000, 0x00000001, 0x00000001, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xffffffe0, 0xffffffff }, { 0xa0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0x90000000, 0xaaa9aaaa, 0xaaa9aaaa, 0xffff8000 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0xc0000000, 0x00000000, 0x00000000, 0x00007fff }, { 0x40000000, 0x33333333, 0x33333333, 0xffff8000 }, { 0x10000000, 0x55555555, 0x55555555, 0x00000001 }, { 0xb0000000, 0x00000021, 0x00000021, 0x00000020 }, { 0xe0000000, 0xfffffffd, 0xfffffffd, 0x00000001 }, { 0x80000000, 0xffff8002, 0xffff8002, 0x00000001 }, { 0xe0000000, 0x0000007d, 0x0000007d, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xffffffff, 0xffffffff, 0xfffffffe }, { 0xc0000000, 0x00000000, 0x00000000, 0xfffffffd }, { 0xb0000000, 0xffff7ffe, 0xffff7ffe, 0xffff8001 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffe }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000020 }, { 0xf0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000001 }, { 0xc0000000, 0x0000007f, 0x0000007f, 0xffffff80 }, { 0xa0000000, 0xcccccccc, 0xcccccccc, 0x00007ffe }, { 0xd0000000, 0x7ffffffd, 0x7ffffffd, 0xffffff80 }, { 0x30000000, 0x0000007d, 0x0000007d, 0xffff8003 }, { 0x40000000, 0x7ffffffd, 0x7ffffffd, 0x80000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff81 }, { 0x20000000, 0x00000001, 0x00000001, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff82, 0xffffff82, 0x00007ffd }, { 0xe0000000, 0xffffff80, 0xffffff80, 0xfffffffd }, { 0x50000000, 0x7ffffffe, 0x7ffffffe, 0xfffffffd }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8003 }, { 0x20000000, 0xffffff7e, 0xffffff7e, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0x0000007e }, { 0x30000000, 0xffffffff, 0xffffffff, 0x7ffffffd }, { 0xa0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0xd0000000, 0xffffff83, 0xffffff83, 0x00000020 }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007ffd }, { 0xd0000000, 0xcccccccc, 0xcccccccc, 0x00000020 }, { 0xa0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0x10000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xf0000000, 0x00000002, 0x00000002, 0x33333333 }, { 0xa0000000, 0xffffff81, 0xffffff81, 0xffff8000 }, { 0x50000000, 0xffffffe0, 0xffffffe0, 0x55555555 }, { 0xb0000000, 0xfffefffb, 0xfffefffb, 0x7ffffffe }, { 0x90000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x50000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xffffff80, 0xffffff80, 0x7ffffffe }, { 0x40000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0x90000000, 0x00328034, 0x00328034, 0x33333333 }, { 0xb0000000, 0xffff7fff, 0xffff7fff, 0x00007ffd }, { 0xa0000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x333333b0, 0x0000007d }, { 0x10000000, 0x55555555, 0x55555555, 0x00007ffd }, { 0xc0000000, 0xffff8000, 0xffff8000, 0x33333333 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x80000001 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x00000020 }, { 0x50000000, 0x0000007e, 0x0000007e, 0x0000007f }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffffff }, { 0x70000000, 0x00000020, 0x00000020, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0xffffffe0 }, { 0xf0000000, 0x00000002, 0x00000002, 0xffff8001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x33333333 }, { 0x70000000, 0x00000001, 0x00000001, 0x7ffffffd }, { 0x70000000, 0x0000007d, 0x0000007d, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff8001, 0xffff8001, 0x00007ffe }, { 0xc0000000, 0x55555555, 0x55555555, 0x7fffffff }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0xffffffff }, { 0x10000000, 0x00007ffe, 0x00007ffe, 0xffff8002 }, { 0x30000000, 0x0000007e, 0x0000007e, 0xffff8002 }, { 0x20000000, 0xfffeff84, 0xfffeff84, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0x00007ffe, 0x00007ffe, 0x7fffffff }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x0000007d }, { 0xd0000000, 0x0000007e, 0x0000007e, 0x33333333 }, { 0xd0000000, 0x55555555, 0x55555555, 0x00007fff }, { 0x50000000, 0xffff8002, 0xffff8002, 0xaaaaaaaa }, { 0xc0000000, 0xfffffffe, 0xfffffffe, 0x7fffffff }, { 0x60000000, 0x80000001, 0x80000001, 0x80000001 }, { 0x60000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0xffff8002, 0xffff8002, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55555555, 0x55555555, 0xfffffffe }, { 0xd0000000, 0x00007ffe, 0x00007ffe, 0x00007fff }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffffff81 }, { 0x40000000, 0x00000020, 0x00000020, 0xfffffffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x7fffffff }, { 0xf0000000, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0xffffff82, 0x00000001 }, { 0x20000000, 0xfffeff7e, 0xfffeff7e, 0xfffffffd }, { 0xb0000000, 0xfffeff83, 0xfffeff83, 0xffff8001 }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0xffffff82 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffffff }, { 0x20000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x40000000, 0x00007fff, 0x00007fff, 0x0000007e }, { 0x90000000, 0xfffe0000, 0xfffe0000, 0xffff8002 }, { 0x90000000, 0xffff007a, 0xffff007a, 0xfffffffd }, { 0x20000000, 0x55545535, 0x55545535, 0xffffffe0 }, { 0x60000000, 0xcccccccc, 0xcccccccc, 0x0000007d }, { 0xb0000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x80000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x20000000, 0x7fff0004, 0x7fff0004, 0xffff8003 }, { 0xb0000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xfffffffd }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x55555555 }, { 0xc0000000, 0xffffff80, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x7ffffffe, 0x7ffffffe, 0xffffff80 }, { 0x90000000, 0xffcb7fce, 0xffcb7fce, 0xcccccccc }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00007fff }, { 0xf0000000, 0x0000007f, 0x0000007f, 0xffffffff }, { 0xe0000000, 0x00000020, 0x00000020, 0x55555555 }, { 0x90000000, 0x7ffffffc, 0x7ffffffc, 0x00007ffe }, { 0xe0000000, 0x00007ffd, 0x00007ffd, 0xcccccccc }, { 0x30000000, 0x00000001, 0x00000001, 0xffff8003 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffff80 }, { 0xb0000000, 0xffff7f81, 0xffff7f81, 0xffffff83 }, { 0x60000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xc0000000, 0xffffff81, 0xffffff81, 0xffffff83 }, { 0x30000000, 0x00007fff, 0x00007fff, 0xffffffe0 }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0x00007fff, 0x00007fff, 0xffffff82 }, { 0x80000000, 0xffffffff, 0xffffffff, 0x00007ffe }, { 0x30000000, 0x00007ffd, 0x00007ffd, 0x00000001 }, { 0xe0000000, 0xffff8003, 0xffff8003, 0xffffff82 }, { 0x30000000, 0x00000020, 0x00000020, 0x00007ffd }, { 0x10000000, 0x00000000, 0x00000000, 0x00007ffd }, { 0x30000000, 0x80000000, 0x80000000, 0xffffff82 }, { 0x70000000, 0xffffffe0, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0x7ffffffe, 0x7ffffffe, 0x55555555 }, { 0x70000000, 0x7fffffff, 0x7fffffff, 0x55555555 }, { 0x30000000, 0x00000001, 0x00000001, 0x80000001 }, { 0xc0000000, 0xffff8000, 0xffff8000, 0xffff8001 }, { 0xc0000000, 0x7ffffffd, 0x7ffffffd, 0x00007ffe }, { 0x70000000, 0xffffff82, 0xffffff82, 0x7ffffffd }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x7faaffaa, 0x7faaffaa, 0xaaaaaaaa }, { 0xc0000000, 0xffff8002, 0xffff8002, 0xffffff80 }, { 0xa0000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x50000000, 0xfffffffd, 0xfffffffd, 0xffffff83 }, { 0xe0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x80000000, 0xffffff83, 0xffffff83, 0xffffff81 }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x40000000, 0xffffffe0, 0xffffffe0, 0x0000007f }, { 0x60000000, 0x33333333, 0x33333333, 0x00007ffe }, { 0x60000000, 0x7ffffffe, 0x7ffffffe, 0xffff8002 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r14[] = { { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0xffff7ffc, 0xffff7ffc, 0x7ffffffe }, { 0x90000000, 0x0000007e, 0x0000007e, 0x0000007d }, { 0xc0000000, 0xffa9ff2a, 0xffa9ff2a, 0xaaaaaaaa }, { 0xc0000000, 0x55555575, 0x55555575, 0x00000020 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0x55555555 }, { 0x90000000, 0x8000fffe, 0x8000fffe, 0x00007ffd }, { 0xe0000000, 0x00007fff, 0x00007fff, 0x80000000 }, { 0x40000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x30000000, 0xffff8001, 0xffff8001, 0x00000002 }, { 0xb0000000, 0xffffffff, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00000002, 0x00000002, 0x00000001 }, { 0x60000000, 0xffffff81, 0xffffff81, 0x80000000 }, { 0xf0000000, 0xffff7ffc, 0xffff7ffc, 0xfffffffe }, { 0xc0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0x10000000, 0xffff7ffd, 0xffff7ffd, 0x7ffffffe }, { 0xf0000000, 0xffffffff, 0xffffffff, 0xfffffffd }, { 0x20000000, 0xffffff80, 0xffffff80, 0xffff8003 }, { 0xf0000000, 0xfffffffb, 0xfffffffb, 0x00007ffe }, { 0xb0000000, 0xffffff83, 0xffffff83, 0xffffffff }, { 0x80000000, 0x00000081, 0x00000081, 0x00000002 }, { 0xc0000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xf0000000, 0x00007ffc, 0x00007ffc, 0x00007ffd }, { 0xf0000000, 0x555454d7, 0x555454d7, 0xffffff82 }, { 0xa0000000, 0xffff8003, 0xffff8003, 0x7ffffffe }, { 0xa0000000, 0xffffff80, 0xffffff80, 0x7fffffff }, { 0x50000000, 0xfffeffdd, 0xfffeffdd, 0xffffffe0 }, { 0x90000000, 0x55555556, 0x55555556, 0x80000001 }, { 0x30000000, 0xffffff82, 0xffffff82, 0x00007ffe }, { 0x90000000, 0xffff007e, 0xffff007e, 0x0000007f }, { 0x40000000, 0x00558054, 0x00558054, 0x55555555 }, { 0x10000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffe8003, 0xfffe8003, 0xffff8003 }, { 0x50000000, 0xffff7f7d, 0xffff7f7d, 0xffffff80 }, { 0xc0000000, 0xfffeff81, 0xfffeff81, 0xfffffffe }, { 0xb0000000, 0xffffffe0, 0xffffffe0, 0x00000000 }, { 0x60000000, 0x0000007d, 0x0000007d, 0x00000000 }, { 0x40000000, 0xffff0022, 0xffff0022, 0xffff8002 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x00000001 }, { 0x20000000, 0xffffffff, 0xffffffff, 0x0000007f }, { 0xc0000000, 0xcccccccd, 0xcccccccd, 0x00000001 }, { 0x40000000, 0xffffffff, 0xffffffff, 0x7ffffffe }, { 0x80000000, 0xfffeffdf, 0xfffeffdf, 0xffffffff }, { 0xa0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0x90000000, 0xaaa9aaaa, 0xaaa9aaaa, 0xffff8000 }, { 0xc0000000, 0xfffeffc0, 0xfffeffc0, 0xffffffe0 }, { 0xc0000000, 0x0000ffff, 0x0000ffff, 0x00007fff }, { 0x40000000, 0x33323333, 0x33323333, 0xffff8000 }, { 0x10000000, 0x55555556, 0x55555556, 0x00000001 }, { 0xb0000000, 0x00000001, 0x00000001, 0x00000020 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0x00000001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0x00000001 }, { 0xe0000000, 0xfffffffe, 0xfffffffe, 0xffffff81 }, { 0xc0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xd0000000, 0xfffefffd, 0xfffefffd, 0xfffffffe }, { 0xc0000000, 0xfffffffd, 0xfffffffd, 0xfffffffd }, { 0xb0000000, 0x00007ffd, 0x00007ffd, 0xffff8001 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffe }, { 0x80000000, 0xffff8023, 0xffff8023, 0x00000020 }, { 0xf0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0x60000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x10000000, 0x80000001, 0x80000001, 0x80000000 }, { 0xd0000000, 0x00000003, 0x00000003, 0x80000001 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0xffffff80 }, { 0xa0000000, 0xcccccccc, 0xcccccccc, 0x00007ffe }, { 0xd0000000, 0x7ffeff7d, 0x7ffeff7d, 0xffffff80 }, { 0x30000000, 0x0000007d, 0x0000007d, 0xffff8003 }, { 0x40000000, 0x7ffffffe, 0x7ffffffe, 0x80000001 }, { 0xe0000000, 0xfffe7f84, 0xfffe7f84, 0xffffff81 }, { 0x20000000, 0x00000000, 0x00000000, 0x80000001 }, { 0x10000000, 0x80000001, 0x80000001, 0x00000000 }, { 0xd0000000, 0xffffff7f, 0xffffff7f, 0x00007ffd }, { 0xe0000000, 0xfffeff7d, 0xfffeff7d, 0xfffffffd }, { 0x50000000, 0x7ffefffb, 0x7ffefffb, 0xfffffffd }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8003 }, { 0x20000000, 0xffffff81, 0xffffff81, 0x00007ffd }, { 0xd0000000, 0xffff8002, 0xffff8002, 0x80000000 }, { 0xf0000000, 0x7fff007b, 0x7fff007b, 0x0000007e }, { 0x30000000, 0xffffffff, 0xffffffff, 0x7ffffffd }, { 0xa0000000, 0x00000001, 0x00000001, 0x00007fff }, { 0xd0000000, 0xffffffa3, 0xffffffa3, 0x00000020 }, { 0xc0000000, 0x0000fffe, 0x0000fffe, 0x00007ffd }, { 0xd0000000, 0xccccccec, 0xccccccec, 0x00000020 }, { 0xa0000000, 0xffffff80, 0xffffff80, 0xaaaaaaaa }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x80000001 }, { 0xf0000000, 0x00330035, 0x00330035, 0x33333333 }, { 0xa0000000, 0xffffff81, 0xffffff81, 0xffff8000 }, { 0x50000000, 0x00540035, 0x00540035, 0x55555555 }, { 0xb0000000, 0xfffffffd, 0xfffffffd, 0x7ffffffe }, { 0x90000000, 0xffff0002, 0xffff0002, 0x0000007f }, { 0x50000000, 0xaaa9aaa7, 0xaaa9aaa7, 0xfffffffd }, { 0x80000000, 0xffff8001, 0xffff8001, 0x00000000 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007fff }, { 0x90000000, 0x0000007f, 0x0000007f, 0x80000000 }, { 0x60000000, 0xfffeff7e, 0xfffeff7e, 0x7ffffffe }, { 0x40000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0x90000000, 0x00328034, 0x00328034, 0x33333333 }, { 0xb0000000, 0xffff8002, 0xffff8002, 0x00007ffd }, { 0xa0000000, 0x00000020, 0x00000020, 0xffff8002 }, { 0xb0000000, 0x33333333, 0x33333333, 0x0000007d }, { 0x10000000, 0x55555552, 0x55555552, 0x00007ffd }, { 0xc0000000, 0x00328033, 0x00328033, 0x33333333 }, { 0x80000000, 0xffff0000, 0xffff0000, 0x80000001 }, { 0x40000000, 0x7fff001e, 0x7fff001e, 0x00000020 }, { 0x50000000, 0x000000fd, 0x000000fd, 0x0000007f }, { 0x60000000, 0xfffeff7f, 0xfffeff7f, 0xffffffff }, { 0x70000000, 0xffaaffca, 0xffaaffca, 0xaaaaaaaa }, { 0xf0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xd0000000, 0xffff8081, 0xffff8081, 0x0000007f }, { 0xc0000000, 0x7ffeffdd, 0x7ffeffdd, 0xffffffe0 }, { 0xf0000000, 0xffff0003, 0xffff0003, 0xffff8001 }, { 0x60000000, 0x0032ffb4, 0x0032ffb4, 0x33333333 }, { 0x70000000, 0xfffffffe, 0xfffffffe, 0x7ffffffd }, { 0x70000000, 0xffaa0027, 0xffaa0027, 0xaaaaaaaa }, { 0x80000000, 0x0032ffb6, 0x0032ffb6, 0x33333333 }, { 0x40000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }, { 0x50000000, 0xffff7fff, 0xffff7fff, 0x00007ffe }, { 0xc0000000, 0x55545554, 0x55545554, 0x7fffffff }, { 0x70000000, 0xffff7ffc, 0xffff7ffc, 0xffffffff }, { 0x10000000, 0xffff8000, 0xffff8000, 0xffff8002 }, { 0x30000000, 0x0000007e, 0x0000007e, 0xffff8002 }, { 0x20000000, 0xffffff82, 0xffffff82, 0xffff8002 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00000000 }, { 0xa0000000, 0x00007ffe, 0x00007ffe, 0x7fffffff }, { 0x60000000, 0xffff007a, 0xffff007a, 0x0000007d }, { 0xd0000000, 0x003300b1, 0x003300b1, 0x33333333 }, { 0xd0000000, 0x55555554, 0x55555554, 0x00007fff }, { 0x50000000, 0xffa97fac, 0xffa97fac, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xfffefffd, 0x7fffffff }, { 0x60000000, 0x80000002, 0x80000002, 0x80000001 }, { 0x60000000, 0x7fff0000, 0x7fff0000, 0x80000001 }, { 0xf0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff83 }, { 0xf0000000, 0x00000000, 0x00000000, 0x80000000 }, { 0x70000000, 0x55545553, 0x55545553, 0xfffffffe }, { 0xd0000000, 0x00007ffd, 0x00007ffd, 0x00007fff }, { 0x60000000, 0x7ffeff7f, 0x7ffeff7f, 0xffffff81 }, { 0x40000000, 0xffff001d, 0xffff001d, 0xfffffffd }, { 0xe0000000, 0xffff7ffe, 0xffff7ffe, 0x7fffffff }, { 0xf0000000, 0x7fa9ffa7, 0x7fa9ffa7, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0xffffff82, 0x00000001 }, { 0x20000000, 0xffffff81, 0xffffff81, 0xfffffffd }, { 0xb0000000, 0xffffff82, 0xffffff82, 0xffff8001 }, { 0xe0000000, 0xcccbcc4e, 0xcccbcc4e, 0xffffff82 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffffff }, { 0x20000000, 0x7ffffffe, 0x7ffffffe, 0x00000001 }, { 0x40000000, 0x0000807d, 0x0000807d, 0x0000007e }, { 0x90000000, 0xfffe0000, 0xfffe0000, 0xffff8002 }, { 0x90000000, 0xffff007a, 0xffff007a, 0xfffffffd }, { 0x20000000, 0x55555555, 0x55555555, 0xffffffe0 }, { 0x60000000, 0xcccccd49, 0xcccccd49, 0x0000007d }, { 0xb0000000, 0xffff8001, 0xffff8001, 0x0000007f }, { 0x80000000, 0xffff8080, 0xffff8080, 0x0000007f }, { 0x20000000, 0x80000001, 0x80000001, 0xffff8003 }, { 0xb0000000, 0x00000000, 0x00000000, 0x0000007f }, { 0xf0000000, 0xfffe7ffd, 0xfffe7ffd, 0xfffffffd }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x55555555 }, { 0xc0000000, 0xfffeff03, 0xfffeff03, 0xffffff83 }, { 0xa0000000, 0x7ffffffe, 0x7ffffffe, 0xffffff80 }, { 0x90000000, 0xffcb7fce, 0xffcb7fce, 0xcccccccc }, { 0xc0000000, 0xfffffffc, 0xfffffffc, 0x00007fff }, { 0xf0000000, 0xffff007e, 0xffff007e, 0xffffffff }, { 0xe0000000, 0x00550075, 0x00550075, 0x55555555 }, { 0x90000000, 0x7ffffffc, 0x7ffffffc, 0x00007ffe }, { 0xe0000000, 0xffcc7fc9, 0xffcc7fc9, 0xcccccccc }, { 0x30000000, 0x00000001, 0x00000001, 0xffff8003 }, { 0xa0000000, 0x55555555, 0x55555555, 0xffffff80 }, { 0xb0000000, 0x00007ffe, 0x00007ffe, 0xffffff83 }, { 0x60000000, 0xffff0001, 0xffff0001, 0x00000002 }, { 0xc0000000, 0xfffeff04, 0xfffeff04, 0xffffff83 }, { 0x30000000, 0x00007fff, 0x00007fff, 0xffffffe0 }, { 0xc0000000, 0xffffffff, 0xffffffff, 0x00000002 }, { 0xa0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0xf0000000, 0xffff7f81, 0xffff7f81, 0xffffff82 }, { 0x80000000, 0xfffffffd, 0xfffffffd, 0x00007ffe }, { 0x30000000, 0x00007ffd, 0x00007ffd, 0x00000001 }, { 0xe0000000, 0xfffe7f85, 0xfffe7f85, 0xffffff82 }, { 0x30000000, 0x00000020, 0x00000020, 0x00007ffd }, { 0x10000000, 0x0000fffd, 0x0000fffd, 0x00007ffd }, { 0x30000000, 0x80000000, 0x80000000, 0xffffff82 }, { 0x70000000, 0xffffffe1, 0xffffffe1, 0x00000001 }, { 0xc0000000, 0x80540053, 0x80540053, 0x55555555 }, { 0x70000000, 0x80540054, 0x80540054, 0x55555555 }, { 0x30000000, 0x00000001, 0x00000001, 0x80000001 }, { 0xc0000000, 0xfffe8001, 0xfffe8001, 0xffff8001 }, { 0xc0000000, 0x7ffffffb, 0x7ffffffb, 0x00007ffe }, { 0x70000000, 0xfffeff7f, 0xfffeff7f, 0x7ffffffd }, { 0x20000000, 0xffffff82, 0xffffff82, 0x00007fff }, { 0xb0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0xb0000000, 0x80000000, 0x80000000, 0xaaaaaaaa }, { 0xc0000000, 0xfffe7f82, 0xfffe7f82, 0xffffff80 }, { 0xa0000000, 0x7fffffff, 0x7fffffff, 0x00000001 }, { 0x50000000, 0xfffeff80, 0xfffeff80, 0xffffff83 }, { 0xe0000000, 0xffaa7fa8, 0xffaa7fa8, 0xaaaaaaaa }, { 0x80000000, 0xfffeff04, 0xfffeff04, 0xffffff81 }, { 0xa0000000, 0xffffff83, 0xffffff83, 0x0000007f }, { 0x40000000, 0xffff005f, 0xffff005f, 0x0000007f }, { 0x60000000, 0x33333331, 0x33333331, 0x00007ffe }, { 0x60000000, 0x7ffe0000, 0x7ffe0000, 0xffff8002 }, { 0xa0000000, 0x0000007d, 0x0000007d, 0x00007ffd }, }; const Inputs kOutputs_Sxtab16_RdIsRm_hi_r0_r9_r0[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xb0000000, 0xffff807f, 0xffff8000, 0xffff807f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffff82, 0x0000007d, 0xffffff82 }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0x20000000, 0xffff7ffe, 0x00007ffe, 0xffff7ffe }, { 0xc0000000, 0x0000007e, 0xffffff80, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xfffe7f84, 0xffff8003, 0xfffe7f84 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0x0000007f, 0xfffffffd, 0x0000007f }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x00000001, 0x7ffffffd, 0x00000001 }, { 0x50000000, 0xffff8001, 0x00000020, 0xffff8001 }, { 0x20000000, 0xffffffff, 0x0000007e, 0xffffffff }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xfffe8002, 0xffff8002, 0xfffe8002 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0x00000001, 0xffffff83, 0x00000001 }, { 0x70000000, 0x0000007d, 0x7fffffff, 0x0000007d }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0xe0000000, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0x7ffeff80, 0x7ffffffe, 0x7ffeff80 }, { 0xc0000000, 0x7fffffff, 0xffffff81, 0x7fffffff }, { 0x20000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x00000002, 0x0000007d, 0x00000002 }, { 0x70000000, 0x7fffffff, 0xffff8003, 0x7fffffff }, { 0xc0000000, 0x80000000, 0xffffffe0, 0x80000000 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0x00007ffd, 0xffffffff, 0x00007ffd }, { 0xb0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffff7f7f, 0x00007ffe, 0xffff7f7f }, { 0x20000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xb0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0xa0000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000004, 0x00000002, 0x00000004 }, { 0x20000000, 0x005500d3, 0x0000007e, 0x005500d3 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0x20000000, 0x000000fd, 0x0000007f, 0x000000fd }, { 0xa0000000, 0xffff0001, 0x0000007f, 0xffff0001 }, { 0x20000000, 0x00007ffc, 0x00007ffe, 0x00007ffc }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xb0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0x7ffeffff, 0x7ffffffe, 0x7ffeffff }, { 0xa0000000, 0xffff007c, 0x0000007e, 0xffff007c }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0x00000020, 0xffffffff, 0x00000020 }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0x00007fff, 0xffffffff, 0x00007fff }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0x7fffffff, 0x00007ffe, 0x7fffffff }, { 0x70000000, 0x0000007d, 0x00000002, 0x0000007d }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffffffd, 0x7ffffffe, 0x7ffffffd }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x8000007e, 0x80000000, 0x8000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0x00007ffd, 0xfffffffe, 0x00007ffd }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x80000001, 0x00000000, 0x80000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x0000007f, 0x7ffffffe, 0x0000007f }, { 0x50000000, 0x00007ffd, 0x00000002, 0x00007ffd }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x0000007e, 0x00000002, 0x0000007e }, { 0xb0000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xb0000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8003, 0x00007ffe, 0xffff8003 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0x7ffffffe, 0x00007ffd, 0x7ffffffe }, { 0x10000000, 0x0000007f, 0x80000001, 0x0000007f }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0xffffff82, 0x55555555, 0xffffff82 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0x50000000, 0x33333333, 0x00000020, 0x33333333 }, { 0xe0000000, 0x0000007f, 0xffffffe0, 0x0000007f }, { 0xb0000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x50000000, 0x00000001, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0xffffff82, 0xffffff80, 0xffffff82 }, { 0xb0000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x10000000, 0x0000007e, 0x0000007e, 0x0000007e }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0xffff8000, 0x80000001, 0xffff8000 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0xffff8003, 0x33333333, 0xffff8003 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x80000001, 0x55555555, 0x80000001 }, { 0x70000000, 0x7fffffff, 0x00000020, 0x7fffffff }, { 0xa0000000, 0xcccccccd, 0xcccccccc, 0xcccccccd }, { 0x50000000, 0x55555555, 0x7ffffffd, 0x55555555 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffe7ffe, 0xffff8000, 0xfffe7ffe }, { 0xc0000000, 0xcccccccc, 0xffffff82, 0xcccccccc }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xfffe7f83, 0xffff8002, 0xfffe7f83 }, { 0x50000000, 0xffffff81, 0x0000007f, 0xffffff81 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0x7fffffe0, 0x80000000, 0x7fffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffe }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x33333333, 0xffff8001, 0x33333333 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xffffff83, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x0000fffe, 0x00000001, 0x0000fffe }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xaaaaaaaa, 0x0000007f, 0xaaaaaaaa }, { 0xc0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0xc0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x20000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xfffeff81, 0xffffff81, 0xfffeff81 }, { 0x70000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0xffff7ffd, 0x00007fff, 0xffff7ffd }, { 0x10000000, 0x7ffffffd, 0x00000020, 0x7ffffffd }, { 0x70000000, 0xffffff81, 0xffffff81, 0xffffff81 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x00330035, 0x00000002, 0x00330035 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x00007fff, 0x80000000, 0x00007fff }, { 0xb0000000, 0xfffeff60, 0xffffffe0, 0xfffeff60 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x55555555, 0x0000007d, 0x55555555 }, { 0xa0000000, 0xffff8002, 0xffff8001, 0xffff8002 }, { 0xb0000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x0000007e, 0xffffffff, 0x0000007e }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_eq_r5_r12_r5[] = { { 0xd0000000, 0xffff0022, 0x00000020, 0xffff0022 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffff80, 0x7ffffffd, 0xffffff80 }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0x7ffffffe, 0x80000001, 0x7ffffffe }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xc0000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xffffff81, 0xffff8003, 0xffffff81 }, { 0xf0000000, 0xffff007c, 0xfffffffe, 0xffff007c }, { 0x10000000, 0x0000007f, 0xfffffffd, 0x0000007f }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x80000000, 0x00000000, 0x80000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffff81, 0x0000007e, 0xffffff81 }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xffccffec, 0x00000020, 0xffccffec }, { 0x40000000, 0xfffe7fff, 0xffff8002, 0xfffe7fff }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xd0000000, 0x0000807d, 0x00007ffe, 0x0000807d }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xd0000000, 0xfffeff7f, 0xfffffffe, 0xfffeff7f }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x33333334, 0x33333333, 0x33333334 }, { 0xa0000000, 0x7ffffffd, 0xffff8003, 0x7ffffffd }, { 0xe0000000, 0xaa76aa76, 0xaaaaaaaa, 0xaa76aa76 }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0xffffff82, 0x7ffffffe, 0xffffff82 }, { 0xc0000000, 0xfffeff80, 0xffffff81, 0xfffeff80 }, { 0x20000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xf0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x60000000, 0xffff8001, 0xffff8001, 0xffff8001 }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xffff8000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0x30000000, 0xffffff81, 0x33333333, 0xffffff81 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0x00007ffd, 0xffffffff, 0x00007ffd }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xf0000000, 0x33323330, 0x33333333, 0x33323330 }, { 0xa0000000, 0xffffff81, 0x00007ffe, 0xffffff81 }, { 0x20000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0xd0000000, 0xfffe7fff, 0xffff8001, 0xfffe7fff }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x33333353, 0x33333333, 0x33333353 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x55555555, 0x0000007e, 0x55555555 }, { 0x40000000, 0x80000001, 0x80000001, 0x80000001 }, { 0xc0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0x20000000, 0x0000007e, 0x0000007f, 0x0000007e }, { 0xa0000000, 0xffffff82, 0x0000007f, 0xffffff82 }, { 0x20000000, 0x00007ffe, 0x00007ffe, 0x00007ffe }, { 0x40000000, 0xffff007b, 0x0000007d, 0xffff007b }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0xffff8001, 0x7ffffffe, 0xffff8001 }, { 0xa0000000, 0x7ffffffe, 0x0000007e, 0x7ffffffe }, { 0x30000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xd0000000, 0x0000009f, 0x0000007f, 0x0000009f }, { 0x60000000, 0xffffff81, 0x00000001, 0xffffff81 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0xfffffffe, 0xffffffff, 0xfffffffe }, { 0x30000000, 0xffff8003, 0x7ffffffe, 0xffff8003 }, { 0x30000000, 0x00000020, 0x7fffffff, 0x00000020 }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xfffeff60, 0xffffff80, 0xfffeff60 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xfffeff81, 0xfffffffe, 0xfffeff81 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0xffff7ffe, 0xffff8001, 0xffff7ffe }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0xcccbcccb, 0xcccccccc, 0xcccbcccb }, { 0x10000000, 0x00007ffd, 0xfffffffe, 0x00007ffd }, { 0x40000000, 0xffa9ff2b, 0xffffff81, 0xffa9ff2b }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x8000007f, 0x80000000, 0x8000007f }, { 0x40000000, 0x00008000, 0x00007fff, 0x00008000 }, { 0x60000000, 0x0000007b, 0x0000007e, 0x0000007b }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0x7fffff80, 0x80000000, 0x7fffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x7fff007d, 0x7ffffffe, 0x7fff007d }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0xffff8023, 0xffff8003, 0xffff8023 }, { 0xc0000000, 0x00000080, 0x00000002, 0x00000080 }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xfffe7f83, 0xffff8003, 0xfffe7f83 }, { 0xc0000000, 0xffff8001, 0x00007ffe, 0xffff8001 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xd0000000, 0xffffffe2, 0x00000002, 0xffffffe2 }, { 0xd0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0xc0000000, 0xffff7ffb, 0x00007ffd, 0xffff7ffb }, { 0x10000000, 0x0000007f, 0x80000001, 0x0000007f }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x0000007b, 0x0000007d, 0x0000007b }, { 0xa0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0xffff005f, 0xffffffe0, 0xffff005f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xfffeff02, 0xffffff80, 0xfffeff02 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x0000007e, 0x0000007e, 0x0000007e }, { 0x30000000, 0x7fffffff, 0x7fffffff, 0x7fffffff }, { 0x30000000, 0x00007ffd, 0xffffff83, 0x00007ffd }, { 0x10000000, 0xffff8000, 0x80000001, 0xffff8000 }, { 0x40000000, 0x0000009f, 0x00000020, 0x0000009f }, { 0xc0000000, 0x33323336, 0x33333333, 0x33323336 }, { 0x40000000, 0xffff001d, 0xfffffffd, 0xffff001d }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0x80000001, 0xcccccccc, 0x80000001 }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xffffffff, 0xffff8001, 0xffffffff }, { 0x20000000, 0xfffffffe, 0xffff8000, 0xfffffffe }, { 0xc0000000, 0xffcbff4e, 0xffffff82, 0xffcbff4e }, { 0xd0000000, 0x0054ffd6, 0xffffff81, 0x0054ffd6 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff7fff, 0x00007ffd, 0xffff7fff }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffffff81 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0x7fcbffc9, 0x7ffffffd, 0x7fcbffc9 }, { 0xe0000000, 0x00328034, 0xffff8001, 0x00328034 }, { 0x40000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0xf0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x0000001d, 0x00000020, 0x0000001d }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xfffeff03, 0xffffff80, 0xfffeff03 }, { 0xa0000000, 0x00007ffd, 0x00000001, 0x00007ffd }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xe0000000, 0xffaa0029, 0x0000007f, 0xffaa0029 }, { 0xc0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0xc0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x20000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xf0000000, 0x33333332, 0x33333333, 0x33333332 }, { 0xa0000000, 0xffff8000, 0xffffff81, 0xffff8000 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0x7ffffffe, 0x00007fff, 0x7ffffffe }, { 0x10000000, 0x7ffffffd, 0x00000020, 0x7ffffffd }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x33333333, 0x00000002, 0x33333333 }, { 0x30000000, 0x55555555, 0xfffffffd, 0x55555555 }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0x8000ffff, 0x80000000, 0x8000ffff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x80000002, 0x80000001, 0x80000002 }, { 0xe0000000, 0x005500d2, 0x0000007d, 0x005500d2 }, { 0xa0000000, 0x80000001, 0xffff8001, 0x80000001 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0xffff007d, 0xffffffff, 0xffff007d }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_gt_r12_r3_r12[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0xffffffff, 0xfffffffd, 0xffffffff }, { 0x70000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xb0000000, 0xffff807f, 0xffff8000, 0xffff807f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffff80, 0x7ffffffd, 0xffffff80 }, { 0x50000000, 0xffffff82, 0x0000007d, 0xffffff82 }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0x20000000, 0xffff7ffe, 0x00007ffe, 0xffff7ffe }, { 0xc0000000, 0x0000007e, 0xffffff80, 0x0000007e }, { 0x90000000, 0xfffe7f83, 0xffff8000, 0xfffe7f83 }, { 0x90000000, 0x7fccffcd, 0x80000001, 0x7fccffcd }, { 0x20000000, 0xfffe7f84, 0xffff8003, 0xfffe7f84 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0x0000007f, 0xfffffffd, 0x0000007f }, { 0x90000000, 0xffcb7fcd, 0xffff8001, 0xffcb7fcd }, { 0x20000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xffff8002 }, { 0x50000000, 0x00000001, 0x7ffffffd, 0x00000001 }, { 0x50000000, 0xffff8001, 0x00000020, 0xffff8001 }, { 0x20000000, 0xffffffff, 0x0000007e, 0xffffffff }, { 0x90000000, 0xffff0002, 0x00000002, 0xffff0002 }, { 0xb0000000, 0xfffe8002, 0xffff8002, 0xfffe8002 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x00007fff, 0x00007ffe, 0x00007fff }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0x00000001, 0xffffff83, 0x00000001 }, { 0x70000000, 0x0000007d, 0x7fffffff, 0x0000007d }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0x7ffffffd, 0xffff8003, 0x7ffffffd }, { 0xe0000000, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc }, { 0x90000000, 0xfffeffde, 0xffffffe0, 0xfffeffde }, { 0xa0000000, 0xffffff82, 0x7ffffffe, 0xffffff82 }, { 0xc0000000, 0x7fffffff, 0xffffff81, 0x7fffffff }, { 0x20000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x00000002, 0x0000007d, 0x00000002 }, { 0x70000000, 0x7fffffff, 0xffff8003, 0x7fffffff }, { 0xc0000000, 0x80000000, 0xffffffe0, 0x80000000 }, { 0x30000000, 0xffffff81, 0x33333333, 0xffffff81 }, { 0x50000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x90000000, 0x33323333, 0x33333333, 0x33323333 }, { 0x10000000, 0x00007ffd, 0xffffffff, 0x00007ffd }, { 0xb0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffffff81, 0x00007ffe, 0xffffff81 }, { 0x20000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xb0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000004, 0x00000002, 0x00000004 }, { 0x20000000, 0x005500d3, 0x0000007e, 0x005500d3 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0x20000000, 0x000000fd, 0x0000007f, 0x000000fd }, { 0xa0000000, 0xffffff82, 0x0000007f, 0xffffff82 }, { 0x20000000, 0x00007ffc, 0x00007ffe, 0x00007ffc }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xb0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0x90000000, 0x7fcbffca, 0x7ffffffe, 0x7fcbffca }, { 0xa0000000, 0xffff8001, 0x7ffffffe, 0xffff8001 }, { 0xa0000000, 0x7ffffffe, 0x0000007e, 0x7ffffffe }, { 0x30000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0x00000020, 0xffffffff, 0x00000020 }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0x00007fff, 0xffffffff, 0x00007fff }, { 0x30000000, 0xffff8003, 0x7ffffffe, 0xffff8003 }, { 0x30000000, 0x00000020, 0x7fffffff, 0x00000020 }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0x7fffffff, 0x00007ffe, 0x7fffffff }, { 0x70000000, 0x0000007d, 0x00000002, 0x0000007d }, { 0x90000000, 0xcccbcc4c, 0xcccccccc, 0xcccbcc4c }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffffffd, 0x7ffffffe, 0x7ffffffd }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x8000007e, 0x80000000, 0x8000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0x00007ffd, 0xfffffffe, 0x00007ffd }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x80000001, 0x00000000, 0x80000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x0000007f, 0x7ffffffe, 0x0000007f }, { 0x50000000, 0x00007ffd, 0x00000002, 0x00007ffd }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x0000007e, 0x00000002, 0x0000007e }, { 0xb0000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xb0000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8003, 0x00007ffe, 0xffff8003 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0x7ffffffe, 0x00007ffd, 0x7ffffffe }, { 0x10000000, 0x0000007f, 0x80000001, 0x0000007f }, { 0x90000000, 0xffff0001, 0x00000000, 0xffff0001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0xffffff82, 0x55555555, 0xffffff82 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0x50000000, 0x33333333, 0x00000020, 0x33333333 }, { 0xe0000000, 0x0000007f, 0xffffffe0, 0x0000007f }, { 0xb0000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x50000000, 0x00000001, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0xffffff82, 0xffffff80, 0xffffff82 }, { 0xb0000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x10000000, 0x0000007e, 0x0000007e, 0x0000007e }, { 0x30000000, 0x7fffffff, 0x7fffffff, 0x7fffffff }, { 0x30000000, 0x00007ffd, 0xffffff83, 0x00007ffd }, { 0x10000000, 0xffff8000, 0x80000001, 0xffff8000 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0xffff8003, 0x33333333, 0xffff8003 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x80000001, 0x55555555, 0x80000001 }, { 0x70000000, 0x7fffffff, 0x00000020, 0x7fffffff }, { 0xa0000000, 0x80000001, 0xcccccccc, 0x80000001 }, { 0x50000000, 0x55555555, 0x7ffffffd, 0x55555555 }, { 0x30000000, 0xffffffff, 0xffff8001, 0xffffffff }, { 0x20000000, 0xfffe7ffe, 0xffff8000, 0xfffe7ffe }, { 0xc0000000, 0xcccccccc, 0xffffff82, 0xcccccccc }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xfffe7f83, 0xffff8002, 0xfffe7f83 }, { 0x50000000, 0xffffff81, 0x0000007f, 0xffffff81 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0x7fffffe0, 0x80000000, 0x7fffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffe }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xffcbff4c, 0xffffff80, 0xffcbff4c }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x33333333, 0xffff8001, 0x33333333 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xffffff83, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x00007ffd, 0x00000001, 0x00007ffd }, { 0x90000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xaaaaaaaa, 0x0000007f, 0xaaaaaaaa }, { 0xc0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0xc0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x20000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xffff8000, 0xffffff81, 0xffff8000 }, { 0x70000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x90000000, 0xffff005e, 0x0000007e, 0xffff005e }, { 0xa0000000, 0x7ffffffe, 0x00007fff, 0x7ffffffe }, { 0x10000000, 0x7ffffffd, 0x00000020, 0x7ffffffd }, { 0x70000000, 0xffffff81, 0xffffff81, 0xffffff81 }, { 0x90000000, 0xffaaffaa, 0x00000000, 0xffaaffaa }, { 0x20000000, 0x00330035, 0x00000002, 0x00330035 }, { 0x30000000, 0x55555555, 0xfffffffd, 0x55555555 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x00007fff, 0x80000000, 0x00007fff }, { 0xb0000000, 0xfffeff60, 0xffffffe0, 0xfffeff60 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x55555555, 0x0000007d, 0x55555555 }, { 0xa0000000, 0x80000001, 0xffff8001, 0x80000001 }, { 0xb0000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xa0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0x0000007e }, { 0x90000000, 0xffff7f7e, 0x00007ffd, 0xffff7f7e }, }; const Inputs kOutputs_Sxtab16_RdIsRm_lt_r8_r11_r8[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xc0000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xffffff81, 0xffff8003, 0xffffff81 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0xffff007c, 0xfffffffd, 0xffff007c }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x80000000, 0x00000000, 0x80000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffff81, 0x0000007e, 0xffffff81 }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffffa1, 0x00000020, 0xffffffa1 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0xfffffffe }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0xe0000000, 0xaa76aa76, 0xaaaaaaaa, 0xaa76aa76 }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0x7ffeff80, 0x7ffffffe, 0x7ffeff80 }, { 0xc0000000, 0xfffeff80, 0xffffff81, 0xfffeff80 }, { 0x20000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0xfffffffc, 0xffffffff, 0xfffffffc }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffff7f7f, 0x00007ffe, 0xffff7f7f }, { 0x20000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x55555555, 0x0000007e, 0x55555555 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0x20000000, 0x0000007e, 0x0000007f, 0x0000007e }, { 0xa0000000, 0xffff0001, 0x0000007f, 0xffff0001 }, { 0x20000000, 0x00007ffe, 0x00007ffe, 0x00007ffe }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0x7ffeffff, 0x7ffffffe, 0x7ffeffff }, { 0xa0000000, 0xffff007c, 0x0000007e, 0xffff007c }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0x7ffeffdf, 0x7fffffff, 0x7ffeffdf }, { 0xe0000000, 0xfffffffe, 0xffffffff, 0xfffffffe }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0x7fffff83, 0x80000001, 0x7fffff83 }, { 0x80000000, 0xfffeff04, 0xffffff81, 0xfffeff04 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0xfffffffb, 0xfffffffe, 0xfffffffb }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffe7ffd, 0xffff8000, 0xfffe7ffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x0032ffb3, 0xffffff80, 0x0032ffb3 }, { 0xc0000000, 0x7fff007d, 0x7ffffffe, 0x7fff007d }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x00000080, 0x00000002, 0x00000080 }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8001, 0x00007ffe, 0xffff8001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0xffff8003 }, { 0xa0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x80000000, 0x7fffff83, 0x80000000, 0x7fffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0xffff7ffb, 0x00007ffd, 0xffff7ffb }, { 0x10000000, 0x80000080, 0x80000001, 0x80000080 }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0xcccccd49, 0xcccccccc, 0xcccccd49 }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0xffff005f, 0xffffffe0, 0xffff005f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xfffeff02, 0xffffff80, 0xfffeff02 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x000000fc, 0x0000007e, 0x000000fc }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff0001, 0x80000001, 0x7fff0001 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0x33323336, 0x33333333, 0x33323336 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xfffeff63, 0xffffff83, 0xfffeff63 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0xcccccccd, 0xcccccccc, 0xcccccccd }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffffffe, 0xffff8000, 0xfffffffe }, { 0xc0000000, 0xffcbff4e, 0xffffff82, 0xffcbff4e }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffeffdd, 0xffffffe0, 0xfffeffdd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffeff7e, 0xffffff80, 0xfffeff7e }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffffff81 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0xffffffa3, 0xffffff83, 0xffffffa3 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0x555454d5, 0x55555555, 0x555454d5 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x00328034, 0xffff8001, 0x00328034 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000807a, 0x00007ffd, 0x0000807a }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xc0000000, 0xfffeff03, 0xffffff80, 0xfffeff03 }, { 0xa0000000, 0x0000fffe, 0x00000001, 0x0000fffe }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xffaa0029, 0x0000007f, 0xffaa0029 }, { 0xc0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0xc0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x20000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xfffeff81, 0xffffff81, 0xfffeff81 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0xffff7ffd, 0x00007fff, 0xffff7ffd }, { 0x10000000, 0xffff001d, 0x00000020, 0xffff001d }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x33333333, 0x00000002, 0x33333333 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x8000ffff, 0x80000000, 0x8000ffff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x005500d2, 0x0000007d, 0x005500d2 }, { 0xa0000000, 0xffff8002, 0xffff8001, 0xffff8002 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0xffff007d, 0xffffffff, 0xffff007d }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_cs_r7_r6_r7[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0xffff807f, 0xffff8000, 0xffff807f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffff82, 0x0000007d, 0xffffff82 }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0x20000000, 0xffff7ffe, 0x00007ffe, 0xffff7ffe }, { 0xc0000000, 0x0000007e, 0xffffff80, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xfffe7f84, 0xffff8003, 0xfffe7f84 }, { 0xf0000000, 0xffff007c, 0xfffffffe, 0xffff007c }, { 0x10000000, 0x0000007f, 0xfffffffd, 0x0000007f }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x00000001, 0x7ffffffd, 0x00000001 }, { 0x50000000, 0xffff8001, 0x00000020, 0xffff8001 }, { 0x20000000, 0xffffffff, 0x0000007e, 0xffffffff }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xfffe8002, 0xffff8002, 0xfffe8002 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0x00000001, 0xffffff83, 0x00000001 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0xe0000000, 0xaa76aa76, 0xaaaaaaaa, 0xaa76aa76 }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0x7ffeff80, 0x7ffffffe, 0x7ffeff80 }, { 0xc0000000, 0x7fffffff, 0xffffff81, 0x7fffffff }, { 0x20000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xf0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x60000000, 0xffff8001, 0xffff8001, 0xffff8001 }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xffff8000 }, { 0x50000000, 0x00000002, 0x0000007d, 0x00000002 }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0x80000000, 0xffffffe0, 0x80000000 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0x00007ffd, 0xffffffff, 0x00007ffd }, { 0xb0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0x60000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xf0000000, 0x33323330, 0x33333333, 0x33323330 }, { 0xa0000000, 0xffff7f7f, 0x00007ffe, 0xffff7f7f }, { 0x20000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xb0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0xa0000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000004, 0x00000002, 0x00000004 }, { 0x20000000, 0x005500d3, 0x0000007e, 0x005500d3 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0x20000000, 0x000000fd, 0x0000007f, 0x000000fd }, { 0xa0000000, 0xffff0001, 0x0000007f, 0xffff0001 }, { 0x20000000, 0x00007ffc, 0x00007ffe, 0x00007ffc }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0x7ffeffff, 0x7ffffffe, 0x7ffeffff }, { 0xa0000000, 0xffff007c, 0x0000007e, 0xffff007c }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff81, 0x00000001, 0xffffff81 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0xfffffffe, 0xffffffff, 0xfffffffe }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xfffeff60, 0xffffff80, 0xfffeff60 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xfffeff81, 0xfffffffe, 0xfffeff81 }, { 0x50000000, 0x7ffffffd, 0x7ffffffe, 0x7ffffffd }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x8000007e, 0x80000000, 0x8000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0x00007ffd, 0xfffffffe, 0x00007ffd }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x0000007b, 0x0000007e, 0x0000007b }, { 0xb0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x0000007f, 0x7ffffffe, 0x0000007f }, { 0x50000000, 0x00007ffd, 0x00000002, 0x00007ffd }, { 0x60000000, 0xffff8023, 0xffff8003, 0xffff8023 }, { 0xc0000000, 0x0000007e, 0x00000002, 0x0000007e }, { 0xb0000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xb0000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xf0000000, 0xfffe7f83, 0xffff8003, 0xfffe7f83 }, { 0xc0000000, 0xffff8003, 0x00007ffe, 0xffff8003 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0x7ffffffe, 0x00007ffd, 0x7ffffffe }, { 0x10000000, 0x0000007f, 0x80000001, 0x0000007f }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0xffffff82, 0x55555555, 0xffffff82 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0x50000000, 0x33333333, 0x00000020, 0x33333333 }, { 0xe0000000, 0xffff005f, 0xffffffe0, 0xffff005f }, { 0xb0000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x50000000, 0x00000001, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0xffffff82, 0xffffff80, 0xffffff82 }, { 0xb0000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x10000000, 0x0000007e, 0x0000007e, 0x0000007e }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0xffff8000, 0x80000001, 0xffff8000 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0xffff8003, 0x33333333, 0xffff8003 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0xcccccccd, 0xcccccccc, 0xcccccccd }, { 0x50000000, 0x55555555, 0x7ffffffd, 0x55555555 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffe7ffe, 0xffff8000, 0xfffe7ffe }, { 0xc0000000, 0xcccccccc, 0xffffff82, 0xcccccccc }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xfffe7f83, 0xffff8002, 0xfffe7f83 }, { 0x50000000, 0xffffff81, 0x0000007f, 0xffffff81 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0x7fffffe0, 0x80000000, 0x7fffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0x7fcbffc9, 0x7ffffffd, 0x7fcbffc9 }, { 0xe0000000, 0x00328034, 0xffff8001, 0x00328034 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xffffff83, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x0000fffe, 0x00000001, 0x0000fffe }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xffaa0029, 0x0000007f, 0xffaa0029 }, { 0xc0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0xc0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x20000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xf0000000, 0x33333332, 0x33333333, 0x33333332 }, { 0xa0000000, 0xfffeff81, 0xffffff81, 0xfffeff81 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0xffff7ffd, 0x00007fff, 0xffff7ffd }, { 0x10000000, 0x7ffffffd, 0x00000020, 0x7ffffffd }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x00330035, 0x00000002, 0x00330035 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0x8000ffff, 0x80000000, 0x8000ffff }, { 0xb0000000, 0xfffeff60, 0xffffffe0, 0xfffeff60 }, { 0xf0000000, 0x80000002, 0x80000001, 0x80000002 }, { 0xe0000000, 0x005500d2, 0x0000007d, 0x005500d2 }, { 0xa0000000, 0xffff8002, 0xffff8001, 0xffff8002 }, { 0xb0000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x0000007e, 0xffffffff, 0x0000007e }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_lt_r9_r0_r9[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xc0000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xffffff81, 0xffff8003, 0xffffff81 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0xffff007c, 0xfffffffd, 0xffff007c }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x80000000, 0x00000000, 0x80000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffff81, 0x0000007e, 0xffffff81 }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffffa1, 0x00000020, 0xffffffa1 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0xfffffffe }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0xe0000000, 0xaa76aa76, 0xaaaaaaaa, 0xaa76aa76 }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0x7ffeff80, 0x7ffffffe, 0x7ffeff80 }, { 0xc0000000, 0xfffeff80, 0xffffff81, 0xfffeff80 }, { 0x20000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0xfffffffc, 0xffffffff, 0xfffffffc }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffff7f7f, 0x00007ffe, 0xffff7f7f }, { 0x20000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x55555555, 0x0000007e, 0x55555555 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0x20000000, 0x0000007e, 0x0000007f, 0x0000007e }, { 0xa0000000, 0xffff0001, 0x0000007f, 0xffff0001 }, { 0x20000000, 0x00007ffe, 0x00007ffe, 0x00007ffe }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0x7ffeffff, 0x7ffffffe, 0x7ffeffff }, { 0xa0000000, 0xffff007c, 0x0000007e, 0xffff007c }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0x7ffeffdf, 0x7fffffff, 0x7ffeffdf }, { 0xe0000000, 0xfffffffe, 0xffffffff, 0xfffffffe }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0x7fffff83, 0x80000001, 0x7fffff83 }, { 0x80000000, 0xfffeff04, 0xffffff81, 0xfffeff04 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0xfffffffb, 0xfffffffe, 0xfffffffb }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffe7ffd, 0xffff8000, 0xfffe7ffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x0032ffb3, 0xffffff80, 0x0032ffb3 }, { 0xc0000000, 0x7fff007d, 0x7ffffffe, 0x7fff007d }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x00000080, 0x00000002, 0x00000080 }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8001, 0x00007ffe, 0xffff8001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0xffff8003 }, { 0xa0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x80000000, 0x7fffff83, 0x80000000, 0x7fffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0xffff7ffb, 0x00007ffd, 0xffff7ffb }, { 0x10000000, 0x80000080, 0x80000001, 0x80000080 }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0xcccccd49, 0xcccccccc, 0xcccccd49 }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0xffff005f, 0xffffffe0, 0xffff005f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xfffeff02, 0xffffff80, 0xfffeff02 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x000000fc, 0x0000007e, 0x000000fc }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff0001, 0x80000001, 0x7fff0001 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0x33323336, 0x33333333, 0x33323336 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xfffeff63, 0xffffff83, 0xfffeff63 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0xcccccccd, 0xcccccccc, 0xcccccccd }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffffffe, 0xffff8000, 0xfffffffe }, { 0xc0000000, 0xffcbff4e, 0xffffff82, 0xffcbff4e }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffeffdd, 0xffffffe0, 0xfffeffdd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffeff7e, 0xffffff80, 0xfffeff7e }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffffff81 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0xffffffa3, 0xffffff83, 0xffffffa3 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0x555454d5, 0x55555555, 0x555454d5 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x00328034, 0xffff8001, 0x00328034 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000807a, 0x00007ffd, 0x0000807a }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xc0000000, 0xfffeff03, 0xffffff80, 0xfffeff03 }, { 0xa0000000, 0x0000fffe, 0x00000001, 0x0000fffe }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xffaa0029, 0x0000007f, 0xffaa0029 }, { 0xc0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0xc0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x20000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xfffeff81, 0xffffff81, 0xfffeff81 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0xffff7ffd, 0x00007fff, 0xffff7ffd }, { 0x10000000, 0xffff001d, 0x00000020, 0xffff001d }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x33333333, 0x00000002, 0x33333333 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x8000ffff, 0x80000000, 0x8000ffff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x005500d2, 0x0000007d, 0x005500d2 }, { 0xa0000000, 0xffff8002, 0xffff8001, 0xffff8002 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0xffff007d, 0xffffffff, 0xffff007d }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_cc_r6_r5_r6[] = { { 0xd0000000, 0xffff0022, 0x00000020, 0xffff0022 }, { 0x90000000, 0xffffffff, 0xfffffffd, 0xffffffff }, { 0x70000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x30000000, 0xffffff80, 0x7ffffffd, 0xffffff80 }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0x7ffffffe, 0x80000001, 0x7ffffffe }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xc0000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x90000000, 0xfffe7f83, 0xffff8000, 0xfffe7f83 }, { 0x90000000, 0x7fccffcd, 0x80000001, 0x7fccffcd }, { 0x20000000, 0xffffff81, 0xffff8003, 0xffffff81 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0xffff007c, 0xfffffffd, 0xffff007c }, { 0x90000000, 0xffcb7fcd, 0xffff8001, 0xffcb7fcd }, { 0x20000000, 0x80000000, 0x00000000, 0x80000000 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xffff8002 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffff81, 0x0000007e, 0xffffff81 }, { 0x90000000, 0xffff0002, 0x00000002, 0xffff0002 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xffccffec, 0x00000020, 0xffccffec }, { 0x40000000, 0xfffe7fff, 0xffff8002, 0xfffe7fff }, { 0x80000000, 0xffffffa1, 0x00000020, 0xffffffa1 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0xfffffffe }, { 0xd0000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xd0000000, 0x0000807d, 0x00007ffe, 0x0000807d }, { 0x90000000, 0x00007fff, 0x00007ffe, 0x00007fff }, { 0xd0000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xd0000000, 0xfffeff7f, 0xfffffffe, 0xfffeff7f }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x0000007d, 0x7fffffff, 0x0000007d }, { 0x40000000, 0x33333334, 0x33333333, 0x33333334 }, { 0xa0000000, 0x7ffffffd, 0xffff8003, 0x7ffffffd }, { 0xe0000000, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc }, { 0x90000000, 0xfffeffde, 0xffffffe0, 0xfffeffde }, { 0xa0000000, 0xffffff82, 0x7ffffffe, 0xffffff82 }, { 0xc0000000, 0xfffeff80, 0xffffff81, 0xfffeff80 }, { 0x20000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0x7fffffff, 0xffff8003, 0x7fffffff }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0x30000000, 0xffffff81, 0x33333333, 0xffffff81 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0x33323333, 0x33333333, 0x33323333 }, { 0x10000000, 0xfffffffc, 0xffffffff, 0xfffffffc }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffffff81, 0x00007ffe, 0xffffff81 }, { 0x20000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0xd0000000, 0xfffe7fff, 0xffff8001, 0xfffe7fff }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x33333353, 0x33333333, 0x33333353 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x55555555, 0x0000007e, 0x55555555 }, { 0x40000000, 0x80000001, 0x80000001, 0x80000001 }, { 0xc0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0x20000000, 0x0000007e, 0x0000007f, 0x0000007e }, { 0xa0000000, 0xffffff82, 0x0000007f, 0xffffff82 }, { 0x20000000, 0x00007ffe, 0x00007ffe, 0x00007ffe }, { 0x40000000, 0xffff007b, 0x0000007d, 0xffff007b }, { 0x70000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0x7fcbffca, 0x7ffffffe, 0x7fcbffca }, { 0xa0000000, 0xffff8001, 0x7ffffffe, 0xffff8001 }, { 0xa0000000, 0x7ffffffe, 0x0000007e, 0x7ffffffe }, { 0x30000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xd0000000, 0x0000009f, 0x0000007f, 0x0000009f }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0x00000020, 0xffffffff, 0x00000020 }, { 0x80000000, 0x7ffeffdf, 0x7fffffff, 0x7ffeffdf }, { 0xe0000000, 0x00007fff, 0xffffffff, 0x00007fff }, { 0x30000000, 0xffff8003, 0x7ffffffe, 0xffff8003 }, { 0x30000000, 0x00000020, 0x7fffffff, 0x00000020 }, { 0x80000000, 0x7fffff83, 0x80000001, 0x7fffff83 }, { 0x80000000, 0xfffeff04, 0xffffff81, 0xfffeff04 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0x7fffffff, 0x00007ffe, 0x7fffffff }, { 0x70000000, 0x0000007d, 0x00000002, 0x0000007d }, { 0x90000000, 0xcccbcc4c, 0xcccccccc, 0xcccbcc4c }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0xffff7ffe, 0xffff8001, 0xffff7ffe }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0xcccbcccb, 0xcccccccc, 0xcccbcccb }, { 0x10000000, 0xfffffffb, 0xfffffffe, 0xfffffffb }, { 0x40000000, 0xffa9ff2b, 0xffffff81, 0xffa9ff2b }, { 0x70000000, 0x80000001, 0x00000000, 0x80000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x8000007f, 0x80000000, 0x8000007f }, { 0x40000000, 0x00008000, 0x00007fff, 0x00008000 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffe7ffd, 0xffff8000, 0xfffe7ffd }, { 0xd0000000, 0x7fffff80, 0x80000000, 0x7fffff80 }, { 0x80000000, 0x0032ffb3, 0xffffff80, 0x0032ffb3 }, { 0xc0000000, 0x7fff007d, 0x7ffffffe, 0x7fff007d }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x00000080, 0x00000002, 0x00000080 }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8001, 0x00007ffe, 0xffff8001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0xffff8003 }, { 0xa0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x80000000, 0x7fffff83, 0x80000000, 0x7fffff83 }, { 0x40000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xd0000000, 0xffffffe2, 0x00000002, 0xffffffe2 }, { 0xd0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0xc0000000, 0xffff7ffb, 0x00007ffd, 0xffff7ffb }, { 0x10000000, 0x80000080, 0x80000001, 0x80000080 }, { 0x90000000, 0xffff0001, 0x00000000, 0xffff0001 }, { 0x80000000, 0xcccccd49, 0xcccccccc, 0xcccccd49 }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x0000007b, 0x0000007d, 0x0000007b }, { 0xa0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0x0000007f, 0xffffffe0, 0x0000007f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xfffeff02, 0xffffff80, 0xfffeff02 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x000000fc, 0x0000007e, 0x000000fc }, { 0x30000000, 0x7fffffff, 0x7fffffff, 0x7fffffff }, { 0x30000000, 0x00007ffd, 0xffffff83, 0x00007ffd }, { 0x10000000, 0x7fff0001, 0x80000001, 0x7fff0001 }, { 0x40000000, 0x0000009f, 0x00000020, 0x0000009f }, { 0xc0000000, 0x33323336, 0x33333333, 0x33323336 }, { 0x40000000, 0xffff001d, 0xfffffffd, 0xffff001d }, { 0x70000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0x80000000, 0xfffeff63, 0xffffff83, 0xfffeff63 }, { 0x70000000, 0x80000001, 0x55555555, 0x80000001 }, { 0x70000000, 0x7fffffff, 0x00000020, 0x7fffffff }, { 0xa0000000, 0x80000001, 0xcccccccc, 0x80000001 }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xffffffff, 0xffff8001, 0xffffffff }, { 0x20000000, 0xfffffffe, 0xffff8000, 0xfffffffe }, { 0xc0000000, 0xffcbff4e, 0xffffff82, 0xffcbff4e }, { 0xd0000000, 0x0054ffd6, 0xffffff81, 0x0054ffd6 }, { 0x80000000, 0xfffeffdd, 0xffffffe0, 0xfffeffdd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffeff7e, 0xffffff80, 0xfffeff7e }, { 0x40000000, 0xffff7fff, 0x00007ffd, 0xffff7fff }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffffff81 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0xffffffa3, 0xffffff83, 0xffffffa3 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0x555454d5, 0x55555555, 0x555454d5 }, { 0x40000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffe }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xffcbff4c, 0xffffff80, 0xffcbff4c }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x33333333, 0xffff8001, 0x33333333 }, { 0x40000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000807a, 0x00007ffd, 0x0000807a }, { 0x40000000, 0x0000001d, 0x00000020, 0x0000001d }, { 0x80000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xc0000000, 0xfffeff03, 0xffffff80, 0xfffeff03 }, { 0xa0000000, 0x00007ffd, 0x00000001, 0x00007ffd }, { 0x90000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xd0000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xe0000000, 0xaaaaaaaa, 0x0000007f, 0xaaaaaaaa }, { 0xc0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0xc0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x20000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xffff8000, 0xffffff81, 0xffff8000 }, { 0x70000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x90000000, 0xffff005e, 0x0000007e, 0xffff005e }, { 0xa0000000, 0x7ffffffe, 0x00007fff, 0x7ffffffe }, { 0x10000000, 0xffff001d, 0x00000020, 0xffff001d }, { 0x70000000, 0xffffff81, 0xffffff81, 0xffffff81 }, { 0x90000000, 0xffaaffaa, 0x00000000, 0xffaaffaa }, { 0x20000000, 0x33333333, 0x00000002, 0x33333333 }, { 0x30000000, 0x55555555, 0xfffffffd, 0x55555555 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x00007fff, 0x80000000, 0x00007fff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x55555555, 0x0000007d, 0x55555555 }, { 0xa0000000, 0x80000001, 0xffff8001, 0x80000001 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0xffff007d, 0xffffffff, 0xffff007d }, { 0x90000000, 0xffff7f7e, 0x00007ffd, 0xffff7f7e }, }; const Inputs kOutputs_Sxtab16_RdIsRm_pl_r7_r4_r7[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0x7ffffffe, 0x80000001, 0x7ffffffe }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff7ffe, 0x00007ffe, 0xffff7ffe }, { 0xc0000000, 0x0000007e, 0xffffff80, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xfffe7f84, 0xffff8003, 0xfffe7f84 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0xffff007c, 0xfffffffd, 0xffff007c }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffffff, 0x0000007e, 0xffffffff }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0xfffe7fff, 0xffff8002, 0xfffe7fff }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x33333334, 0x33333333, 0x33333334 }, { 0xa0000000, 0x7ffffffd, 0xffff8003, 0x7ffffffd }, { 0xe0000000, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0xffffff82, 0x7ffffffe, 0xffffff82 }, { 0xc0000000, 0x7fffffff, 0xffffff81, 0x7fffffff }, { 0x20000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0xffff8001, 0xffff8001, 0xffff8001 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0x80000000, 0xffffffe0, 0x80000000 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0xfffffffc, 0xffffffff, 0xfffffffc }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffffff81, 0x00007ffe, 0xffffff81 }, { 0x20000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x005500d3, 0x0000007e, 0x005500d3 }, { 0x40000000, 0x80000001, 0x80000001, 0x80000001 }, { 0xc0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0x20000000, 0x000000fd, 0x0000007f, 0x000000fd }, { 0xa0000000, 0xffffff82, 0x0000007f, 0xffffff82 }, { 0x20000000, 0x00007ffc, 0x00007ffe, 0x00007ffc }, { 0x40000000, 0xffff007b, 0x0000007d, 0xffff007b }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0xffff8001, 0x7ffffffe, 0xffff8001 }, { 0xa0000000, 0x7ffffffe, 0x0000007e, 0x7ffffffe }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff81, 0x00000001, 0xffffff81 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0x00007fff, 0xffffffff, 0x00007fff }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xfffeff81, 0xfffffffe, 0xfffeff81 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0xfffffffb, 0xfffffffe, 0xfffffffb }, { 0x40000000, 0xffa9ff2b, 0xffffff81, 0xffa9ff2b }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x00008000, 0x00007fff, 0x00008000 }, { 0x60000000, 0x0000007b, 0x0000007e, 0x0000007b }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x0000007f, 0x7ffffffe, 0x0000007f }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0xffff8023, 0xffff8003, 0xffff8023 }, { 0xc0000000, 0x0000007e, 0x00000002, 0x0000007e }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8003, 0x00007ffe, 0xffff8003 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0x7ffffffe, 0x00007ffd, 0x7ffffffe }, { 0x10000000, 0x80000080, 0x80000001, 0x80000080 }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0x0000007f, 0xffffffe0, 0x0000007f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xffffff82, 0xffffff80, 0xffffff82 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x000000fc, 0x0000007e, 0x000000fc }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff0001, 0x80000001, 0x7fff0001 }, { 0x40000000, 0x0000009f, 0x00000020, 0x0000009f }, { 0xc0000000, 0xffff8003, 0x33333333, 0xffff8003 }, { 0x40000000, 0xffff001d, 0xfffffffd, 0xffff001d }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0x80000001, 0xcccccccc, 0x80000001 }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffe7ffe, 0xffff8000, 0xfffe7ffe }, { 0xc0000000, 0xcccccccc, 0xffffff82, 0xcccccccc }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff7fff, 0x00007ffd, 0xffff7fff }, { 0x20000000, 0xfffe7f83, 0xffff8002, 0xfffe7f83 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x33333333, 0xffff8001, 0x33333333 }, { 0x40000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x0000001d, 0x00000020, 0x0000001d }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xffffff83, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x00007ffd, 0x00000001, 0x00007ffd }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xaaaaaaaa, 0x0000007f, 0xaaaaaaaa }, { 0xc0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0xc0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x20000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xffff8000, 0xffffff81, 0xffff8000 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0x7ffffffe, 0x00007fff, 0x7ffffffe }, { 0x10000000, 0xffff001d, 0x00000020, 0xffff001d }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x00330035, 0x00000002, 0x00330035 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0x00007fff, 0x80000000, 0x00007fff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x55555555, 0x0000007d, 0x55555555 }, { 0xa0000000, 0x80000001, 0xffff8001, 0x80000001 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0x0000007e }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsRm_ls_r0_r10_r0[] = { { 0xd0000000, 0xffff0022, 0x00000020, 0xffff0022 }, { 0x90000000, 0xffffffff, 0xfffffffd, 0xffffffff }, { 0x70000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xb0000000, 0x0000007f, 0xffff8000, 0x0000007f }, { 0x80000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x30000000, 0xffffff80, 0x7ffffffd, 0xffffff80 }, { 0x50000000, 0xffffffff, 0x0000007d, 0xffffffff }, { 0x40000000, 0x7ffffffe, 0x80000001, 0x7ffffffe }, { 0x50000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0x20000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xc0000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x90000000, 0xfffe7f83, 0xffff8000, 0xfffe7f83 }, { 0x90000000, 0x7fccffcd, 0x80000001, 0x7fccffcd }, { 0x20000000, 0xffffff81, 0xffff8003, 0xffffff81 }, { 0xf0000000, 0xffff007c, 0xfffffffe, 0xffff007c }, { 0x10000000, 0xffff007c, 0xfffffffd, 0xffff007c }, { 0x90000000, 0xffcb7fcd, 0xffff8001, 0xffcb7fcd }, { 0x20000000, 0x80000000, 0x00000000, 0x80000000 }, { 0x90000000, 0xffff8002, 0xffff8002, 0xffff8002 }, { 0x50000000, 0x7ffffffe, 0x7ffffffd, 0x7ffffffe }, { 0x50000000, 0xffff0021, 0x00000020, 0xffff0021 }, { 0x20000000, 0xffffff81, 0x0000007e, 0xffffff81 }, { 0x90000000, 0xffff0002, 0x00000002, 0xffff0002 }, { 0xb0000000, 0xffff8000, 0xffff8002, 0xffff8000 }, { 0xd0000000, 0xffccffec, 0x00000020, 0xffccffec }, { 0x40000000, 0xfffe7fff, 0xffff8002, 0xfffe7fff }, { 0x80000000, 0xffffffa1, 0x00000020, 0xffffffa1 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0xfffffffe }, { 0xd0000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xd0000000, 0x0000807d, 0x00007ffe, 0x0000807d }, { 0x90000000, 0x00007fff, 0x00007ffe, 0x00007fff }, { 0xd0000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xd0000000, 0xfffeff7f, 0xfffffffe, 0xfffeff7f }, { 0x50000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x70000000, 0x7fff007c, 0x7fffffff, 0x7fff007c }, { 0x40000000, 0x33333334, 0x33333333, 0x33333334 }, { 0xa0000000, 0x7ffffffd, 0xffff8003, 0x7ffffffd }, { 0xe0000000, 0xaa76aa76, 0xaaaaaaaa, 0xaa76aa76 }, { 0x90000000, 0xfffeffde, 0xffffffe0, 0xfffeffde }, { 0xa0000000, 0xffffff82, 0x7ffffffe, 0xffffff82 }, { 0xc0000000, 0xfffeff80, 0xffffff81, 0xfffeff80 }, { 0x20000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xf0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x60000000, 0xffff8001, 0xffff8001, 0xffff8001 }, { 0xf0000000, 0xffff8000, 0xffff8000, 0xffff8000 }, { 0x50000000, 0x0000007f, 0x0000007d, 0x0000007f }, { 0x70000000, 0xfffe8002, 0xffff8003, 0xfffe8002 }, { 0xc0000000, 0xffffffe0, 0xffffffe0, 0xffffffe0 }, { 0x30000000, 0xffffff81, 0x33333333, 0xffffff81 }, { 0x50000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x90000000, 0x33323333, 0x33333333, 0x33323333 }, { 0x10000000, 0xfffffffc, 0xffffffff, 0xfffffffc }, { 0xb0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0x60000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xf0000000, 0x33323330, 0x33333333, 0x33323330 }, { 0xa0000000, 0xffffff81, 0x00007ffe, 0xffffff81 }, { 0x20000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xb0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0xd0000000, 0xfffe7fff, 0xffff8001, 0xfffe7fff }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x33333353, 0x33333333, 0x33333353 }, { 0xb0000000, 0x00000002, 0x00000002, 0x00000002 }, { 0x20000000, 0x55555555, 0x0000007e, 0x55555555 }, { 0x40000000, 0x80000001, 0x80000001, 0x80000001 }, { 0xc0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0x20000000, 0x0000007e, 0x0000007f, 0x0000007e }, { 0xa0000000, 0xffffff82, 0x0000007f, 0xffffff82 }, { 0x20000000, 0x00007ffe, 0x00007ffe, 0x00007ffe }, { 0x40000000, 0xffff007b, 0x0000007d, 0xffff007b }, { 0x70000000, 0xffa9ff2c, 0xffffff82, 0xffa9ff2c }, { 0xb0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x90000000, 0x7fcbffca, 0x7ffffffe, 0x7fcbffca }, { 0xa0000000, 0xffff8001, 0x7ffffffe, 0xffff8001 }, { 0xa0000000, 0x7ffffffe, 0x0000007e, 0x7ffffffe }, { 0x30000000, 0x0000007f, 0x0000007f, 0x0000007f }, { 0xd0000000, 0x0000009f, 0x0000007f, 0x0000009f }, { 0x60000000, 0xffffff81, 0x00000001, 0xffffff81 }, { 0x70000000, 0xffff001f, 0xffffffff, 0xffff001f }, { 0x80000000, 0x7ffeffdf, 0x7fffffff, 0x7ffeffdf }, { 0xe0000000, 0xfffffffe, 0xffffffff, 0xfffffffe }, { 0x30000000, 0xffff8003, 0x7ffffffe, 0xffff8003 }, { 0x30000000, 0x00000020, 0x7fffffff, 0x00000020 }, { 0x80000000, 0x7fffff83, 0x80000001, 0x7fffff83 }, { 0x80000000, 0xfffeff04, 0xffffff81, 0xfffeff04 }, { 0xf0000000, 0xfffeff60, 0xffffff80, 0xfffeff60 }, { 0x70000000, 0xffff7ffd, 0x00007ffe, 0xffff7ffd }, { 0x70000000, 0x0000007f, 0x00000002, 0x0000007f }, { 0x90000000, 0xcccbcc4c, 0xcccccccc, 0xcccbcc4c }, { 0x60000000, 0xfffeff81, 0xfffffffe, 0xfffeff81 }, { 0x50000000, 0x7ffefffb, 0x7ffffffe, 0x7ffefffb }, { 0xd0000000, 0xffff7ffe, 0xffff8001, 0xffff7ffe }, { 0xb0000000, 0x0000007e, 0x80000000, 0x0000007e }, { 0xd0000000, 0xcccbcccb, 0xcccccccc, 0xcccbcccb }, { 0x10000000, 0xfffffffb, 0xfffffffe, 0xfffffffb }, { 0x40000000, 0xffa9ff2b, 0xffffff81, 0xffa9ff2b }, { 0x70000000, 0x00000001, 0x00000000, 0x00000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x8000007f, 0x80000000, 0x8000007f }, { 0x40000000, 0x00008000, 0x00007fff, 0x00008000 }, { 0x60000000, 0x0000007b, 0x0000007e, 0x0000007b }, { 0xb0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0xfffe7ffd, 0xffff8000, 0xfffe7ffd }, { 0xd0000000, 0x7fffff80, 0x80000000, 0x7fffff80 }, { 0x80000000, 0x0032ffb3, 0xffffff80, 0x0032ffb3 }, { 0xc0000000, 0x7fff007d, 0x7ffffffe, 0x7fff007d }, { 0x50000000, 0x0000ffff, 0x00000002, 0x0000ffff }, { 0x60000000, 0xffff8023, 0xffff8003, 0xffff8023 }, { 0xc0000000, 0x00000080, 0x00000002, 0x00000080 }, { 0xb0000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xb0000000, 0xffff8002, 0x00007ffe, 0xffff8002 }, { 0xf0000000, 0xfffe7f83, 0xffff8003, 0xfffe7f83 }, { 0xc0000000, 0xffff8001, 0x00007ffe, 0xffff8001 }, { 0x80000000, 0xffff8003, 0xffff8003, 0xffff8003 }, { 0xa0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x80000000, 0x7fffff83, 0x80000000, 0x7fffff83 }, { 0x40000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xd0000000, 0xffffffe2, 0x00000002, 0xffffffe2 }, { 0xd0000000, 0x0032ffb4, 0xffffff81, 0x0032ffb4 }, { 0xc0000000, 0xffff7ffb, 0x00007ffd, 0xffff7ffb }, { 0x10000000, 0x80000080, 0x80000001, 0x80000080 }, { 0x90000000, 0xffff0001, 0x00000000, 0xffff0001 }, { 0x80000000, 0xcccccd49, 0xcccccccc, 0xcccccd49 }, { 0x50000000, 0x555454d7, 0x55555555, 0x555454d7 }, { 0xd0000000, 0x0000007b, 0x0000007d, 0x0000007b }, { 0xa0000000, 0xaaaaaaaa, 0x80000001, 0xaaaaaaaa }, { 0x50000000, 0x00330053, 0x00000020, 0x00330053 }, { 0xe0000000, 0xffff005f, 0xffffffe0, 0xffff005f }, { 0xb0000000, 0x80000001, 0xffffff83, 0x80000001 }, { 0x50000000, 0xffffffe1, 0xffffffe0, 0xffffffe1 }, { 0xc0000000, 0xfffeff02, 0xffffff80, 0xfffeff02 }, { 0xb0000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x10000000, 0x000000fc, 0x0000007e, 0x000000fc }, { 0x30000000, 0x7fffffff, 0x7fffffff, 0x7fffffff }, { 0x30000000, 0x00007ffd, 0xffffff83, 0x00007ffd }, { 0x10000000, 0x7fff0001, 0x80000001, 0x7fff0001 }, { 0x40000000, 0x0000009f, 0x00000020, 0x0000009f }, { 0xc0000000, 0x33323336, 0x33333333, 0x33323336 }, { 0x40000000, 0xffff001d, 0xfffffffd, 0xffff001d }, { 0x70000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0x80000000, 0xfffeff63, 0xffffff83, 0xfffeff63 }, { 0x70000000, 0x55555556, 0x55555555, 0x55555556 }, { 0x70000000, 0xffff001f, 0x00000020, 0xffff001f }, { 0xa0000000, 0x80000001, 0xcccccccc, 0x80000001 }, { 0x50000000, 0x80540052, 0x7ffffffd, 0x80540052 }, { 0x30000000, 0xffffffff, 0xffff8001, 0xffffffff }, { 0x20000000, 0xfffffffe, 0xffff8000, 0xfffffffe }, { 0xc0000000, 0xffcbff4e, 0xffffff82, 0xffcbff4e }, { 0xd0000000, 0x0054ffd6, 0xffffff81, 0x0054ffd6 }, { 0x80000000, 0xfffeffdd, 0xffffffe0, 0xfffeffdd }, { 0xb0000000, 0xfffffffd, 0xffff8003, 0xfffffffd }, { 0x80000000, 0xfffeff7e, 0xffffff80, 0xfffeff7e }, { 0x40000000, 0xffff7fff, 0x00007ffd, 0xffff7fff }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffffff81 }, { 0x50000000, 0xffff0000, 0x0000007f, 0xffff0000 }, { 0x80000000, 0xffffffa3, 0xffffff83, 0xffffffa3 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0xb0000000, 0xffffffe0, 0x80000000, 0xffffffe0 }, { 0x80000000, 0x555454d5, 0x55555555, 0x555454d5 }, { 0x40000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x70000000, 0xffff8001, 0xffff8003, 0xffff8001 }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xffcbff4c, 0xffffff80, 0xffcbff4c }, { 0xf0000000, 0x7fcbffc9, 0x7ffffffd, 0x7fcbffc9 }, { 0xe0000000, 0x00328034, 0xffff8001, 0x00328034 }, { 0x40000000, 0xfffe7f81, 0xffff8000, 0xfffe7f81 }, { 0xf0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0x0000807a, 0x00007ffd, 0x0000807a }, { 0x40000000, 0x0000001d, 0x00000020, 0x0000001d }, { 0x80000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xc0000000, 0xfffeff03, 0xffffff80, 0xfffeff03 }, { 0xa0000000, 0x00007ffd, 0x00000001, 0x00007ffd }, { 0x90000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xd0000000, 0x7ffefffd, 0x7ffffffd, 0x7ffefffd }, { 0xe0000000, 0xffaa0029, 0x0000007f, 0xffaa0029 }, { 0xc0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0xc0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x005500d4, 0x0000007f, 0x005500d4 }, { 0x20000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xf0000000, 0x33333332, 0x33333333, 0x33333332 }, { 0xa0000000, 0xffff8000, 0xffffff81, 0xffff8000 }, { 0x70000000, 0xfffeff05, 0xffffff83, 0xfffeff05 }, { 0x90000000, 0xffff005e, 0x0000007e, 0xffff005e }, { 0xa0000000, 0x7ffffffe, 0x00007fff, 0x7ffffffe }, { 0x10000000, 0xffff001d, 0x00000020, 0xffff001d }, { 0x70000000, 0xfffeff02, 0xffffff81, 0xfffeff02 }, { 0x90000000, 0xffaaffaa, 0x00000000, 0xffaaffaa }, { 0x20000000, 0x33333333, 0x00000002, 0x33333333 }, { 0x30000000, 0x55555555, 0xfffffffd, 0x55555555 }, { 0x60000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xe0000000, 0x8000ffff, 0x80000000, 0x8000ffff }, { 0xb0000000, 0xffffff80, 0xffffffe0, 0xffffff80 }, { 0xf0000000, 0x80000002, 0x80000001, 0x80000002 }, { 0xe0000000, 0x005500d2, 0x0000007d, 0x005500d2 }, { 0xa0000000, 0x80000001, 0xffff8001, 0x80000001 }, { 0xb0000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xa0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0xffff007d, 0xffffffff, 0xffff007d }, { 0x90000000, 0xffff7f7e, 0x00007ffd, 0xffff7f7e }, }; const Inputs kOutputs_Sxtab16_RdIsRm_hi_r9_r14_r9[] = { { 0xd0000000, 0xffff8002, 0x00000020, 0xffff8002 }, { 0x90000000, 0x00000002, 0xfffffffd, 0x00000002 }, { 0x70000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xb0000000, 0xffff807f, 0xffff8000, 0xffff807f }, { 0x80000000, 0x00007fff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffeff7d, 0x7ffffffd, 0x7ffeff7d }, { 0x50000000, 0xffffff82, 0x0000007d, 0xffffff82 }, { 0x40000000, 0xfffffffd, 0x80000001, 0xfffffffd }, { 0x50000000, 0xffffff82, 0x7fffffff, 0xffffff82 }, { 0x20000000, 0xffff7ffe, 0x00007ffe, 0xffff7ffe }, { 0xc0000000, 0x0000007e, 0xffffff80, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffff8000, 0xffffff83 }, { 0x90000000, 0xcccccccc, 0x80000001, 0xcccccccc }, { 0x20000000, 0xfffe7f84, 0xffff8003, 0xfffe7f84 }, { 0xf0000000, 0x0000007e, 0xfffffffe, 0x0000007e }, { 0x10000000, 0x0000007f, 0xfffffffd, 0x0000007f }, { 0x90000000, 0xcccccccc, 0xffff8001, 0xcccccccc }, { 0x20000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x90000000, 0x80000000, 0xffff8002, 0x80000000 }, { 0x50000000, 0x00000001, 0x7ffffffd, 0x00000001 }, { 0x50000000, 0xffff8001, 0x00000020, 0xffff8001 }, { 0x20000000, 0xffffffff, 0x0000007e, 0xffffffff }, { 0x90000000, 0xffff8000, 0x00000002, 0xffff8000 }, { 0xb0000000, 0xfffe8002, 0xffff8002, 0xfffe8002 }, { 0xd0000000, 0xcccccccc, 0x00000020, 0xcccccccc }, { 0x40000000, 0x7ffffffd, 0xffff8002, 0x7ffffffd }, { 0x80000000, 0xffffff81, 0x00000020, 0xffffff81 }, { 0x80000000, 0x80000000, 0xfffffffe, 0x80000000 }, { 0xd0000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xd0000000, 0x0000007f, 0x00007ffe, 0x0000007f }, { 0x90000000, 0x80000001, 0x00007ffe, 0x80000001 }, { 0xd0000000, 0xffff8003, 0x00000020, 0xffff8003 }, { 0xd0000000, 0xffffff81, 0xfffffffe, 0xffffff81 }, { 0x50000000, 0x00000001, 0xffffff83, 0x00000001 }, { 0x70000000, 0x0000007d, 0x7fffffff, 0x0000007d }, { 0x40000000, 0x80000001, 0x33333333, 0x80000001 }, { 0xa0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0xe0000000, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc }, { 0x90000000, 0x7ffffffe, 0xffffffe0, 0x7ffffffe }, { 0xa0000000, 0x7ffeff80, 0x7ffffffe, 0x7ffeff80 }, { 0xc0000000, 0x7fffffff, 0xffffff81, 0x7fffffff }, { 0x20000000, 0xfffeff7e, 0xfffffffd, 0xfffeff7e }, { 0xf0000000, 0x00000020, 0xaaaaaaaa, 0x00000020 }, { 0x60000000, 0x80000000, 0xffff8001, 0x80000000 }, { 0xf0000000, 0x00000000, 0xffff8000, 0x00000000 }, { 0x50000000, 0x00000002, 0x0000007d, 0x00000002 }, { 0x70000000, 0x7fffffff, 0xffff8003, 0x7fffffff }, { 0xc0000000, 0x80000000, 0xffffffe0, 0x80000000 }, { 0x30000000, 0x333232b4, 0x33333333, 0x333232b4 }, { 0x50000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x90000000, 0xffff8000, 0x33333333, 0xffff8000 }, { 0x10000000, 0x00007ffd, 0xffffffff, 0x00007ffd }, { 0xb0000000, 0xfffefffd, 0xffffffff, 0xfffefffd }, { 0x60000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xf0000000, 0xfffffffd, 0x33333333, 0xfffffffd }, { 0xa0000000, 0xffff7f7f, 0x00007ffe, 0xffff7f7f }, { 0x20000000, 0xffff0023, 0x00000020, 0xffff0023 }, { 0xb0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0xa0000000, 0x7ffeff81, 0x7fffffff, 0x7ffeff81 }, { 0xd0000000, 0x7ffffffe, 0xffff8001, 0x7ffffffe }, { 0xd0000000, 0x00000001, 0x00000000, 0x00000001 }, { 0xd0000000, 0x00000020, 0x33333333, 0x00000020 }, { 0xb0000000, 0x00000004, 0x00000002, 0x00000004 }, { 0x20000000, 0x005500d3, 0x0000007e, 0x005500d3 }, { 0x40000000, 0x00000000, 0x80000001, 0x00000000 }, { 0xc0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0x20000000, 0x000000fd, 0x0000007f, 0x000000fd }, { 0xa0000000, 0xffff0001, 0x0000007f, 0xffff0001 }, { 0x20000000, 0x00007ffc, 0x00007ffe, 0x00007ffc }, { 0x40000000, 0x7ffffffe, 0x0000007d, 0x7ffffffe }, { 0x70000000, 0xaaaaaaaa, 0xffffff82, 0xaaaaaaaa }, { 0xb0000000, 0xffff007b, 0x0000007e, 0xffff007b }, { 0x90000000, 0xcccccccc, 0x7ffffffe, 0xcccccccc }, { 0xa0000000, 0x7ffeffff, 0x7ffffffe, 0x7ffeffff }, { 0xa0000000, 0xffff007c, 0x0000007e, 0xffff007c }, { 0x30000000, 0x000000fe, 0x0000007f, 0x000000fe }, { 0xd0000000, 0x00000020, 0x0000007f, 0x00000020 }, { 0x60000000, 0xffffff80, 0x00000001, 0xffffff80 }, { 0x70000000, 0x00000020, 0xffffffff, 0x00000020 }, { 0x80000000, 0xffffffe0, 0x7fffffff, 0xffffffe0 }, { 0xe0000000, 0x00007fff, 0xffffffff, 0x00007fff }, { 0x30000000, 0x7ffe0001, 0x7ffffffe, 0x7ffe0001 }, { 0x30000000, 0x7fff001f, 0x7fffffff, 0x7fff001f }, { 0x80000000, 0xffffff82, 0x80000001, 0xffffff82 }, { 0x80000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0xf0000000, 0xffffffe0, 0xffffff80, 0xffffffe0 }, { 0x70000000, 0x7fffffff, 0x00007ffe, 0x7fffffff }, { 0x70000000, 0x0000007d, 0x00000002, 0x0000007d }, { 0x90000000, 0xffffff80, 0xcccccccc, 0xffffff80 }, { 0x60000000, 0xffffff83, 0xfffffffe, 0xffffff83 }, { 0x50000000, 0x7ffffffd, 0x7ffffffe, 0x7ffffffd }, { 0xd0000000, 0x00007ffd, 0xffff8001, 0x00007ffd }, { 0xb0000000, 0x8000007e, 0x80000000, 0x8000007e }, { 0xd0000000, 0x7fffffff, 0xcccccccc, 0x7fffffff }, { 0x10000000, 0x00007ffd, 0xfffffffe, 0x00007ffd }, { 0x40000000, 0xaaaaaaaa, 0xffffff81, 0xaaaaaaaa }, { 0x70000000, 0x80000001, 0x00000000, 0x80000001 }, { 0x10000000, 0xffffffe0, 0x00000000, 0xffffffe0 }, { 0xd0000000, 0x0000007f, 0x80000000, 0x0000007f }, { 0x40000000, 0x80000001, 0x00007fff, 0x80000001 }, { 0x60000000, 0x00007ffd, 0x0000007e, 0x00007ffd }, { 0xb0000000, 0xffff8082, 0xffff8003, 0xffff8082 }, { 0x80000000, 0xfffffffd, 0xffff8000, 0xfffffffd }, { 0xd0000000, 0xffffff80, 0x80000000, 0xffffff80 }, { 0x80000000, 0x33333333, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x0000007f, 0x7ffffffe, 0x0000007f }, { 0x50000000, 0x00007ffd, 0x00000002, 0x00007ffd }, { 0x60000000, 0x00000020, 0xffff8003, 0x00000020 }, { 0xc0000000, 0x0000007e, 0x00000002, 0x0000007e }, { 0xb0000000, 0xffffff80, 0xffffff80, 0xffffff80 }, { 0xb0000000, 0xffff8000, 0x00007ffe, 0xffff8000 }, { 0xf0000000, 0xffffff80, 0xffff8003, 0xffffff80 }, { 0xc0000000, 0xffff8003, 0x00007ffe, 0xffff8003 }, { 0x80000000, 0x00000000, 0xffff8003, 0x00000000 }, { 0xa0000000, 0xaaaaaaca, 0xaaaaaaaa, 0xaaaaaaca }, { 0x80000000, 0xffffff83, 0x80000000, 0xffffff83 }, { 0x40000000, 0xcccccccc, 0x0000007f, 0xcccccccc }, { 0xd0000000, 0xffffffe0, 0x00000002, 0xffffffe0 }, { 0xd0000000, 0x33333333, 0xffffff81, 0x33333333 }, { 0xc0000000, 0x7ffffffe, 0x00007ffd, 0x7ffffffe }, { 0x10000000, 0x0000007f, 0x80000001, 0x0000007f }, { 0x90000000, 0xffff8001, 0x00000000, 0xffff8001 }, { 0x80000000, 0x0000007d, 0xcccccccc, 0x0000007d }, { 0x50000000, 0xffffff82, 0x55555555, 0xffffff82 }, { 0xd0000000, 0x00007ffe, 0x0000007d, 0x00007ffe }, { 0xa0000000, 0x7faaffab, 0x80000001, 0x7faaffab }, { 0x50000000, 0x33333333, 0x00000020, 0x33333333 }, { 0xe0000000, 0x0000007f, 0xffffffe0, 0x0000007f }, { 0xb0000000, 0xffffff84, 0xffffff83, 0xffffff84 }, { 0x50000000, 0x00000001, 0xffffffe0, 0x00000001 }, { 0xc0000000, 0xffffff82, 0xffffff80, 0xffffff82 }, { 0xb0000000, 0xffff7f7d, 0x00007ffd, 0xffff7f7d }, { 0x10000000, 0x0000007e, 0x0000007e, 0x0000007e }, { 0x30000000, 0x7ffefffe, 0x7fffffff, 0x7ffefffe }, { 0x30000000, 0xffffff80, 0xffffff83, 0xffffff80 }, { 0x10000000, 0xffff8000, 0x80000001, 0xffff8000 }, { 0x40000000, 0x0000007f, 0x00000020, 0x0000007f }, { 0xc0000000, 0xffff8003, 0x33333333, 0xffff8003 }, { 0x40000000, 0x00000020, 0xfffffffd, 0x00000020 }, { 0x70000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0x80000000, 0xffffffe0, 0xffffff83, 0xffffffe0 }, { 0x70000000, 0x80000001, 0x55555555, 0x80000001 }, { 0x70000000, 0x7fffffff, 0x00000020, 0x7fffffff }, { 0xa0000000, 0xcccccccd, 0xcccccccc, 0xcccccccd }, { 0x50000000, 0x55555555, 0x7ffffffd, 0x55555555 }, { 0x30000000, 0xfffe8000, 0xffff8001, 0xfffe8000 }, { 0x20000000, 0xfffe7ffe, 0xffff8000, 0xfffe7ffe }, { 0xc0000000, 0xcccccccc, 0xffffff82, 0xcccccccc }, { 0xd0000000, 0x55555555, 0xffffff81, 0x55555555 }, { 0x80000000, 0xfffffffd, 0xffffffe0, 0xfffffffd }, { 0xb0000000, 0xfffe8000, 0xffff8003, 0xfffe8000 }, { 0x80000000, 0xfffffffe, 0xffffff80, 0xfffffffe }, { 0x40000000, 0xffff8002, 0x00007ffd, 0xffff8002 }, { 0x20000000, 0xfffe7f83, 0xffff8002, 0xfffe7f83 }, { 0x50000000, 0xffffff81, 0x0000007f, 0xffffff81 }, { 0x80000000, 0x00000020, 0xffffff83, 0x00000020 }, { 0xc0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0xb0000000, 0x7fffffe0, 0x80000000, 0x7fffffe0 }, { 0x80000000, 0xffffff80, 0x55555555, 0xffffff80 }, { 0x40000000, 0xffffff80, 0x00007ffd, 0xffffff80 }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffe }, { 0x10000000, 0x7fffffff, 0x80000000, 0x7fffffff }, { 0x90000000, 0xcccccccc, 0xffffff80, 0xcccccccc }, { 0xf0000000, 0xcccccccc, 0x7ffffffd, 0xcccccccc }, { 0xe0000000, 0x33333333, 0xffff8001, 0x33333333 }, { 0x40000000, 0xffffff81, 0xffff8000, 0xffffff81 }, { 0xf0000000, 0x0000007f, 0xffff8003, 0x0000007f }, { 0x80000000, 0x0000007d, 0x00007ffd, 0x0000007d }, { 0x40000000, 0x00007ffd, 0x00000020, 0x00007ffd }, { 0x80000000, 0xffffff81, 0xfffffffd, 0xffffff81 }, { 0xc0000000, 0xffffff83, 0xffffff80, 0xffffff83 }, { 0xa0000000, 0x0000fffe, 0x00000001, 0x0000fffe }, { 0x90000000, 0x7fffffff, 0xffffff82, 0x7fffffff }, { 0xd0000000, 0xffff8000, 0x7ffffffd, 0xffff8000 }, { 0xe0000000, 0xaaaaaaaa, 0x0000007f, 0xaaaaaaaa }, { 0xc0000000, 0x7ffffffe, 0xffffffff, 0x7ffffffe }, { 0xc0000000, 0x00000000, 0x00007ffd, 0x00000000 }, { 0xc0000000, 0x55555555, 0x0000007f, 0x55555555 }, { 0x20000000, 0xffcc004b, 0x0000007f, 0xffcc004b }, { 0xf0000000, 0x00007fff, 0x33333333, 0x00007fff }, { 0xa0000000, 0xfffeff81, 0xffffff81, 0xfffeff81 }, { 0x70000000, 0xffffff82, 0xffffff83, 0xffffff82 }, { 0x90000000, 0xffffffe0, 0x0000007e, 0xffffffe0 }, { 0xa0000000, 0xffff7ffd, 0x00007fff, 0xffff7ffd }, { 0x10000000, 0x7ffffffd, 0x00000020, 0x7ffffffd }, { 0x70000000, 0xffffff81, 0xffffff81, 0xffffff81 }, { 0x90000000, 0xaaaaaaaa, 0x00000000, 0xaaaaaaaa }, { 0x20000000, 0x00330035, 0x00000002, 0x00330035 }, { 0x30000000, 0x00540052, 0xfffffffd, 0x00540052 }, { 0x60000000, 0x00000000, 0xffffff80, 0x00000000 }, { 0xe0000000, 0x00007fff, 0x80000000, 0x00007fff }, { 0xb0000000, 0xfffeff60, 0xffffffe0, 0xfffeff60 }, { 0xf0000000, 0x00000001, 0x80000001, 0x00000001 }, { 0xe0000000, 0x55555555, 0x0000007d, 0x55555555 }, { 0xa0000000, 0xffff8002, 0xffff8001, 0xffff8002 }, { 0xb0000000, 0xfffeff81, 0xffffff82, 0xfffeff81 }, { 0xa0000000, 0x00007ffd, 0x00007ffd, 0x00007ffd }, { 0xc0000000, 0x0000007e, 0xffffffff, 0x0000007e }, { 0x90000000, 0xffffff81, 0x00007ffd, 0xffffff81 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_mi_r8_r5_r10[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0xffaa7fa8, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0xfffffffd, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0x00000000, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xcccccccc, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xfffe8004, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x33333333, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0x00000002, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffff82, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0xffff8001, 0x80000000, 0x80000001 }, { 0x50000000, 0x00000020, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00007fff, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x00000020, 0x0000007f, 0x00000000 }, { 0xe0000000, 0xffa97fac, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0xfffffffe, 0xffffff81, 0x0000007d }, { 0xf0000000, 0xffff007e, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x00007ffe, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0xfffe7fff, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x000000fc, 0x0000007f, 0x0000007d }, { 0x10000000, 0x80000000, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0xffaa7fa7, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0xffff007c, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0x33333333, 0xffff8001, 0x0000007f }, { 0xa0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x30000000, 0x0000007f, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0x80000000, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0x00007ffe, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0x000000fb, 0x0000007e, 0x0000007d }, { 0x30000000, 0xffffff82, 0x80000001, 0xffffff80 }, { 0x20000000, 0xffff8002, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0x7fffffff, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffffe0, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0x00000020, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0x00000002, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0x00000000, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xfffeff04, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0x00007ffd, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffefffc, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0x00558052, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0x00000000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x00000000, 0x33333333, 0x00000000 }, { 0x40000000, 0x80000001, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x80000000, 0x0000007f, 0x00000000 }, { 0x40000000, 0x7ffffffe, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0x80000001, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0x7fffffff, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x0000007d }, { 0x50000000, 0xfffffffe, 0xffffff80, 0x33333333 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0x55555555, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffeff80, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffe, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x7ffffffd, 0x00007fff, 0x0000007f }, { 0x30000000, 0xffff8001, 0xcccccccc, 0xffffffff }, { 0x40000000, 0x00007fff, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffffff82, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xc0000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0x40000000, 0x7fffffff, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0x7ffffffe, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x00007ffe, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x7fff0000, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0x80000000, 0xffff8002, 0xffffff82 }, { 0x20000000, 0xcccccccc, 0x00007fff, 0x00000000 }, { 0x50000000, 0xfffffffe, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0xfffe8003, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x40000000, 0x0000007d, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x0000007e, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff8001, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xaaaaaaab, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0x0000807c, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0x7ffffffd, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xffffff83, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000007e, 0x00000020, 0x0000007f }, { 0x20000000, 0xffffffe0, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0xfffe8002, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0xffff005d, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0xfffefffe, 0xffffffff, 0xffffffff }, { 0xe0000000, 0xfffeffff, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0xfffe8005, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x0000007e, 0x0000007f, 0x80000001 }, { 0xe0000000, 0xfffeff84, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0x00000022, 0x00000020, 0x00000002 }, { 0xa0000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0x80000001, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0xfffffffe, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0x8000fffe, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xfffeff7d, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000003, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0xaaa9aa2d, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0xffffffe1, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00007ffe, 0x00000000, 0x55555555 }, { 0xc0000000, 0x7ffefffc, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0x33333333, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x00320013, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffff8003, 0xffff8002, 0x80000001 }, { 0x20000000, 0x7fffffff, 0xffffff81, 0x33333333 }, { 0xa0000000, 0x33323336, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffffffff, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x00000001, 0x80000001, 0x80000001 }, { 0x30000000, 0x00000001, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xffffffa1, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x7fffff81, 0x80000000, 0xffffff81 }, { 0xf0000000, 0x7ffe0001, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0xaaaaaaa8, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0x50000000, 0xffff8002, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0xffffffff, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xffff8002, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffffffd, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x7fffffff, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffff8000 }, { 0x20000000, 0xfffffffe, 0x00000020, 0x0000007d }, { 0x30000000, 0x00007ffd, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x80000001, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0x00007ffe, 0xffff8000, 0xffffffff }, { 0x40000000, 0x00000001, 0xffff8002, 0x0000007e }, { 0xf0000000, 0x333333b2, 0x33333333, 0x0000007f }, { 0xc0000000, 0x0000801e, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_ge_r2_r5_r4[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0xffaa7fa8, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0x00548056, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0xaaa9aaa8, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xcccccccc, 0x80000001 }, { 0x80000000, 0x7fffffff, 0xffffff80, 0xcccccccc }, { 0x80000000, 0xffff8001, 0x00000002, 0x00000001 }, { 0x50000000, 0xcccccccc, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xffff8001, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x33333333, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0xffffffdd, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffffff, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0x00000020, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00007fff, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0xffffff81, 0x0000007f, 0x00000002 }, { 0x30000000, 0x00000020, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0xffff007e, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff8001, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x00007ffe, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0x00000002, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x00000002, 0x0000007f, 0x0000007d }, { 0x10000000, 0x80000000, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x80000000, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0xffaa7fa7, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0x0000007d, 0xffffffff, 0x0000007d }, { 0x60000000, 0xffffff84, 0xffffff83, 0x00000001 }, { 0x80000000, 0xffff8000, 0x80000000, 0x00000002 }, { 0x20000000, 0xffff8080, 0xffff8001, 0x0000007f }, { 0xa0000000, 0xfffffffd, 0x33333333, 0x0000007d }, { 0x30000000, 0x0000007f, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0x80000000, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0x000000fb, 0x0000007e, 0x0000007d }, { 0x30000000, 0xffffff82, 0x80000001, 0xffffff80 }, { 0x20000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0x7fffffff, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffffe0, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0x00007ffd, 0xfffffffe, 0x00000000 }, { 0x80000000, 0xfffffffe, 0x80000001, 0xffffff80 }, { 0x30000000, 0x00000002, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0xffaaffca, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xfffeff04, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0x00007ffd, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0x00558052, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x00000000, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0x80000001, 0xffff8000, 0x7fffffff }, { 0x80000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0x00007fff, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x0000007d }, { 0x50000000, 0xfffffffe, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0x55555555, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffeff80, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x0000807e, 0x00007fff, 0x0000007f }, { 0x30000000, 0xffff8001, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffffff82, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xffff8001, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0xfffeff02, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x7ffffffd, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0x80000000, 0xffff8002, 0xffffff82 }, { 0x20000000, 0x00007fff, 0x00007fff, 0x00000000 }, { 0x50000000, 0xfffffffe, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0xfffe8003, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x0000007e, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xfffffffe, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0x80000000, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x0000007f, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0x7ffffffd, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000007e, 0x00000020, 0x0000007f }, { 0x20000000, 0x00007ffd, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0xfffe8002, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0x33333333, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0xfffe8005, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x80000000, 0x7ffffffe, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xfffeff85, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000000, 0x00000002, 0x0000007e }, { 0x30000000, 0x0000007e, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0x00000022, 0x00000020, 0x00000002 }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00338030, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0x80000001, 0xfffffffe, 0x0000007d }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x80000000 }, { 0x20000000, 0x00328034, 0xffff8001, 0x33333333 }, { 0x80000000, 0x80000001, 0x80000001, 0xcccccccc }, { 0xb0000000, 0x8000fffe, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xffffffff, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000020, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00007ffe, 0x00000000, 0x55555555 }, { 0xc0000000, 0x80000001, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffff8003, 0xffff8002, 0x80000001 }, { 0x20000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0xa0000000, 0xcccccccc, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffff8003, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x00000001, 0x80000001, 0x80000001 }, { 0x30000000, 0x00000001, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xffffffa1, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x7fffff81, 0x80000000, 0xffffff81 }, { 0xf0000000, 0x7ffe0001, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0xaaaaaaa8, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0xffff8002, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0x7fff007c, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0xffffffff, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffffffd, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x0000007f, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xfffe8002, 0xffff8002, 0xffff8000 }, { 0x20000000, 0x0000009d, 0x00000020, 0x0000007d }, { 0x30000000, 0x00007ffd, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0x00007ffe, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0x333333b2, 0x33333333, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r2_r7_r1[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0xfffffffd, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0x00000000, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xaaaaaaab, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xffff8001, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0x00000002, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffff82, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0xcccbcc4c, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x00000020, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff8001, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0x00000002, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x000000fc, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0x0000007d, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0x33333333, 0xffff8001, 0x0000007f }, { 0xa0000000, 0xfffffffd, 0x33333333, 0x0000007d }, { 0x30000000, 0x0000007f, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0x80000000, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0xffffff82, 0x80000001, 0xffffff80 }, { 0x20000000, 0xffff8002, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0xffffff82, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffffe0, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0x00000002, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0x00007ffd, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0x00000001, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x00000000, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0x0032ffb3, 0xffffff80, 0x33333333 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x7ffffffd, 0x00007fff, 0x0000007f }, { 0x30000000, 0xffff8001, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x00007ffe, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0xfffe7f84, 0xffff8002, 0xffffff82 }, { 0x20000000, 0xcccccccc, 0x00007fff, 0x00000000 }, { 0x50000000, 0x7ffffffc, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffffff83, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0x55555555, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0xfffefffb, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xfffffffe, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0xffff0001, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000007e, 0x00000020, 0x0000007f }, { 0x20000000, 0xffffffe0, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0xffff005d, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x55555555, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0xfffefffe, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x0000007f, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x0000007e, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0x00000020, 0x00000002 }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0xffff007b, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0xfffffffe, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0xffffff81, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xffffffff, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000020, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00550055, 0x00000000, 0x55555555 }, { 0xc0000000, 0x7ffefffc, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffffff83, 0xffff8002, 0x80000001 }, { 0x20000000, 0x7fffffff, 0xffffff81, 0x33333333 }, { 0xa0000000, 0xcccccccc, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffff8003, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x80000002, 0x80000001, 0x80000001 }, { 0x30000000, 0x00000001, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0x7ffeffdd, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x0000007f, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffff8000 }, { 0x20000000, 0xfffffffe, 0x00000020, 0x0000007d }, { 0x30000000, 0x00007ffd, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x80000001, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0xfffe7fff, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x0000801e, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r5_r9_r0[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0x00548056, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0x0000007f, 0xffff8003, 0x00007fff }, { 0x20000000, 0xaaa9aaa8, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xcccccccc, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xfffe8004, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0xffffffdd, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffffff, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0xffff8001, 0x80000000, 0x80000001 }, { 0x50000000, 0x00000020, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xfffffffd, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0xfffe7fff, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x00000002, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffffffd, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0xffff007c, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0xffff8080, 0xffff8001, 0x0000007f }, { 0xa0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x30000000, 0x7ffe0000, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0xfffe7fe0, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0x00007ffe, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x20000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0x7fffffff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffefffd, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0x00000020, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0xccccccc9, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x00007ffe, 0x00000000, 0x0000007d }, { 0x40000000, 0x00000000, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xfffeff04, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0xcd21cd21, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0x7ffffffd, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0x00000000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x33333333, 0x33333333, 0x00000000 }, { 0x40000000, 0x80000001, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x80000000, 0x0000007f, 0x00000000 }, { 0x40000000, 0x7ffffffe, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0xcccccccc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0x7fffffff, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0xfffffffe, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x0000807e, 0x00007fff, 0x0000007f }, { 0x30000000, 0xcccbcccb, 0xcccccccc, 0xffffffff }, { 0x40000000, 0x00007fff, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffffff82, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xffff8001, 0xffff8003, 0xffffff82 }, { 0x40000000, 0x7fffffff, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0x7ffffffe, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x7ffffffd, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0x00000000, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0x7ffffffd, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0x80000000, 0xffff8002, 0xffffff82 }, { 0x20000000, 0x00007fff, 0x00007fff, 0x00000000 }, { 0x50000000, 0xfffffffe, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0x00000002, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x40000000, 0x0000007d, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x0000007e, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff8001, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xaaaaaaab, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0x80000000, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0x7ffffffd, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x0000007d, 0x00000002, 0x80000000 }, { 0x40000000, 0xffffff83, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000009f, 0x00000020, 0x0000007f }, { 0x20000000, 0x00007ffd, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0x33333333, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x00000080, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0x00000022, 0x00000020, 0x00000002 }, { 0xa0000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0x0000007f, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xfffffffe, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0x80000001, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0x00328034, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0x8000fffe, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xfffeff7d, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000003, 0x00000002, 0x80000001 }, { 0xd0000000, 0xcccccccc, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00007ffe, 0x00000000, 0x55555555 }, { 0xc0000000, 0x80000001, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0x33333333, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffff8003, 0xffff8002, 0x80000001 }, { 0x20000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0xa0000000, 0x33323336, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffffffff, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x00000001, 0x80000001, 0x80000001 }, { 0x30000000, 0xffffffff, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xfffffffe, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0xffff8002, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x8000fffe, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x7fffffff, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xfffe8002, 0xffff8002, 0xffff8000 }, { 0x20000000, 0x0000009d, 0x00000020, 0x0000007d }, { 0x30000000, 0xffffff82, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0x00007ffe, 0xffff8000, 0xffffffff }, { 0x40000000, 0x00000001, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_eq_r10_r6_r5[] = { { 0x70000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0xffaa7fa8, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0xfffffffd, 0xffff8001, 0x55555555 }, { 0x90000000, 0x7fffffff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0x00000000, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xcccccccc, 0x80000001 }, { 0x80000000, 0x7fffffff, 0xffffff80, 0xcccccccc }, { 0x80000000, 0xffff8001, 0x00000002, 0x00000001 }, { 0x50000000, 0xaaaaaaab, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xffff8001, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x33333333, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0x00000002, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffff82, 0x00000002, 0xfffffffd }, { 0x70000000, 0xffff0000, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0xcccbcc4c, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00007fff, 0x00000002, 0x55555555 }, { 0x90000000, 0x0000007f, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0xffffff81, 0x0000007f, 0x00000002 }, { 0x30000000, 0x00000020, 0x0000007f, 0x00000000 }, { 0xe0000000, 0xffa97fac, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0xffffffff, 0xffffffff, 0x80000000 }, { 0xe0000000, 0xfffffffe, 0xffffff81, 0x0000007d }, { 0xf0000000, 0xffff007e, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff8001, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0xffff8000, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x00007ffe, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0x00000002, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x000000fc, 0x0000007f, 0x0000007d }, { 0x10000000, 0x80000000, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x80000000, 0x00000020, 0x00007ffe }, { 0x90000000, 0xffffff81, 0x00000002, 0x00000000 }, { 0xf0000000, 0xffaa7fa7, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xffff8003, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0x0000007d, 0xffffffff, 0x0000007d }, { 0x60000000, 0xffffff84, 0xffffff83, 0x00000001 }, { 0x80000000, 0xffff8000, 0x80000000, 0x00000002 }, { 0x20000000, 0x33333333, 0xffff8001, 0x0000007f }, { 0xa0000000, 0xfffffffd, 0x33333333, 0x0000007d }, { 0x30000000, 0x0000007f, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0x80000000, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0x000000fb, 0x0000007e, 0x0000007d }, { 0x30000000, 0xffffff82, 0x80000001, 0xffffff80 }, { 0x20000000, 0xffff8002, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0xffffff82, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffffe0, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffff7f7f, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0x00007ffd, 0xfffffffe, 0x00000000 }, { 0x80000000, 0xfffffffe, 0x80000001, 0xffffff80 }, { 0x30000000, 0x00000002, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0xffaaffca, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0x90000000, 0xffffffff, 0xffffff81, 0x33333333 }, { 0x30000000, 0x00007ffd, 0xcccccccc, 0x55555555 }, { 0x70000000, 0x80550056, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffefffc, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x7fff0000, 0x80000001, 0xffffffff }, { 0xf0000000, 0x00558052, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffffff, 0xffffff82, 0x00000002 }, { 0xb0000000, 0x00000001, 0x00000002, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x00000000, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0x80000001, 0xffff8000, 0x7fffffff }, { 0x80000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0x00007fff, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x0000007d }, { 0x50000000, 0x0032ffb3, 0xffffff80, 0x33333333 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0x55555555, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x00007ffd, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffeff80, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffe, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x7ffffffd, 0x00007fff, 0x0000007f }, { 0x30000000, 0xffff8001, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x00000002, 0x00000001, 0x80000001 }, { 0x50000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xc0000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0xfffeff02, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x00007ffe, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x7fff0000, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0x90000000, 0x80000000, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffffff82, 0x00000000 }, { 0x90000000, 0xfffffffe, 0x33333333, 0x80000000 }, { 0x50000000, 0xfffe7f84, 0xffff8002, 0xffffff82 }, { 0x20000000, 0xcccccccc, 0x00007fff, 0x00000000 }, { 0x50000000, 0x7ffffffc, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0xfffe8003, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffffff83, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0x55555555, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0xfffefffb, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0x333232b5, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xfffffffe, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0x0000807c, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x0000007f, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0xffff0001, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000007e, 0x00000020, 0x0000007f }, { 0x20000000, 0xffffffe0, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0xfffe8002, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0xffff005d, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x55555555, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0xfffefffe, 0xffffffff, 0xffffffff }, { 0xe0000000, 0xfffeffff, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0xfffe8005, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x0000007f, 0x33333333, 0x0000007d }, { 0x80000000, 0x7ffffffe, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xfffeff85, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000000, 0x00000002, 0x0000007e }, { 0x30000000, 0x0000007e, 0x0000007f, 0x80000001 }, { 0xe0000000, 0xfffeff84, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0x00000020, 0x00000002 }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00338030, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0xffff007b, 0xfffffffe, 0x0000007d }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x80000000 }, { 0x20000000, 0xfffffffe, 0xffff8001, 0x33333333 }, { 0x80000000, 0x80000001, 0x80000001, 0xcccccccc }, { 0xb0000000, 0xffffff81, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xffffffff, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000020, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0xaaa9aa2d, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x70000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffffffd, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0xffffffe1, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00550055, 0x00000000, 0x55555555 }, { 0xc0000000, 0x7ffefffc, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x00320013, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffffff83, 0xffff8002, 0x80000001 }, { 0x20000000, 0x7fffffff, 0xffffff81, 0x33333333 }, { 0xa0000000, 0xcccccccc, 0x33333333, 0xffff8003 }, { 0x90000000, 0x0000007e, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffff8003, 0x0000007d, 0xffffff82 }, { 0x70000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x55555575, 0x55555555, 0x00000020 }, { 0x50000000, 0x80000002, 0x80000001, 0x80000001 }, { 0x30000000, 0x00000001, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xffffffa1, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x7fffff81, 0x80000000, 0xffffff81 }, { 0xf0000000, 0x7ffe0001, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xfffeff04, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0xaaaaaaa8, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0x50000000, 0x7ffeffdd, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0x7fff007c, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0xffffffff, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xffff8002, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffffffd, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0x90000000, 0x55555555, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x0000007f, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0x00000001, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffff8000 }, { 0x20000000, 0xfffffffe, 0x00000020, 0x0000007d }, { 0x30000000, 0x00007ffd, 0xffffff80, 0x00000002 }, { 0x90000000, 0x7ffffffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x80000001, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0xfffe7fff, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0x333333b2, 0x33333333, 0x0000007f }, { 0xc0000000, 0x0000801e, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r0_r4_r6[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0x00548056, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0x0000007f, 0xffff8003, 0x00007fff }, { 0x20000000, 0xaaa9aaa8, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xcccccccc, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xfffe8004, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0xffffffdd, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffffff, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0xffff8001, 0x80000000, 0x80000001 }, { 0x50000000, 0x00000020, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xfffffffd, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0xfffe7fff, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x00000002, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffffffd, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0xffff007c, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0xffff8080, 0xffff8001, 0x0000007f }, { 0xa0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x30000000, 0x7ffe0000, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0xfffe7fe0, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0x00007ffe, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x20000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0x7fffffff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffefffd, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0x00000020, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0xccccccc9, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x00007ffe, 0x00000000, 0x0000007d }, { 0x40000000, 0x00000000, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xfffeff04, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0xcd21cd21, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0x7ffffffd, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0x00000000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x33333333, 0x33333333, 0x00000000 }, { 0x40000000, 0x80000001, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x80000000, 0x0000007f, 0x00000000 }, { 0x40000000, 0x7ffffffe, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0xcccccccc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0x7fffffff, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0xfffffffe, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x0000807e, 0x00007fff, 0x0000007f }, { 0x30000000, 0xcccbcccb, 0xcccccccc, 0xffffffff }, { 0x40000000, 0x00007fff, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffffff82, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xffff8001, 0xffff8003, 0xffffff82 }, { 0x40000000, 0x7fffffff, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0x7ffffffe, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x7ffffffd, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0x00000000, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0x7ffffffd, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0x80000000, 0xffff8002, 0xffffff82 }, { 0x20000000, 0x00007fff, 0x00007fff, 0x00000000 }, { 0x50000000, 0xfffffffe, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0x00000002, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x40000000, 0x0000007d, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x0000007e, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff8001, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xaaaaaaab, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0x80000000, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0x7ffffffd, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x0000007d, 0x00000002, 0x80000000 }, { 0x40000000, 0xffffff83, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000009f, 0x00000020, 0x0000007f }, { 0x20000000, 0x00007ffd, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0x33333333, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x00000080, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0x00000022, 0x00000020, 0x00000002 }, { 0xa0000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0x0000007f, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xfffffffe, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0x80000001, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0x00328034, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0x8000fffe, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xfffeff7d, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000003, 0x00000002, 0x80000001 }, { 0xd0000000, 0xcccccccc, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00007ffe, 0x00000000, 0x55555555 }, { 0xc0000000, 0x80000001, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0x33333333, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffff8003, 0xffff8002, 0x80000001 }, { 0x20000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0xa0000000, 0x33323336, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffffffff, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x00000001, 0x80000001, 0x80000001 }, { 0x30000000, 0xffffffff, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xfffffffe, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0xffff8002, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x8000fffe, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x7fffffff, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xfffe8002, 0xffff8002, 0xffff8000 }, { 0x20000000, 0x0000009d, 0x00000020, 0x0000007d }, { 0x30000000, 0xffffff82, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0x00007ffe, 0xffff8000, 0xffffffff }, { 0x40000000, 0x00000001, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_le_r7_r6_r0[] = { { 0x70000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0xffaa7fa8, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0xfffffffd, 0xffff8001, 0x55555555 }, { 0x90000000, 0x7fffffff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0x00000000, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xaaaaaaab, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xfffe8004, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0x00000002, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffff82, 0x00000002, 0xfffffffd }, { 0x70000000, 0xffff0000, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0xcccbcc4c, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0x0000007f, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0xe0000000, 0xffa97fac, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0xffffffff, 0xffffffff, 0x80000000 }, { 0xe0000000, 0xfffffffe, 0xffffff81, 0x0000007d }, { 0xf0000000, 0xffff007e, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0xffff8000, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0xfffe7fff, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x000000fc, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0xffffff81, 0x00000002, 0x00000000 }, { 0xf0000000, 0xffaa7fa7, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xffff8003, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0xffff007c, 0xffffffff, 0x0000007d }, { 0x60000000, 0xffffff84, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0x33333333, 0xffff8001, 0x0000007f }, { 0xa0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x30000000, 0x7ffe0000, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0xfffe7fe0, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0x000000fb, 0x0000007e, 0x0000007d }, { 0x30000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x20000000, 0xffff8002, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0xffffff82, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffefffd, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffff7f7f, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0xccccccc9, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0xffaaffca, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0x90000000, 0xffffffff, 0xffffff81, 0x33333333 }, { 0x30000000, 0xcd21cd21, 0xcccccccc, 0x55555555 }, { 0x70000000, 0x80550056, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffefffc, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x7fff0000, 0x80000001, 0xffffffff }, { 0xf0000000, 0x00558052, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffffff, 0xffffff82, 0x00000002 }, { 0xb0000000, 0x00000001, 0x00000002, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x33333333, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0x0032ffb3, 0xffffff80, 0x33333333 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x00007ffd, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffeff80, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffe, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x7ffffffd, 0x00007fff, 0x0000007f }, { 0x30000000, 0xcccbcccb, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x00000002, 0x00000001, 0x80000001 }, { 0x50000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0x55555555, 0x55555555, 0x00000000 }, { 0xc0000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0xfffeff02, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x00007ffe, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x7fff0000, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0x90000000, 0x80000000, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffffff82, 0x00000000 }, { 0x90000000, 0xfffffffe, 0x33333333, 0x80000000 }, { 0x50000000, 0xfffe7f84, 0xffff8002, 0xffffff82 }, { 0x20000000, 0xcccccccc, 0x00007fff, 0x00000000 }, { 0x50000000, 0x7ffffffc, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0xfffe8003, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffffff83, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0x55555555, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0xfffefffb, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0x333232b5, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xaaaaaaab, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0x0000807c, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0xffff0001, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000009f, 0x00000020, 0x0000007f }, { 0x20000000, 0xffffffe0, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0xfffe8002, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0xffff005d, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x55555555, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0xfffefffe, 0xffffffff, 0xffffffff }, { 0xe0000000, 0xfffeffff, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0xfffe8005, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x0000007f, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xfffeff85, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x00000080, 0x0000007f, 0x80000001 }, { 0xe0000000, 0xfffeff84, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0x00000020, 0x00000002 }, { 0xa0000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00338030, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0xffff007b, 0xfffffffe, 0x0000007d }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x80000000 }, { 0x20000000, 0xfffffffe, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0xffffff81, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xfffeff7d, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000003, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0xaaa9aa2d, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x70000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffffffd, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0xffffffe1, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00550055, 0x00000000, 0x55555555 }, { 0xc0000000, 0x7ffefffc, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x00320013, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffffff83, 0xffff8002, 0x80000001 }, { 0x20000000, 0x7fffffff, 0xffffff81, 0x33333333 }, { 0xa0000000, 0x33323336, 0x33333333, 0xffff8003 }, { 0x90000000, 0x0000007e, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffffffff, 0x0000007d, 0xffffff82 }, { 0x70000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x55555575, 0x55555555, 0x00000020 }, { 0x50000000, 0x80000002, 0x80000001, 0x80000001 }, { 0x30000000, 0xffffffff, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xffffffa1, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x7fffff81, 0x80000000, 0xffffff81 }, { 0xf0000000, 0x7ffe0001, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xfffeff04, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0xaaaaaaa8, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0xcccccccc, 0xcccccccc, 0x80000000 }, { 0x50000000, 0x7ffeffdd, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0x7fff007c, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xffff8002, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x8000fffe, 0x80000001, 0x00007ffd }, { 0x90000000, 0x55555555, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x7fffffff, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0x00000001, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffff8000 }, { 0x20000000, 0xfffffffe, 0x00000020, 0x0000007d }, { 0x30000000, 0xffffff82, 0xffffff80, 0x00000002 }, { 0x90000000, 0x7ffffffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x80000001, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0xfffe7fff, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0x333333b2, 0x33333333, 0x0000007f }, { 0xc0000000, 0x0000801e, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_hi_r12_r11_r3[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0x00548056, 0xffff8001, 0x55555555 }, { 0x90000000, 0x7fffffff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0x0000007f, 0xffff8003, 0x00007fff }, { 0x20000000, 0xaaa9aaa8, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xcccccccc, 0x80000001 }, { 0x80000000, 0x7fffffff, 0xffffff80, 0xcccccccc }, { 0x80000000, 0xffff8001, 0x00000002, 0x00000001 }, { 0x50000000, 0xcccccccc, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xfffe8004, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x33333333, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0xffffffdd, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffffff, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0xffff8001, 0x80000000, 0x80000001 }, { 0x50000000, 0x00000020, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00007fff, 0x00000002, 0x55555555 }, { 0x90000000, 0x0000007f, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0xffffff81, 0x0000007f, 0x00000002 }, { 0x30000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xfffffffd, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x00007ffe, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0xfffe7fff, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x00000002, 0x0000007f, 0x0000007d }, { 0x10000000, 0x80000000, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x80000000, 0x00000020, 0x00007ffe }, { 0x90000000, 0xffffff81, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xffff8003, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffffffd, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0xffff007c, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0xffff8000, 0x80000000, 0x00000002 }, { 0x20000000, 0xffff8080, 0xffff8001, 0x0000007f }, { 0xa0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x30000000, 0x7ffe0000, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0xfffe7fe0, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0x00007ffe, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x20000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0x7fffffff, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffefffd, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0x00000020, 0xffff8001, 0x00000020 }, { 0x80000000, 0x00007ffd, 0xfffffffe, 0x00000000 }, { 0x80000000, 0xfffffffe, 0x80000001, 0xffffff80 }, { 0x30000000, 0xccccccc9, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x00007ffe, 0x00000000, 0x0000007d }, { 0x40000000, 0x00000000, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xfffeff04, 0xffffff81, 0xffffff83 }, { 0x90000000, 0xffffffff, 0xffffff81, 0x33333333 }, { 0x30000000, 0xcd21cd21, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0x7ffffffd, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffffff, 0xffffff82, 0x00000002 }, { 0xb0000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x80000000, 0xffff8000 }, { 0x40000000, 0x00000000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x33333333, 0x33333333, 0x00000000 }, { 0x40000000, 0x80000001, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x80000000, 0x0000007f, 0x00000000 }, { 0x40000000, 0x7ffffffe, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0xcccccccc, 0x80000000, 0xcccccccc }, { 0x10000000, 0x80000001, 0xffff8000, 0x7fffffff }, { 0x80000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0x00007fff, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0x7fffffff, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fffffff, 0x7fffffff, 0x0000007d }, { 0x50000000, 0xfffffffe, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0x55555555, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x00007ffd, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x0000807e, 0x00007fff, 0x0000007f }, { 0x30000000, 0xcccbcccb, 0xcccccccc, 0xffffffff }, { 0x40000000, 0x00007fff, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffffff82, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xffff8001, 0xffff8003, 0xffffff82 }, { 0x40000000, 0x7fffffff, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0x7ffffffe, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x7ffffffd, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0x00000000, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0x7ffffffd, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0x80000000, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffffff82, 0x00000000 }, { 0x90000000, 0xfffffffe, 0x33333333, 0x80000000 }, { 0x50000000, 0x80000000, 0xffff8002, 0xffffff82 }, { 0x20000000, 0x00007fff, 0x00007fff, 0x00000000 }, { 0x50000000, 0xfffffffe, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0x00000002, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x40000000, 0x0000007d, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x0000007e, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff8001, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xaaaaaaab, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0x80000000, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x0000007f, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0x7ffffffd, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x0000007d, 0x00000002, 0x80000000 }, { 0x40000000, 0xffffff83, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000009f, 0x00000020, 0x0000007f }, { 0x20000000, 0x00007ffd, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0x33333333, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x333333b0, 0x33333333, 0x0000007d }, { 0x80000000, 0x7ffffffe, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000000, 0x00000002, 0x0000007e }, { 0x30000000, 0x00000080, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0x00000022, 0x00000020, 0x00000002 }, { 0xa0000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0x0000007f, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xfffffffe, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0x80000001, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0x00328034, 0xffff8001, 0x33333333 }, { 0x80000000, 0x80000001, 0x80000001, 0xcccccccc }, { 0xb0000000, 0x8000fffe, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xfffeff7d, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000003, 0x00000002, 0x80000001 }, { 0xd0000000, 0xcccccccc, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffffffd, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00007ffe, 0x00000000, 0x55555555 }, { 0xc0000000, 0x80000001, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0x33333333, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffff8003, 0xffff8002, 0x80000001 }, { 0x20000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0xa0000000, 0x33323336, 0x33333333, 0xffff8003 }, { 0x90000000, 0x0000007e, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffffffff, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x00000001, 0x80000001, 0x80000001 }, { 0x30000000, 0xffffffff, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xfffffffe, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0xffff8002, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0xffffffff, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffffffd, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x8000fffe, 0x80000001, 0x00007ffd }, { 0x90000000, 0x55555555, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x7fffffff, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0x00000001, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xfffe8002, 0xffff8002, 0xffff8000 }, { 0x20000000, 0x0000009d, 0x00000020, 0x0000007d }, { 0x30000000, 0xffffff82, 0xffffff80, 0x00000002 }, { 0x90000000, 0x7ffffffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0x00007ffe, 0xffff8000, 0xffffffff }, { 0x40000000, 0x00000001, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_pl_r3_r7_r12[] = { { 0x70000000, 0x7ffffffe, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0x00548056, 0xffff8001, 0x55555555 }, { 0x90000000, 0x7fffffff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0x0000007f, 0xffff8003, 0x00007fff }, { 0x20000000, 0xaaa9aaa8, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xffffffe0, 0xcccccccc, 0x80000001 }, { 0x80000000, 0x7fffffff, 0xffffff80, 0xcccccccc }, { 0x80000000, 0xffff8001, 0x00000002, 0x00000001 }, { 0x50000000, 0xaaaaaaab, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xffff8001, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0xffffffdd, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffffff, 0x00000002, 0xfffffffd }, { 0x70000000, 0xffff0000, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0xcccbcc4c, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0x0000007f, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0xffffff81, 0x0000007f, 0x00000002 }, { 0x30000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0xffffffff, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffffffff, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff8001, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xfffffffd, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0xffff8000, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0x00000002, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x00000002, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xfffffffd, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x80000000, 0x00000020, 0x00007ffe }, { 0x90000000, 0xffffff81, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xffff8003, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffffffd, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0x0000007d, 0xffffffff, 0x0000007d }, { 0x60000000, 0xffffff84, 0xffffff83, 0x00000001 }, { 0x80000000, 0xffff8000, 0x80000000, 0x00000002 }, { 0x20000000, 0xffff8080, 0xffff8001, 0x0000007f }, { 0xa0000000, 0xfffffffd, 0x33333333, 0x0000007d }, { 0x30000000, 0x7ffe0000, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0xfffe7fe0, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x20000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0xffffff82, 0xffffff83, 0x00007fff }, { 0x30000000, 0x7ffefffd, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffff7f7f, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0x00007ffd, 0xfffffffe, 0x00000000 }, { 0x80000000, 0xfffffffe, 0x80000001, 0xffffff80 }, { 0x30000000, 0xccccccc9, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0xffaaffca, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x00007ffe, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0x90000000, 0xffffffff, 0xffffff81, 0x33333333 }, { 0x30000000, 0xcd21cd21, 0xcccccccc, 0x55555555 }, { 0x70000000, 0x80550056, 0x80000001, 0x55555555 }, { 0xd0000000, 0x7ffffffd, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x7fff0000, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffffff, 0xffffff82, 0x00000002 }, { 0xb0000000, 0x00000001, 0x00000002, 0xffff8002 }, { 0x90000000, 0x0000007d, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x33333333, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0xcccccccc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0x00007fff, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0x0032ffb3, 0xffffff80, 0x33333333 }, { 0xc0000000, 0x55555555, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x00007ffd, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x0000807e, 0x00007fff, 0x0000007f }, { 0x30000000, 0xcccbcccb, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x00000002, 0x00000001, 0x80000001 }, { 0x50000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xffff8001, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0xfffeff02, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x7ffffffd, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0x00000000, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0x7ffffffd, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0x90000000, 0x80000000, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff83, 0xffffff82, 0x00000000 }, { 0x90000000, 0xfffffffe, 0x33333333, 0x80000000 }, { 0x50000000, 0xfffe7f84, 0xffff8002, 0xffffff82 }, { 0x20000000, 0x00007fff, 0x00007fff, 0x00000000 }, { 0x50000000, 0x7ffffffc, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0x00000002, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffffff83, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0x55555555, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0xfffefffb, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0x333232b5, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xfffffffe, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0x80000000, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x0000007f, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0xffff0001, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x0000007d, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000009f, 0x00000020, 0x0000007f }, { 0x20000000, 0x00007ffd, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0x33333333, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x55555555, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0x0000007e, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x0000007f, 0x33333333, 0x0000007d }, { 0x80000000, 0x7ffffffe, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xfffeff85, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000000, 0x00000002, 0x0000007e }, { 0x30000000, 0x00000080, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0x00000020, 0x00000002 }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0x0000007f, 0xffffffff, 0xffffff82 }, { 0x60000000, 0x00338030, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xfffffffe, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0xffff007b, 0xfffffffe, 0x0000007d }, { 0x60000000, 0xfffffffd, 0xfffffffd, 0x80000000 }, { 0x20000000, 0x00328034, 0xffff8001, 0x33333333 }, { 0x80000000, 0x80000001, 0x80000001, 0xcccccccc }, { 0xb0000000, 0xffffff81, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xffffffff, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000020, 0x00000002, 0x80000001 }, { 0xd0000000, 0xcccccccc, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff0004, 0x00000002, 0xffff8002 }, { 0x70000000, 0xffff7fff, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffffffd, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00550055, 0x00000000, 0x55555555 }, { 0xc0000000, 0x80000001, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffffff83, 0xffff8002, 0x80000001 }, { 0x20000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0xa0000000, 0xcccccccc, 0x33333333, 0xffff8003 }, { 0x90000000, 0x0000007e, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffff8003, 0x0000007d, 0xffffff82 }, { 0x70000000, 0x7ffe0000, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x55555575, 0x55555555, 0x00000020 }, { 0x50000000, 0x80000002, 0x80000001, 0x80000001 }, { 0x30000000, 0xffffffff, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xfffffffe, 0x00000000, 0xffff8000 }, { 0x70000000, 0xfffeff04, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0x7ffeffdd, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0x7fff007c, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x8000fffe, 0x80000001, 0x00007ffd }, { 0x90000000, 0x55555555, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x0000007f, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0x00000001, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xfffe8002, 0xffff8002, 0xffff8000 }, { 0x20000000, 0x0000009d, 0x00000020, 0x0000007d }, { 0x30000000, 0xffffff82, 0xffffff80, 0x00000002 }, { 0x90000000, 0x7ffffffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x7ffe0002, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0xfffe7fff, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x7ffffffd, 0x00007ffe, 0x00000020 }, }; const Inputs kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r4_r1_r7[] = { { 0x70000000, 0x0000007d, 0x7ffffffe, 0x00000000 }, { 0xf0000000, 0x00007ffe, 0x00007ffe, 0xaaaaaaaa }, { 0x20000000, 0xfffffffd, 0xffff8001, 0x55555555 }, { 0x90000000, 0xffff7fff, 0x00007ffd, 0xffff8002 }, { 0xd0000000, 0xffff8002, 0xffff8003, 0x00007fff }, { 0x20000000, 0x00000000, 0xaaaaaaaa, 0x7ffffffe }, { 0x80000000, 0xcccccccd, 0xcccccccc, 0x80000001 }, { 0x80000000, 0xffcbff4c, 0xffffff80, 0xcccccccc }, { 0x80000000, 0x00000003, 0x00000002, 0x00000001 }, { 0x50000000, 0xaaaaaaab, 0xaaaaaaaa, 0x00000001 }, { 0xa0000000, 0xffff8001, 0xffff8001, 0xffff8003 }, { 0x10000000, 0x7ffefffb, 0x7ffffffe, 0xfffffffd }, { 0x20000000, 0x00000002, 0xffffffe0, 0x00007ffd }, { 0x20000000, 0xffffff82, 0x00000002, 0xfffffffd }, { 0x70000000, 0x80000001, 0xffffffe0, 0x00000020 }, { 0x40000000, 0x80000001, 0x80000000, 0x80000001 }, { 0x50000000, 0xcccbcc4c, 0xcccccccc, 0xffffff80 }, { 0x10000000, 0x00550057, 0x00000002, 0x55555555 }, { 0x90000000, 0xffa97faa, 0xffff8000, 0xaaaaaaaa }, { 0x80000000, 0x00000081, 0x0000007f, 0x00000002 }, { 0x30000000, 0x00000020, 0x0000007f, 0x00000000 }, { 0xe0000000, 0x00007ffd, 0xffff8002, 0xaaaaaaaa }, { 0x70000000, 0x00007ffe, 0xffffffff, 0x80000000 }, { 0xe0000000, 0x00000020, 0xffffff81, 0x0000007d }, { 0xf0000000, 0x00000020, 0x0000007d, 0xffff8001 }, { 0xe0000000, 0xffffff80, 0xfffffffe, 0xffffffe0 }, { 0x70000000, 0xffff8001, 0xfffffffd, 0x00000002 }, { 0xa0000000, 0xffff8001, 0x00007ffe, 0xffffff80 }, { 0xd0000000, 0xcccbccca, 0xcccccccc, 0x7ffffffe }, { 0x70000000, 0x00007ffe, 0xffff8003, 0x00007ffd }, { 0x10000000, 0x0000007a, 0x0000007d, 0x00007ffd }, { 0xa0000000, 0x00000002, 0xffff8002, 0xfffffffd }, { 0xc0000000, 0x000000fc, 0x0000007f, 0x0000007d }, { 0x10000000, 0xffffff83, 0xffffff83, 0x00000000 }, { 0xd0000000, 0xffff007b, 0x0000007e, 0xfffffffd }, { 0x80000000, 0x0000001e, 0x00000020, 0x00007ffe }, { 0x90000000, 0x00000002, 0x00000002, 0x00000000 }, { 0xf0000000, 0x33333333, 0x00007ffd, 0xaaaaaaaa }, { 0x90000000, 0xcccccd49, 0xcccccccc, 0x0000007d }, { 0xd0000000, 0xfffeff60, 0xffffff80, 0xffffffe0 }, { 0xa0000000, 0x0000007d, 0xffffffff, 0x0000007d }, { 0x60000000, 0x0000007d, 0xffffff83, 0x00000001 }, { 0x80000000, 0x80000002, 0x80000000, 0x00000002 }, { 0x20000000, 0x33333333, 0xffff8001, 0x0000007f }, { 0xa0000000, 0xfffffffd, 0x33333333, 0x0000007d }, { 0x30000000, 0x0000007f, 0x7ffffffd, 0xffff8003 }, { 0x30000000, 0x80000000, 0xffff8000, 0xffffffe0 }, { 0x40000000, 0xccffccff, 0xcccccccc, 0x33333333 }, { 0xf0000000, 0xfffffffe, 0x0000007e, 0x0000007d }, { 0x30000000, 0xffffff82, 0x80000001, 0xffffff80 }, { 0x20000000, 0xffff8002, 0x7fffffff, 0xffff8001 }, { 0x50000000, 0xffffff82, 0xffffff83, 0x00007fff }, { 0x30000000, 0xffffffe0, 0x7ffffffe, 0x7fffffff }, { 0x70000000, 0xffffffe0, 0x00007ffd, 0xffffff82 }, { 0x40000000, 0xffff8021, 0xffff8001, 0x00000020 }, { 0x80000000, 0xfffffffe, 0xfffffffe, 0x00000000 }, { 0x80000000, 0x7fffff81, 0x80000001, 0xffffff80 }, { 0x30000000, 0x00000002, 0xcccccccc, 0x00007ffd }, { 0x60000000, 0x80000001, 0x00000020, 0xaaaaaaaa }, { 0xd0000000, 0x0000007d, 0x00000000, 0x0000007d }, { 0x40000000, 0xfffe8006, 0xffff8003, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0xffffff81, 0xffffff83 }, { 0x90000000, 0x0032ffb4, 0xffffff81, 0x33333333 }, { 0x30000000, 0x00007ffd, 0xcccccccc, 0x55555555 }, { 0x70000000, 0xffffffff, 0x80000001, 0x55555555 }, { 0xd0000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xfffffffd, 0x7fffffff }, { 0x70000000, 0x0000007f, 0x80000001, 0xffffffff }, { 0xf0000000, 0xffffff83, 0x00007ffd, 0x55555555 }, { 0x90000000, 0xffffff84, 0xffffff82, 0x00000002 }, { 0xb0000000, 0x00000001, 0x00000002, 0xffff8002 }, { 0x90000000, 0x7fff0000, 0x80000000, 0xffff8000 }, { 0x40000000, 0xffff0000, 0x0000007f, 0xffffff81 }, { 0x30000000, 0x00000000, 0x33333333, 0x00000000 }, { 0x40000000, 0xffcc0049, 0x0000007d, 0xcccccccc }, { 0x40000000, 0x0000007f, 0x0000007f, 0x00000000 }, { 0x40000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xd0000000, 0x7fccffcc, 0x80000000, 0xcccccccc }, { 0x10000000, 0xfffe7fff, 0xffff8000, 0x7fffffff }, { 0x80000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x80000000, 0xffff7f7e, 0x00007ffe, 0xffffff80 }, { 0x40000000, 0xfffeff03, 0xffffff83, 0xffffff80 }, { 0x10000000, 0x7fff007c, 0x7fffffff, 0x0000007d }, { 0x50000000, 0x0032ffb3, 0xffffff80, 0x33333333 }, { 0xc0000000, 0xffff007b, 0x0000007e, 0x7ffffffd }, { 0x10000000, 0xcccccd4a, 0xcccccccc, 0x0000007e }, { 0x90000000, 0x7ffeff7d, 0x7ffffffd, 0xffffff80 }, { 0xe0000000, 0x00007ffe, 0xfffffffd, 0x00000002 }, { 0xf0000000, 0x7ffffffd, 0x7fffffff, 0xffffff81 }, { 0xe0000000, 0x7ffffffd, 0x80000000, 0x7ffffffe }, { 0x20000000, 0x7ffffffd, 0x00007fff, 0x0000007f }, { 0x30000000, 0xffff8001, 0xcccccccc, 0xffffffff }, { 0x40000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x70000000, 0x80000000, 0x00000001, 0x80000001 }, { 0x50000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0xe0000000, 0xffffffe0, 0x55555555, 0x00000000 }, { 0xc0000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0x40000000, 0xffffffe2, 0x00000002, 0xffffffe0 }, { 0x60000000, 0x00000001, 0xffffff81, 0xffffff81 }, { 0x40000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0x20000000, 0x00007ffe, 0x7ffffffd, 0x80000000 }, { 0xd0000000, 0xaaaaab27, 0xaaaaaaaa, 0x0000007d }, { 0xd0000000, 0xffff8000, 0xffff8001, 0x00007fff }, { 0xe0000000, 0x55555555, 0x7fffffff, 0x80000001 }, { 0x60000000, 0xfffffffe, 0x0000007e, 0xcccccccc }, { 0x90000000, 0xffff007c, 0xfffffffe, 0x0000007e }, { 0x90000000, 0xffffff82, 0xffffff82, 0x00000000 }, { 0x90000000, 0x33333333, 0x33333333, 0x80000000 }, { 0x50000000, 0xfffe7f84, 0xffff8002, 0xffffff82 }, { 0x20000000, 0xcccccccc, 0x00007fff, 0x00000000 }, { 0x50000000, 0x7ffffffc, 0x7ffffffe, 0x00007ffe }, { 0xf0000000, 0x00007fff, 0xffff8002, 0xffff8001 }, { 0xd0000000, 0xfffeff7f, 0xffffff81, 0xfffffffe }, { 0xb0000000, 0xffffff83, 0xffff8001, 0x00007ffe }, { 0x40000000, 0xffff7ffe, 0x00007ffe, 0xffff8000 }, { 0xb0000000, 0x55555555, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0xfffefffb, 0xfffffffd, 0x7ffffffe }, { 0x70000000, 0xffffff83, 0x33333333, 0xffffff82 }, { 0x40000000, 0xffff0023, 0x00000020, 0xffff8003 }, { 0xa0000000, 0xfffffffe, 0xaaaaaaaa, 0x80000001 }, { 0xc0000000, 0xaaa9aaa9, 0xaaaaaaaa, 0xffffffff }, { 0xe0000000, 0xffffffe0, 0x00007ffe, 0x0000007e }, { 0x80000000, 0x80330033, 0x80000000, 0x33333333 }, { 0xc0000000, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000000 }, { 0x50000000, 0xffff0001, 0xffffff83, 0x0000007e }, { 0xd0000000, 0x00000002, 0x00000002, 0x80000000 }, { 0x40000000, 0xfffeffde, 0xfffffffe, 0xffffffe0 }, { 0x30000000, 0x0000007e, 0x00000020, 0x0000007f }, { 0x20000000, 0xffffffe0, 0x00007ffd, 0x80000000 }, { 0xf0000000, 0x00007ffd, 0xffff8001, 0xffff8001 }, { 0xc0000000, 0xffff005d, 0x0000007d, 0xffffffe0 }, { 0xb0000000, 0x55555555, 0x7ffffffe, 0x00000000 }, { 0xc0000000, 0xfffefffe, 0xffffffff, 0xffffffff }, { 0xe0000000, 0x00007ffd, 0xfffffffd, 0xffff8002 }, { 0xf0000000, 0x33333333, 0xffff8003, 0xffff8002 }, { 0xb0000000, 0x0000007f, 0x33333333, 0x0000007d }, { 0x80000000, 0xfffeff61, 0xffffff81, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0xffffff83, 0xffff8002 }, { 0x80000000, 0x00000080, 0x00000002, 0x0000007e }, { 0x30000000, 0x0000007e, 0x0000007f, 0x80000001 }, { 0xe0000000, 0x7ffffffd, 0xffffff81, 0xffff8003 }, { 0xb0000000, 0xffffff83, 0x00000020, 0x00000002 }, { 0xa0000000, 0xffffff82, 0x7fffffff, 0xffff8003 }, { 0xd0000000, 0xfffeff81, 0xffffffff, 0xffffff82 }, { 0x60000000, 0xffffff80, 0x00007ffd, 0x33333333 }, { 0xd0000000, 0xcccbccce, 0xcccccccc, 0xffff8002 }, { 0x50000000, 0xffff007b, 0xfffffffe, 0x0000007d }, { 0x60000000, 0x0000007f, 0xfffffffd, 0x80000000 }, { 0x20000000, 0xfffffffe, 0xffff8001, 0x33333333 }, { 0x80000000, 0x7fccffcd, 0x80000001, 0xcccccccc }, { 0xb0000000, 0xffffff81, 0x80000000, 0x00007ffe }, { 0xa0000000, 0xffffffff, 0xfffffffd, 0xffffff80 }, { 0xa0000000, 0x00000020, 0x00000002, 0x80000001 }, { 0xd0000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0xe0000000, 0x80000000, 0xaaaaaaaa, 0xffffff83 }, { 0x60000000, 0xffff8000, 0x00000002, 0xffff8002 }, { 0x70000000, 0x00000001, 0xffff8001, 0x00007ffe }, { 0x90000000, 0xfffe7f85, 0xffff8003, 0xffffff82 }, { 0xf0000000, 0x80000000, 0x7ffffffd, 0xffffff80 }, { 0x60000000, 0x33333333, 0x0000007e, 0xfffffffd }, { 0xe0000000, 0x0000007d, 0xffffffe0, 0x00000001 }, { 0xf0000000, 0xcccccccc, 0xaaaaaaaa, 0x7fffffff }, { 0x50000000, 0x00550055, 0x00000000, 0x55555555 }, { 0xc0000000, 0x7ffefffc, 0x7ffffffe, 0x7ffffffe }, { 0x40000000, 0xffcc004a, 0x0000007e, 0xcccccccc }, { 0xe0000000, 0x0000007e, 0xffffffe0, 0x33333333 }, { 0xb0000000, 0xffffff83, 0xffff8002, 0x80000001 }, { 0x20000000, 0x7fffffff, 0xffffff81, 0x33333333 }, { 0xa0000000, 0xcccccccc, 0x33333333, 0xffff8003 }, { 0x90000000, 0xffffff7f, 0xffffff80, 0x00007fff }, { 0xa0000000, 0xffff8003, 0x0000007d, 0xffffff82 }, { 0x70000000, 0xaaaaaaaa, 0x7fffffff, 0xffff8001 }, { 0x70000000, 0x00007ffe, 0x55555555, 0x00000020 }, { 0x50000000, 0x80000002, 0x80000001, 0x80000001 }, { 0x30000000, 0x00000001, 0xffffff80, 0x0000007f }, { 0xf0000000, 0xfffffffd, 0xffffff81, 0x00000020 }, { 0xf0000000, 0x00000020, 0x80000000, 0xffffff81 }, { 0xf0000000, 0xffffff81, 0x7fffffff, 0xffff8002 }, { 0xd0000000, 0xffff0000, 0x00000000, 0xffff8000 }, { 0x70000000, 0xffff8000, 0xffffff83, 0xffffff81 }, { 0xf0000000, 0x00007ffd, 0xaaaaaaaa, 0x00007ffe }, { 0xe0000000, 0x0000007e, 0xcccccccc, 0x80000000 }, { 0x50000000, 0x7ffeffdd, 0x7ffffffd, 0xffffffe0 }, { 0x60000000, 0xaaaaaaaa, 0x7ffffffe, 0x0000007e }, { 0x10000000, 0x7fcbffcb, 0x7fffffff, 0xcccccccc }, { 0xe0000000, 0xfffffffe, 0xffff8001, 0x80000001 }, { 0x10000000, 0xfffe8003, 0xffff8000, 0xffff8003 }, { 0x30000000, 0x80000001, 0x80000001, 0x00007ffd }, { 0x90000000, 0xffff0000, 0x0000007e, 0xffffff82 }, { 0xa0000000, 0x0000007f, 0x7ffffffe, 0x00000001 }, { 0x90000000, 0xfffeff05, 0xffffff83, 0xffffff82 }, { 0x20000000, 0xffffff81, 0xffff8002, 0xffff8000 }, { 0x20000000, 0xfffffffe, 0x00000020, 0x0000007d }, { 0x30000000, 0x00007ffd, 0xffffff80, 0x00000002 }, { 0x90000000, 0x00007ffe, 0x00007ffd, 0x00000001 }, { 0x20000000, 0x80000001, 0x7fffffff, 0xffff8003 }, { 0x50000000, 0xfffe7fff, 0xffff8000, 0xffffffff }, { 0x40000000, 0xffff8080, 0xffff8002, 0x0000007e }, { 0xf0000000, 0xffffffff, 0x33333333, 0x0000007f }, { 0xc0000000, 0x0000801e, 0x00007ffe, 0x00000020 }, }; const TestResult kReferenceSxtab16[] = { { ARRAY_SIZE(kOutputs_Sxtab16_Condition_eq_r0_r0_r0), kOutputs_Sxtab16_Condition_eq_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_ne_r0_r0_r0), kOutputs_Sxtab16_Condition_ne_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_cs_r0_r0_r0), kOutputs_Sxtab16_Condition_cs_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_cc_r0_r0_r0), kOutputs_Sxtab16_Condition_cc_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_mi_r0_r0_r0), kOutputs_Sxtab16_Condition_mi_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_pl_r0_r0_r0), kOutputs_Sxtab16_Condition_pl_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_vs_r0_r0_r0), kOutputs_Sxtab16_Condition_vs_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_vc_r0_r0_r0), kOutputs_Sxtab16_Condition_vc_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_hi_r0_r0_r0), kOutputs_Sxtab16_Condition_hi_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_ls_r0_r0_r0), kOutputs_Sxtab16_Condition_ls_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_ge_r0_r0_r0), kOutputs_Sxtab16_Condition_ge_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_lt_r0_r0_r0), kOutputs_Sxtab16_Condition_lt_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_gt_r0_r0_r0), kOutputs_Sxtab16_Condition_gt_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_le_r0_r0_r0), kOutputs_Sxtab16_Condition_le_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_Condition_al_r0_r0_r0), kOutputs_Sxtab16_Condition_al_r0_r0_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r11), kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r11, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_le_r7_r7_r11), kOutputs_Sxtab16_RdIsRn_le_r7_r7_r11, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_vc_r14_r14_r7), kOutputs_Sxtab16_RdIsRn_vc_r14_r14_r7, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_vs_r3_r3_r14), kOutputs_Sxtab16_RdIsRn_vs_r3_r3_r14, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_pl_r10_r10_r7), kOutputs_Sxtab16_RdIsRn_pl_r10_r10_r7, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_hi_r8_r8_r7), kOutputs_Sxtab16_RdIsRn_hi_r8_r8_r7, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_le_r8_r8_r6), kOutputs_Sxtab16_RdIsRn_le_r8_r8_r6, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_ne_r5_r5_r1), kOutputs_Sxtab16_RdIsRn_ne_r5_r5_r1, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_gt_r10_r10_r3), kOutputs_Sxtab16_RdIsRn_gt_r10_r10_r3, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r14), kOutputs_Sxtab16_RdIsRn_ls_r3_r3_r14, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_hi_r0_r9_r0), kOutputs_Sxtab16_RdIsRm_hi_r0_r9_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_eq_r5_r12_r5), kOutputs_Sxtab16_RdIsRm_eq_r5_r12_r5, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_gt_r12_r3_r12), kOutputs_Sxtab16_RdIsRm_gt_r12_r3_r12, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_lt_r8_r11_r8), kOutputs_Sxtab16_RdIsRm_lt_r8_r11_r8, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_cs_r7_r6_r7), kOutputs_Sxtab16_RdIsRm_cs_r7_r6_r7, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_lt_r9_r0_r9), kOutputs_Sxtab16_RdIsRm_lt_r9_r0_r9, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_cc_r6_r5_r6), kOutputs_Sxtab16_RdIsRm_cc_r6_r5_r6, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_pl_r7_r4_r7), kOutputs_Sxtab16_RdIsRm_pl_r7_r4_r7, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_ls_r0_r10_r0), kOutputs_Sxtab16_RdIsRm_ls_r0_r10_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsRm_hi_r9_r14_r9), kOutputs_Sxtab16_RdIsRm_hi_r9_r14_r9, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_mi_r8_r5_r10), kOutputs_Sxtab16_RdIsNotRnIsNotRm_mi_r8_r5_r10, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_ge_r2_r5_r4), kOutputs_Sxtab16_RdIsNotRnIsNotRm_ge_r2_r5_r4, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r2_r7_r1), kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r2_r7_r1, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r5_r9_r0), kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r5_r9_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_eq_r10_r6_r5), kOutputs_Sxtab16_RdIsNotRnIsNotRm_eq_r10_r6_r5, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r0_r4_r6), kOutputs_Sxtab16_RdIsNotRnIsNotRm_ne_r0_r4_r6, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_le_r7_r6_r0), kOutputs_Sxtab16_RdIsNotRnIsNotRm_le_r7_r6_r0, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_hi_r12_r11_r3), kOutputs_Sxtab16_RdIsNotRnIsNotRm_hi_r12_r11_r3, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_pl_r3_r7_r12), kOutputs_Sxtab16_RdIsNotRnIsNotRm_pl_r3_r7_r12, }, { ARRAY_SIZE(kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r4_r1_r7), kOutputs_Sxtab16_RdIsNotRnIsNotRm_cc_r4_r1_r7, }, }; #endif // VIXL_SIMULATOR_COND_RD_RN_OPERAND_RM_SXTAB16_T32_H_
162,691
313
/* * Copyright 2018 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.netflix.titus.ext.cassandra.store; import javax.inject.Named; import javax.inject.Singleton; import com.datastax.driver.core.Session; import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.netflix.archaius.ConfigProxyFactory; import com.netflix.titus.api.appscale.store.AppScalePolicyStore; import com.netflix.titus.api.jobmanager.store.JobStore; import com.netflix.titus.api.loadbalancer.store.LoadBalancerStore; import com.netflix.titus.api.store.v2.ApplicationSlaStore; import com.netflix.titus.api.store.v2.ApplicationSlaStoreCache; import com.netflix.titus.api.store.v2.ApplicationSlaStoreSanitizer; import com.netflix.titus.common.model.sanitizer.EntitySanitizer; import static com.netflix.titus.api.jobmanager.model.job.sanitizer.JobSanitizerBuilder.JOB_PERMISSIVE_SANITIZER; public class CassandraStoreModule extends AbstractModule { @Override protected void configure() { bind(AppScalePolicyStore.class).to(CassAppScalePolicyStore.class); bind(JobStore.class).to(CassandraJobStore.class); bind(LoadBalancerStore.class).to(CassandraLoadBalancerStore.class); } @Provides @Singleton public CassandraStoreConfiguration getCassandraStoreConfiguration(ConfigProxyFactory factory) { return factory.newProxy(CassandraStoreConfiguration.class); } @Singleton @Provides public ApplicationSlaStore getApplicationSlaStore(CassandraStoreConfiguration configuration, Session session, @Named(JOB_PERMISSIVE_SANITIZER) EntitySanitizer coreModelSanitizers) { return new ApplicationSlaStoreCache( new ApplicationSlaStoreSanitizer(new CassandraApplicationSlaStore(configuration, session), coreModelSanitizers) ); } }
863
438
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from bitsandbytes.optim.optimizer import Optimizer1State torch.optim.Adagrad class Adagrad(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=32, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') super(Adagrad, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, optim_bits, args, min_8bit_size, percentile_clipping, block_wise) class Adagrad8bit(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=8, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') assert block_wise super(Adagrad8bit, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, 8, args, min_8bit_size, percentile_clipping, block_wise) class Adagrad32bit(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=32, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') super(Adagrad32bit, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, 32, args, min_8bit_size, percentile_clipping, block_wise)
1,383
15,179
from jina import Executor, requests from jina.optimizers.parameters import IntegerParameter class DummyCrafter(Executor): DEFAULT_OPTIMIZATION_PARAMETER = [ IntegerParameter( executor_name='DummyCrafter', parameter_name='param1', low=0, high=1, step_size=1, ), IntegerParameter( executor_name='DummyCrafter', parameter_name='param2', low=0, high=1, step_size=1, ), IntegerParameter( executor_name='DummyCrafter', parameter_name='param3', low=0, high=2, step_size=1, ), ] GOOD_PARAM_1 = 0 GOOD_PARAM_2 = 1 GOOD_PARAM_3 = 1 def __init__(self, param1: int, param2: int, param3: int, *args, **kwargs): super().__init__(*args, **kwargs) self.param1 = param1 self.param2 = param2 self.param3 = param3 @property def good_params(self): return ( self.param1 == DummyCrafter.GOOD_PARAM_1 and self.param2 == DummyCrafter.GOOD_PARAM_2 and self.param3 == DummyCrafter.GOOD_PARAM_3 ) @requests def craft(self, docs, *args, **kwargs): for doc in docs: if not self.good_params: doc.text = ''
729
4,515
<reponame>xielutian/listen # coding=utf8 import logging from handlers.base import BaseHandler from replay import get_provider_list logger = logging.getLogger('listenone.' + __name__) class SearchHandler(BaseHandler): def get(self): source = self.get_argument('source', '0') keywords = self.get_argument('keywords', '') result = dict(result=[]) if keywords == '': self.write(result) provider_list = get_provider_list() index = int(source) if index >= 0 and index < len(provider_list): provider = provider_list[index] track_list = provider.search_track(keywords) else: track_list = [] result = dict(result=track_list) self.write(result)
327
467
package com.yoyiyi.soleil.mvp.presenter.search; import com.yoyiyi.soleil.base.BaseSubscriber; import com.yoyiyi.soleil.base.RxPresenter; import com.yoyiyi.soleil.bean.search.Up; import com.yoyiyi.soleil.mvp.contract.search.UpContract; import com.yoyiyi.soleil.network.helper.RetrofitHelper; import com.yoyiyi.soleil.rx.RxUtils; import javax.inject.Inject; /** * @author zzq 作者 E-mail: <EMAIL> * @date 创建时间:2017/5/17 18:00 * 描述:综合界面主页presenter */ public class UpPresenter extends RxPresenter<UpContract.View> implements UpContract.Presenter<UpContract.View> { private RetrofitHelper mRetrofitHelper; @Inject public UpPresenter(RetrofitHelper retrofitHelper) { mRetrofitHelper = retrofitHelper; } @Override public void getSearchUpData() { BaseSubscriber<Up> subscriber = mRetrofitHelper.getUp() .compose(RxUtils.rxSchedulerHelper()) .doOnSubscribe(subscription -> mView.showLoading()) // .delay(5, TimeUnit.SECONDS) .subscribeWith(new BaseSubscriber<Up>(mView) { @Override public void onSuccess(Up up) { mView.showSearchUp(up); } }); addSubscribe(subscriber); } }
632
370
<gh_stars>100-1000 """ P300 Decoding =============================== This example runs a set of machine learning algorithms on the P300 cats/dogs dataset, and compares them in terms of classification performance. The data used is exactly the same as in the P300 `load_and_visualize` example. """ ################################################################################################### # Setup # --------------------- # Some standard pythonic imports import warnings warnings.filterwarnings('ignore') import os,numpy as np,pandas as pd from collections import OrderedDict import seaborn as sns from matplotlib import pyplot as plt # MNE functions from mne import Epochs,find_events from mne.decoding import Vectorizer # EEG-Notebooks functions from eegnb.analysis.utils import load_data from eegnb.datasets import fetch_dataset # Scikit-learn and Pyriemann ML functionalities from sklearn.pipeline import make_pipeline from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import StandardScaler from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.model_selection import cross_val_score, StratifiedShuffleSplit from pyriemann.estimation import ERPCovariances, XdawnCovariances, Xdawn from pyriemann.tangentspace import TangentSpace from pyriemann.classification import MDM ################################################################################################### # Load Data # --------------------- # # ( See the P300 `load_and_visualize` example for further description of this) # eegnb_data_path = os.path.join(os.path.expanduser('~/'),'.eegnb', 'data') p300_data_path = os.path.join(eegnb_data_path, 'visual-P300', 'eegnb_examples') # If dataset hasn't been downloaded yet, download it if not os.path.isdir(p300_data_path): fetch_dataset(data_dir=eegnb_data_path, experiment='visual-P300', site='eegnb_examples') subject = 1 session = 1 raw = load_data(subject,session, experiment='visual-P300', site='eegnb_examples', device_name='muse2016', data_dir = eegnb_data_path) ################################################################################################### ################################################################################################### # Filteriing # ---------------------------- raw.filter(1,30, method='iir') ################################################################################################### # Epoching # ---------------------------- # Create an array containing the timestamps and type of each stimulus (i.e. face or house) events = find_events(raw) event_id = {'Non-Target': 1, 'Target': 2} epochs = Epochs(raw, events=events, event_id=event_id, tmin=-0.1, tmax=0.8, baseline=None, reject={'eeg': 100e-6}, preload=True, verbose=False, picks=[0,1,2,3]) print('sample drop %: ', (1 - len(epochs.events)/len(events)) * 100) epochs ################################################################################################### # Classfication # ---------------------------- clfs = OrderedDict() clfs['Vect + LR'] = make_pipeline(Vectorizer(), StandardScaler(), LogisticRegression()) clfs['Vect + RegLDA'] = make_pipeline(Vectorizer(), LDA(shrinkage='auto', solver='eigen')) clfs['Xdawn + RegLDA'] = make_pipeline(Xdawn(2, classes=[1]), Vectorizer(), LDA(shrinkage='auto', solver='eigen')) clfs['XdawnCov + TS'] = make_pipeline(XdawnCovariances(estimator='oas'), TangentSpace(), LogisticRegression()) clfs['XdawnCov + MDM'] = make_pipeline(XdawnCovariances(estimator='oas'), MDM()) clfs['ERPCov + TS'] = make_pipeline(ERPCovariances(), TangentSpace(), LogisticRegression()) clfs['ERPCov + MDM'] = make_pipeline(ERPCovariances(), MDM()) # format data epochs.pick_types(eeg=True) X = epochs.get_data() * 1e6 times = epochs.times y = epochs.events[:, -1] # define cross validation cv = StratifiedShuffleSplit(n_splits=10, test_size=0.25, random_state=42) # run cross validation for each pipeline auc = [] methods = [] for m in clfs: res = cross_val_score(clfs[m], X, y==2, scoring='roc_auc', cv=cv, n_jobs=-1) auc.extend(res) methods.extend([m]*len(res)) results = pd.DataFrame(data=auc, columns=['AUC']) results['Method'] = methods plt.figure(figsize=[8,4]) sns.barplot(data=results, x='AUC', y='Method') plt.xlim(0.2, 0.85) sns.despine()
1,586
405
<filename>convlab/modules/word_policy/multiwoz/larl/latent_dialog/corpora.py<gh_stars>100-1000 from __future__ import unicode_literals import numpy as np from collections import Counter from convlab.modules.word_policy.multiwoz.larl.latent_dialog.utils import Pack import json from nltk.tokenize import WordPunctTokenizer import logging PAD = '<pad>' UNK = '<unk>' USR = 'YOU:' SYS = 'THEM:' BOD = '<d>' EOD = '</d>' BOS = '<s>' EOS = '<eos>' SEL = '<selection>' SPECIAL_TOKENS_DEAL = [PAD, UNK, USR, SYS, BOD, EOS] SPECIAL_TOKENS = [PAD, UNK, USR, SYS, BOS, BOD, EOS, EOD] STOP_TOKENS = [EOS, SEL] DECODING_MASKED_TOKENS = [PAD, UNK, USR, SYS, BOD] class DealCorpus(object): def __init__(self, config): self.config = config self.train_corpus = self._read_file(self.config.train_path) self.val_corpus = self._read_file(self.config.val_path) self.test_corpus = self._read_file(self.config.test_path) self._extract_vocab() self._extract_goal_vocab() self._extract_outcome_vocab() print('Loading corpus finished.') def _read_file(self, path): with open(path, 'r') as f: data = f.readlines() return self._process_dialogue(data) def _process_dialogue(self, data): def transform(token_list): usr, sys = [], [] ptr = 0 while ptr < len(token_list): turn_ptr = ptr turn_list = [] while True: cur_token = token_list[turn_ptr] turn_list.append(cur_token) turn_ptr += 1 if cur_token == EOS: ptr = turn_ptr break all_sent_lens.append(len(turn_list)) if turn_list[0] == USR: usr.append(Pack(utt=turn_list, speaker=USR)) elif turn_list[0] == SYS: sys.append(Pack(utt=turn_list, speaker=SYS)) else: raise ValueError('Invalid speaker') all_dlg_lens.append(len(usr) + len(sys)) return usr, sys new_dlg = [] all_sent_lens = [] all_dlg_lens = [] for raw_dlg in data: raw_words = raw_dlg.split() # process dialogue text cur_dlg = [] words = raw_words[raw_words.index('<dialogue>') + 1: raw_words.index('</dialogue>')] words += [EOS] usr_first = True if words[0] == SYS: words = [USR, BOD, EOS] + words usr_first = True elif words[0] == USR: words = [SYS, BOD, EOS] + words usr_first = False else: print('FATAL ERROR!!! ({})'.format(words)) exit(-1) usr_utts, sys_utts = transform(words) for usr_turn, sys_turn in zip(usr_utts, sys_utts): if usr_first: cur_dlg.append(usr_turn) cur_dlg.append(sys_turn) else: cur_dlg.append(sys_turn) cur_dlg.append(usr_turn) if len(usr_utts) - len(sys_utts) == 1: cur_dlg.append(usr_utts[-1]) elif len(sys_utts) - len(usr_utts) == 1: cur_dlg.append(sys_utts[-1]) # process goal (6 digits) # FIXME FATAL ERROR HERE !!! cur_goal = raw_words[raw_words.index('<partner_input>') + 1: raw_words.index('</partner_input>')] # cur_goal = raw_words[raw_words.index('<input>')+1: raw_words.index('</input>')] if len(cur_goal) != 6: print('FATAL ERROR!!! ({})'.format(cur_goal)) exit(-1) # process outcome (6 tokens) cur_out = raw_words[raw_words.index('<output>') + 1: raw_words.index('</output>')] if len(cur_out) != 6: print('FATAL ERROR!!! ({})'.format(cur_out)) exit(-1) new_dlg.append(Pack(dlg=cur_dlg, goal=cur_goal, out=cur_out)) print('Max utt len = %d, mean utt len = %.2f' % ( np.max(all_sent_lens), float(np.mean(all_sent_lens)))) print('Max dlg len = %d, mean dlg len = %.2f' % ( np.max(all_dlg_lens), float(np.mean(all_dlg_lens)))) return new_dlg def _extract_vocab(self): all_words = [] for dlg in self.train_corpus: for turn in dlg.dlg: all_words.extend(turn.utt) vocab_count = Counter(all_words).most_common() raw_vocab_size = len(vocab_count) discard_wc = np.sum([c for t, c in vocab_count]) print('vocab size of train set = %d,\n' % (raw_vocab_size,) + \ 'cut off at word %s with frequency = %d,\n' % (vocab_count[-1][0], vocab_count[-1][1]) + \ 'OOV rate = %.2f' % (1 - float(discard_wc) / len(all_words),)) self.vocab = SPECIAL_TOKENS_DEAL + [t for t, cnt in vocab_count if t not in SPECIAL_TOKENS_DEAL] self.vocab_dict = {t: idx for idx, t in enumerate(self.vocab)} self.unk_id = self.vocab_dict[UNK] global DECODING_MASKED_TOKENS from string import ascii_letters, digits letter_set = set(list(ascii_letters + digits)) vocab_list = [t for t, cnt in vocab_count] masked_words = [] for word in vocab_list: tmp_set = set(list(word)) if len(letter_set & tmp_set) == 0: masked_words.append(word) # DECODING_MASKED_TOKENS += masked_words print('Take care of {} special words (masked).'.format(len(masked_words))) def _extract_goal_vocab(self): all_goal = [] for dlg in self.train_corpus: all_goal.extend(dlg.goal) vocab_count = Counter(all_goal).most_common() raw_vocab_size = len(vocab_count) discard_wc = np.sum([c for t, c in vocab_count]) print('goal vocab size of train set = %d, \n' % (raw_vocab_size,) + \ 'cut off at word %s with frequency = %d, \n' % (vocab_count[-1][0], vocab_count[-1][1]) + \ 'OOV rate = %.2f' % (1 - float(discard_wc) / len(all_goal),)) self.goal_vocab = [UNK] + [g for g, cnt in vocab_count] self.goal_vocab_dict = {t: idx for idx, t in enumerate(self.goal_vocab)} self.goal_unk_id = self.goal_vocab_dict[UNK] def _extract_outcome_vocab(self): all_outcome = [] for dlg in self.train_corpus: all_outcome.extend(dlg.out) vocab_count = Counter(all_outcome).most_common() raw_vocab_size = len(vocab_count) discard_wc = np.sum([c for t, c in vocab_count]) print('outcome vocab size of train set = %d, \n' % (raw_vocab_size,) + \ 'cut off at word %s with frequency = %d, \n' % (vocab_count[-1][0], vocab_count[-1][1]) + \ 'OOV rate = %.2f' % (1 - float(discard_wc) / len(all_outcome),)) self.outcome_vocab = [UNK] + [o for o, cnt in vocab_count] self.outcome_vocab_dict = {t: idx for idx, t in enumerate(self.outcome_vocab)} self.outcome_unk_id = self.outcome_vocab_dict[UNK] def get_corpus(self): id_train = self._to_id_corpus('Train', self.train_corpus) id_val = self._to_id_corpus('Valid', self.val_corpus) id_test = self._to_id_corpus('Test', self.test_corpus) return id_train, id_val, id_test def _to_id_corpus(self, name, data): results = [] for dlg in data: if len(dlg.dlg) < 1: continue id_dlg = [] for turn in dlg.dlg: id_turn = Pack(utt=self._sent2id(turn.utt), speaker=turn.speaker) id_dlg.append(id_turn) id_goal = self._goal2id(dlg.goal) id_out = self._outcome2id(dlg.out) results.append(Pack(dlg=id_dlg, goal=id_goal, out=id_out)) return results def _sent2id(self, sent): return [self.vocab_dict.get(t, self.unk_id) for t in sent] def _goal2id(self, goal): return [self.goal_vocab_dict.get(g, self.goal_unk_id) for g in goal] def _outcome2id(self, outcome): return [self.outcome_vocab_dict.get(o, self.outcome_unk_id) for o in outcome] def sent2id(self, sent): return self._sent2id(sent) def goal2id(self, goal): return self._goal2id(goal) def outcome2id(self, outcome): return self._outcome2id(outcome) def id2sent(self, id_list): return [self.vocab[i] for i in id_list] def id2goal(self, id_list): return [self.goal_vocab[i] for i in id_list] def id2outcome(self, id_list): return [self.outcome_vocab[i] for i in id_list] class NormMultiWozCorpus(object): logger = logging.getLogger() def __init__(self, config): self.bs_size = 94 self.db_size = 30 self.bs_types =['b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'b', 'b', 'b', 'b', 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'b', 'b', 'c', 'c', 'c', 'b', 'b', 'b', 'b', 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'b', 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'b', 'b', 'b', 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'b', 'b', 'b'] self.domains = ['hotel', 'restaurant', 'train', 'attraction', 'hospital', 'police', 'taxi'] self.info_types = ['book', 'fail_book', 'fail_info', 'info', 'reqt'] self.config = config self.tokenize = lambda x: x.split() self.train_corpus, self.val_corpus, self.test_corpus = self._read_file(self.config) self._extract_vocab() self._extract_goal_vocab() self.logger.info('Loading corpus finished.') def _read_file(self, config): train_data = json.load(open(config.train_path)) valid_data = json.load(open(config.valid_path)) test_data = json.load(open(config.test_path)) train_data = self._process_dialogue(train_data) valid_data = self._process_dialogue(valid_data) test_data = self._process_dialogue(test_data) return train_data, valid_data, test_data def _process_dialogue(self, data): new_dlgs = [] all_sent_lens = [] all_dlg_lens = [] for key, raw_dlg in data.items(): norm_dlg = [Pack(speaker=USR, utt=[BOS, BOD, EOS], bs=[0.0]*self.bs_size, db=[0.0]*self.db_size)] for t_id in range(len(raw_dlg['db'])): usr_utt = [BOS] + self.tokenize(raw_dlg['usr'][t_id]) + [EOS] sys_utt = [BOS] + self.tokenize(raw_dlg['sys'][t_id]) + [EOS] norm_dlg.append(Pack(speaker=USR, utt=usr_utt, db=raw_dlg['db'][t_id], bs=raw_dlg['bs'][t_id])) norm_dlg.append(Pack(speaker=SYS, utt=sys_utt, db=raw_dlg['db'][t_id], bs=raw_dlg['bs'][t_id])) all_sent_lens.extend([len(usr_utt), len(sys_utt)]) # To stop dialog norm_dlg.append(Pack(speaker=USR, utt=[BOS, EOD, EOS], bs=[0.0]*self.bs_size, db=[0.0]*self.db_size)) # if self.config.to_learn == 'usr': # norm_dlg.append(Pack(speaker=USR, utt=[BOS, EOD, EOS], bs=[0.0]*self.bs_size, db=[0.0]*self.db_size)) all_dlg_lens.append(len(raw_dlg['db'])) processed_goal = self._process_goal(raw_dlg['goal']) new_dlgs.append(Pack(dlg=norm_dlg, goal=processed_goal, key=key)) self.logger.info('Max utt len = %d, mean utt len = %.2f' % ( np.max(all_sent_lens), float(np.mean(all_sent_lens)))) self.logger.info('Max dlg len = %d, mean dlg len = %.2f' % ( np.max(all_dlg_lens), float(np.mean(all_dlg_lens)))) return new_dlgs def _extract_vocab(self): all_words = [] for dlg in self.train_corpus: for turn in dlg.dlg: all_words.extend(turn.utt) vocab_count = Counter(all_words).most_common() raw_vocab_size = len(vocab_count) keep_vocab_size = min(self.config.max_vocab_size, raw_vocab_size) oov_rate = np.sum([c for t, c in vocab_count[0:keep_vocab_size]]) / float(len(all_words)) self.logger.info('cut off at word {} with frequency={},\n'.format(vocab_count[keep_vocab_size - 1][0], vocab_count[keep_vocab_size - 1][1]) + 'OOV rate = {:.2f}%'.format(100.0 - oov_rate * 100)) vocab_count = vocab_count[0:keep_vocab_size] self.vocab = SPECIAL_TOKENS + [t for t, cnt in vocab_count if t not in SPECIAL_TOKENS] self.vocab_dict = {t: idx for idx, t in enumerate(self.vocab)} self.unk_id = self.vocab_dict[UNK] self.logger.info("Raw vocab size {} in train set and final vocab size {}".format(raw_vocab_size, len(self.vocab))) def _process_goal(self, raw_goal): res = {} for domain in self.domains: all_words = [] d_goal = raw_goal[domain] if d_goal: for info_type in self.info_types: sv_info = d_goal.get(info_type, dict()) if info_type == 'reqt' and isinstance(sv_info, list): all_words.extend([info_type + '|' + item for item in sv_info]) elif isinstance(sv_info, dict): all_words.extend([info_type + '|' + k + '|' + str(v) for k, v in sv_info.items()]) else: print('Fatal Error!') exit(-1) res[domain] = all_words return res def _extract_goal_vocab(self): self.goal_vocab, self.goal_vocab_dict, self.goal_unk_id = {}, {}, {} for domain in self.domains: all_words = [] for dlg in self.train_corpus: all_words.extend(dlg.goal[domain]) vocab_count = Counter(all_words).most_common() raw_vocab_size = len(vocab_count) discard_wc = np.sum([c for t, c in vocab_count]) self.logger.info('================= domain = {}, \n'.format(domain) + 'goal vocab size of train set = %d, \n' % (raw_vocab_size,) + 'cut off at word %s with frequency = %d, \n' % (vocab_count[-1][0], vocab_count[-1][1]) + 'OOV rate = %.2f' % (1 - float(discard_wc) / len(all_words),)) self.goal_vocab[domain] = [UNK] + [g for g, cnt in vocab_count] self.goal_vocab_dict[domain] = {t: idx for idx, t in enumerate(self.goal_vocab[domain])} self.goal_unk_id[domain] = self.goal_vocab_dict[domain][UNK] def get_corpus(self): id_train = self._to_id_corpus('Train', self.train_corpus) id_val = self._to_id_corpus('Valid', self.val_corpus) id_test = self._to_id_corpus('Test', self.test_corpus) return id_train, id_val, id_test def _to_id_corpus(self, name, data): results = [] for dlg in data: if len(dlg.dlg) < 1: continue id_dlg = [] for turn in dlg.dlg: id_turn = Pack(utt=self._sent2id(turn.utt), speaker=turn.speaker, db=turn.db, bs=turn.bs) id_dlg.append(id_turn) id_goal = self._goal2id(dlg.goal) results.append(Pack(dlg=id_dlg, goal=id_goal, key=dlg.key)) return results def _sent2id(self, sent): return [self.vocab_dict.get(t, self.unk_id) for t in sent] def _goal2id(self, goal): res = {} for domain in self.domains: d_bow = [0.0] * len(self.goal_vocab[domain]) for word in goal[domain]: word_id = self.goal_vocab_dict[domain].get(word, self.goal_unk_id[domain]) d_bow[word_id] += 1.0 res[domain] = d_bow return res def id2sent(self, id_list): return [self.vocab[i] for i in id_list] def pad_to(self, max_len, tokens, do_pad): if len(tokens) >= max_len: return tokens[: max_len-1] + [tokens[-1]] elif do_pad: return tokens + [0] * (max_len - len(tokens)) else: return tokens
8,740
403
import sys sys.path += ['../'] import os import torch from data.msmarco_data import GetTrainingDataProcessingFn, GetTripletTrainingDataProcessingFn, \ GetQuadrapuletTrainingDataProcessingFn, GetGroupedTrainingDataProcessingFn_polling,GetGroupedTrainingDataProcessingFn_origin from utils.util import ( getattr_recursive, set_seed, StreamingDataset, EmbeddingCache, get_checkpoint_no, get_latest_ann_data, is_first_worker ) import pandas as pd from transformers import glue_processors as processors from transformers import ( AdamW, RobertaConfig, RobertaForSequenceClassification, RobertaTokenizer, get_linear_schedule_with_warmup ) import transformers from utils.lamb import Lamb from model.models import MSMarcoConfigDict, ALL_MODELS, replace_model_with_spasre from torch import nn import torch.distributed as dist from tqdm import tqdm, trange from torch.utils.data.distributed import DistributedSampler from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset import numpy as np from os.path import isfile, join import argparse import glob import json import pickle import logging import random import time torch.multiprocessing.set_sharing_strategy('file_system') try: from torch.utils.tensorboard import SummaryWriter except ImportError: from tensorboardX import SummaryWriter logger = logging.getLogger(__name__) def train(args, model, tokenizer, query_cache, passage_cache): """ Train the model """ logger.info("Training/evaluation parameters %s", args) tb_writer = None if is_first_worker(): tb_writer = SummaryWriter(log_dir=args.log_dir) args.train_batch_size = args.per_gpu_train_batch_size * max(1, args.n_gpu) real_batch_size = args.train_batch_size * args.gradient_accumulation_steps * \ (torch.distributed.get_world_size() if args.local_rank != -1 else 1) optimizer_grouped_parameters = [] layer_optim_params = set() for layer_name in [ "roberta.embeddings", "score_out", "downsample1", "downsample2", "downsample3"]: layer = getattr_recursive(model, layer_name) if layer is not None: optimizer_grouped_parameters.append({"params": layer.parameters()}) for p in layer.parameters(): layer_optim_params.add(p) if getattr_recursive(model, "roberta.encoder.layer") is not None: for layer in model.roberta.encoder.layer: optimizer_grouped_parameters.append({"params": layer.parameters()}) for p in layer.parameters(): layer_optim_params.add(p) optimizer_grouped_parameters.append( {"params": [p for p in model.parameters() if p not in layer_optim_params]}) if args.optimizer.lower() == "lamb": optimizer = Lamb( optimizer_grouped_parameters, lr=args.learning_rate, eps=args.adam_epsilon) elif args.optimizer.lower() == "adamw": optimizer = AdamW( optimizer_grouped_parameters, lr=args.learning_rate, eps=args.adam_epsilon) else: raise Exception( "optimizer {0} not recognized! Can only be lamb or adamW".format( args.optimizer)) def optimizer_to(optim, device): for param in optim.state.values(): # Not sure there are any global tensors in the state dict if isinstance(param, torch.Tensor): param.data = param.data.to(device) if param._grad is not None: param._grad.data = param._grad.data.to(device) elif isinstance(param, dict): for subparam in param.values(): if isinstance(subparam, torch.Tensor): subparam.data = subparam.data.to(device) if subparam._grad is not None: subparam._grad.data = subparam._grad.data.to(device) torch.cuda.empty_cache() # Check if saved optimizer or scheduler states exist if os.path.isfile( os.path.join( args.model_name_or_path, "optimizer.pt")) and args.load_optimizer_scheduler: # Load in optimizer and scheduler states optimizer.load_state_dict( torch.load( os.path.join( args.model_name_or_path, "optimizer.pt"), map_location='cpu')) optimizer_to(optimizer,args.device) model.to(args.device) if args.fp16: try: from apex import amp except ImportError: raise ImportError( "Please install apex from https://www.github.com/nvidia/apex to use fp16 training.") model, optimizer = amp.initialize( model, optimizer, opt_level=args.fp16_opt_level) # multi-gpu training (should be after apex fp16 initialization) if args.n_gpu > 1: model = torch.nn.DataParallel(model) # Distributed training (should be after apex fp16 initialization) if args.local_rank != -1: model = torch.nn.parallel.DistributedDataParallel( model, device_ids=[ args.local_rank], output_device=args.local_rank, find_unused_parameters=True, ) # Train logger.info("***** Running training *****") logger.info(" Max steps = %d", args.max_steps) logger.info( " Instantaneous batch size per GPU = %d", args.per_gpu_train_batch_size) logger.info( " Total train batch size (w. parallel, distributed & accumulation) = %d", args.train_batch_size * args.gradient_accumulation_steps * (torch.distributed.get_world_size() if args.local_rank != -1 else 1), ) logger.info( " Gradient Accumulation steps = %d", args.gradient_accumulation_steps) global_step = 0 # Check if continuing training from a checkpoint if os.path.exists(args.model_name_or_path): # set global_step to gobal_step of last saved checkpoint from model # path if "-" in args.model_name_or_path: global_step = int( args.model_name_or_path.split("-")[-1].split("/")[0]) else: global_step = 0 logger.info( " Continuing training from checkpoint, will skip to saved global_step") logger.info(" Continuing training from global step %d", global_step) is_hypersphere_training = (args.hyper_align_weight > 0 or args.hyper_unif_weight > 0) if is_hypersphere_training: logger.info( f"training with hypersphere property regularization, align weight {args.hyper_align_weight}, unif weight {args.hyper_unif_weight}") if not args.dual_training: args.dual_loss_weight = 0.0 tr_loss_dict={} model.zero_grad() model.train() set_seed(args) # Added here for reproductibility last_ann_no = -1 train_dataloader = None train_dataloader_iter = None # dev_ndcg = 0 step = 0 if args.single_warmup: scheduler = get_linear_schedule_with_warmup( optimizer, num_warmup_steps=args.warmup_steps, num_training_steps=args.max_steps) if os.path.isfile( os.path.join( args.model_name_or_path, "scheduler.pt")) and args.load_optimizer_scheduler: # Load in optimizer and scheduler states scheduler.load_state_dict( torch.load( os.path.join( args.model_name_or_path, "scheduler.pt"))) while global_step < args.max_steps: if step % args.gradient_accumulation_steps == 0 and global_step % args.logging_steps == 0: # check if new ann training data is availabe ann_no, ann_path, ndcg_json = get_latest_ann_data(args.ann_dir,is_grouped=(args.grouping_ann_data > 0)) if ann_path is not None and ann_no != last_ann_no: logger.info("Training on new add data at %s", ann_path) time.sleep(30) # wait until transmission finished with open(ann_path, 'r') as f: ann_training_data = f.readlines() # marcodev_ndcg = ndcg_json['marcodev_ndcg'] logging.info(f"loading:\n{ndcg_json}") ann_checkpoint_path = ndcg_json['checkpoint'] ann_checkpoint_no = get_checkpoint_no(ann_checkpoint_path) aligned_size = (len(ann_training_data) // args.world_size) * args.world_size ann_training_data = ann_training_data[:aligned_size] logger.info("Total ann queries: %d", len(ann_training_data) if args.grouping_ann_data < 0 else len(ann_training_data)*args.grouping_ann_data) if args.grouping_ann_data > 0: if args.polling_loaded_data_batch_from_group: train_dataset = StreamingDataset( ann_training_data, GetGroupedTrainingDataProcessingFn_polling( args, query_cache, passage_cache)) else: train_dataset = StreamingDataset( ann_training_data, GetGroupedTrainingDataProcessingFn_origin( args, query_cache, passage_cache)) else: if not args.dual_training: if args.triplet: train_dataset = StreamingDataset( ann_training_data, GetTripletTrainingDataProcessingFn( args, query_cache, passage_cache)) else: train_dataset = StreamingDataset( ann_training_data, GetTrainingDataProcessingFn( args, query_cache, passage_cache)) else: # return quadruplet train_dataset = StreamingDataset( ann_training_data, GetQuadrapuletTrainingDataProcessingFn( args, query_cache, passage_cache)) train_dataloader = DataLoader( train_dataset, batch_size=args.train_batch_size) train_dataloader_iter = iter(train_dataloader) # re-warmup if not args.single_warmup: scheduler = get_linear_schedule_with_warmup( optimizer, num_warmup_steps=args.warmup_steps, num_training_steps=len(ann_training_data) if args.grouping_ann_data < 0 else len(ann_training_data)*args.grouping_ann_data ) if args.local_rank != -1: dist.barrier() if is_first_worker(): # add ndcg at checkpoint step used instead of current step for key in ndcg_json: if "marcodev" in key: tb_writer.add_scalar( key, ndcg_json[key], ann_checkpoint_no) if 'trec2019_ndcg' in ndcg_json: tb_writer.add_scalar( "trec2019_ndcg", ndcg_json['trec2019_ndcg'], ann_checkpoint_no) if last_ann_no != -1: tb_writer.add_scalar( "epoch", last_ann_no, global_step - 1) tb_writer.add_scalar("epoch", ann_no, global_step) last_ann_no = ann_no try: batch = next(train_dataloader_iter) except StopIteration: logger.info("Finished iterating current dataset, begin reiterate") train_dataloader_iter = iter(train_dataloader) batch = next(train_dataloader_iter) # original way if args.grouping_ann_data <= 0: batch = tuple(t.to(args.device) for t in batch) if args.triplet: inputs = { "query_ids": batch[0].long(), "attention_mask_q": batch[1].long(), "input_ids_a": batch[3].long(), "attention_mask_a": batch[4].long(), "input_ids_b": batch[6].long(), "attention_mask_b": batch[7].long()} if args.dual_training: inputs["neg_query_ids"] = batch[9].long() inputs["attention_mask_neg_query"] = batch[10].long() inputs["prime_loss_weight"] = args.prime_loss_weight inputs["dual_loss_weight"] = args.dual_loss_weight else: inputs = { "input_ids_a": batch[0].long(), "attention_mask_a": batch[1].long(), "input_ids_b": batch[3].long(), "attention_mask_b": batch[4].long(), "labels": batch[6]} else: # the default collate_fn will convert item["q_pos"] into batch format ... I guess inputs = { "query_ids": batch["q_pos"][0].to(args.device).long(), "attention_mask_q": batch["q_pos"][1].to(args.device).long(), "input_ids_a": batch["d_pos"][0].to(args.device).long(), "attention_mask_a": batch["d_pos"][1].to(args.device).long(), "input_ids_b": batch["d_neg"][0].to(args.device).long(), "attention_mask_b": batch["d_neg"][1].to(args.device).long(),} if args.dual_training: inputs["neg_query_ids"] = batch["q_neg"][0].to(args.device).long() inputs["attention_mask_neg_query"] = batch["q_neg"][1].to(args.device).long() inputs["prime_loss_weight"] = args.prime_loss_weight inputs["dual_loss_weight"] = args.dual_loss_weight inputs["temperature"] = args.temperature inputs["loss_objective"]=args.loss_objective_function if is_hypersphere_training: inputs["alignment_weight"] = args.hyper_align_weight inputs["uniformity_weight"] = args.hyper_unif_weight step += 1 if args.local_rank != -1: # sync gradients only at gradient accumulation step if step % args.gradient_accumulation_steps == 0: outputs = model(**inputs) else: with model.no_sync(): outputs = model(**inputs) else: outputs = model(**inputs) # model outputs are always tuple in transformers (see doc) loss = outputs[0] loss_item_dict = outputs[1] if args.n_gpu > 1: loss = loss.mean() # mean() to average on multi-gpu parallel training for k in loss_item_dict: loss_item_dict[k] = loss_item_dict[k].mean() if args.gradient_accumulation_steps > 1: loss = loss / args.gradient_accumulation_steps for k in loss_item_dict: loss_item_dict[k] = loss_item_dict[k] / args.gradient_accumulation_steps if args.fp16: with amp.scale_loss(loss, optimizer) as scaled_loss: scaled_loss.backward() else: if args.local_rank != -1: if step % args.gradient_accumulation_steps == 0: loss.backward() else: with model.no_sync(): loss.backward() else: loss.backward() def incremental_tr_loss(tr_loss_dict,loss_item_dict,total_loss): for k in loss_item_dict: if k not in tr_loss_dict: tr_loss_dict[k] = loss_item_dict[k].item() else: tr_loss_dict[k] += loss_item_dict[k].item() if "loss_total" not in tr_loss_dict: tr_loss_dict["loss_total"] = total_loss.item() else: tr_loss_dict["loss_total"] += total_loss.item() return tr_loss_dict tr_loss_dict = incremental_tr_loss(tr_loss_dict,loss_item_dict,total_loss=loss) if step % args.gradient_accumulation_steps == 0: if args.fp16: torch.nn.utils.clip_grad_norm_( amp.master_params(optimizer), args.max_grad_norm) else: torch.nn.utils.clip_grad_norm_( model.parameters(), args.max_grad_norm) optimizer.step() scheduler.step() # Update learning rate schedule model.zero_grad() global_step += 1 if args.logging_steps > 0 and global_step % args.logging_steps == 0: logs = {} learning_rate_scalar = scheduler.get_lr()[0] logs["learning_rate"] = learning_rate_scalar for k in tr_loss_dict: logs[k] = tr_loss_dict[k] / args.logging_steps tr_loss_dict = {} if is_first_worker(): for key, value in logs.items(): tb_writer.add_scalar(key, value, global_step) logger.info(json.dumps({**logs, **{"step": global_step}})) if is_first_worker() and args.save_steps > 0 and global_step % args.save_steps == 0: # Save model checkpoint output_dir = os.path.join( args.output_dir, "checkpoint-{}".format(global_step)) if not os.path.exists(output_dir): os.makedirs(output_dir) model_to_save = ( model.module if hasattr(model, "module") else model ) # Take care of distributed/parallel training model_to_save.save_pretrained(output_dir) tokenizer.save_pretrained(output_dir) torch.save(args, os.path.join(output_dir, "training_args.bin")) logger.info("Saving model checkpoint to %s", output_dir) torch.save( optimizer.state_dict(), os.path.join( output_dir, "optimizer.pt")) torch.save( scheduler.state_dict(), os.path.join( output_dir, "scheduler.pt")) logger.info( "Saving optimizer and scheduler states to %s", output_dir) if args.local_rank == -1 or torch.distributed.get_rank() == 0: tb_writer.close() return global_step def get_arguments(): parser = argparse.ArgumentParser() # Required parameters parser.add_argument( "--data_dir", default=None, type=str, required=True, help="The input data dir. Should contain the cached passage and query files", ) parser.add_argument( "--ann_dir", default=None, type=str, required=True, help="The ann training data dir. Should contain the output of ann data generation job", ) parser.add_argument( "--model_type", default=None, type=str, required=True, help="Model type selected in the list: " + ", ".join( MSMarcoConfigDict.keys()), ) parser.add_argument( "--model_name_or_path", default=None, type=str, required=True, help="Path to pre-trained model or shortcut name selected in the list: " + ", ".join(ALL_MODELS), ) parser.add_argument( "--task_name", default=None, type=str, required=True, help="The name of the task to train selected in the list: " + ", ".join( processors.keys()), ) parser.add_argument( "--output_dir", default=None, type=str, required=True, help="The output directory where the model predictions and checkpoints will be written.", ) # Other parameters parser.add_argument( "--config_name", default="", type=str, help="Pretrained config name or path if not the same as model_name", ) parser.add_argument( "--tokenizer_name", default="", type=str, help="Pretrained tokenizer name or path if not the same as model_name", ) parser.add_argument( "--cache_dir", default="", type=str, help="Where do you want to store the pre-trained models downloaded from s3", ) parser.add_argument( "--max_seq_length", default=128, type=int, help="The maximum total input sequence length after tokenization. Sequences longer " "than this will be truncated, sequences shorter will be padded.", ) parser.add_argument( "--max_query_length", default=64, type=int, help="The maximum total input sequence length after tokenization. Sequences longer " "than this will be truncated, sequences shorter will be padded.", ) parser.add_argument( "--triplet", default=False, action="store_true", help="Whether to run training.", ) parser.add_argument( "--do_lower_case", action="store_true", help="Set this flag if you are using an uncased model.", ) parser.add_argument( "--log_dir", default=None, type=str, help="Tensorboard log dir", ) parser.add_argument( "--optimizer", default="lamb", type=str, help="Optimizer - lamb or adamW", ) parser.add_argument( "--per_gpu_train_batch_size", default=8, type=int, help="Batch size per GPU/CPU for training.", ) parser.add_argument( "--gradient_accumulation_steps", type=int, default=1, help="Number of updates steps to accumulate before performing a backward/update pass.", ) parser.add_argument( "--learning_rate", default=5e-5, type=float, help="The initial learning rate for Adam.", ) parser.add_argument( "--weight_decay", default=0.0, type=float, help="Weight decay if we apply some.", ) parser.add_argument( "--adam_epsilon", default=1e-8, type=float, help="Epsilon for Adam optimizer.", ) parser.add_argument( "--max_grad_norm", default=1.0, type=float, help="Max gradient norm.", ) parser.add_argument( "--max_steps", default=1000000, type=int, help="If > 0: set total number of training steps to perform", ) parser.add_argument( "--warmup_steps", default=0, type=int, help="Linear warmup over warmup_steps.", ) parser.add_argument( "--logging_steps", type=int, default=500, help="Log every X updates steps.", ) parser.add_argument( "--save_steps", type=int, default=500, help="Save checkpoint every X updates steps.", ) parser.add_argument( "--no_cuda", action="store_true", help="Avoid using CUDA when available", ) parser.add_argument( "--seed", type=int, default=42, help="random seed for initialization", ) parser.add_argument( "--fp16", action="store_true", help="Whether to use 16-bit (mixed) precision (through NVIDIA apex) instead of 32-bit", ) parser.add_argument( "--fp16_opt_level", type=str, default="O1", help="For fp16: Apex AMP optimization level selected in ['O0', 'O1', 'O2', and 'O3']." "See details at https://nvidia.github.io/apex/amp.html", ) # ----------------- ANN HyperParam ------------------ parser.add_argument( "--load_optimizer_scheduler", default=False, action="store_true", help="load scheduler from checkpoint or not", ) parser.add_argument( "--single_warmup", default=False, action="store_true", help="use single or re-warmup", ) # ----------------- End of Doc Ranking HyperParam ------------------ parser.add_argument( "--local_rank", type=int, default=-1, help="For distributed training: local_rank", ) parser.add_argument( "--server_ip", type=str, default="", help="For distant debugging.", ) parser.add_argument( "--server_port", type=str, default="", help="For distant debugging.", ) parser.add_argument( "--dual_training", action="store_true", help="enable dual training, change the data loading, forward function and loss function", ) parser.add_argument( "--prime_loss_weight", type=float, default=1.0, help="primary task loss item weight", ) parser.add_argument( "--dual_loss_weight", type=float, default=0.1, help="dual learning loss item weight", ) # ----------------- HyperSphere Property ------------------ parser.add_argument( "--hyper_align_weight", type=float, default=0.0, help="hypershpere alignment property loss weight", ) parser.add_argument( "--hyper_unif_weight", type=float, default=0.0, help="hypershpere uniformity property loss weight", ) # ------------------- SimCLR parameters L2 normalization and Temperature------------------------ parser.add_argument( "--representation_l2_normalization", action="store_true", help="enable l2_normalization on the representative embeddings for ANN retrieval, previously named as --l2_normalization", ) parser.add_argument( "--temperature", type=float, default=1.0, help="temperature in SimCLR", ) parser.add_argument( "--loss_objective_function", type=str, default="dot_product", choices=["dot_product","pairwise_hinge","simclr_cosine"], help="attention type", ) parser.add_argument( "--grouping_ann_data", type=int, default=-1, help="group multiple <q,d> pair data into one line, I prefer set to 32", ) parser.add_argument( "--polling_loaded_data_batch_from_group", default=False, action="store_true", help="if polling, return batches like [q1,q2,q3,q4]. otherwise remain the original way: [q1,q1,q1,q1], [q1,q1,q2,q2], [q2,q2,q2,q2]...", ) args = parser.parse_args() return args def set_env(args): # Setup distant debugging if needed if args.server_ip and args.server_port: # Distant debugging - see # https://code.visualstudio.com/docs/python/debugging#_attach-to-a-local-script import ptvsd print("Waiting for debugger attach") ptvsd.enable_attach( address=( args.server_ip, args.server_port), redirect_output=True) ptvsd.wait_for_attach() # Setup CUDA, GPU & distributed training if args.local_rank == -1 or args.no_cuda: device = torch.device( "cuda" if torch.cuda.is_available() and not args.no_cuda else "cpu") args.n_gpu = torch.cuda.device_count() else: # Initializes the distributed backend which will take care of sychronizing nodes/GPUs torch.cuda.set_device(args.local_rank) device = torch.device("cuda", args.local_rank) torch.distributed.init_process_group(backend="nccl") args.n_gpu = 1 args.device = device # Setup logging logging.basicConfig( format="%(asctime)s - %(levelname)s - %(name)s - %(message)s", datefmt="%m/%d/%Y %H:%M:%S", level=logging.INFO if args.local_rank in [-1, 0] else logging.WARN, ) logger.warning( "Process rank: %s, device: %s, n_gpu: %s, distributed training: %s, 16-bits training: %s", args.local_rank, device, args.n_gpu, bool(args.local_rank != -1), args.fp16, ) # Set seed set_seed(args) def load_model(args): # Prepare GLUE task args.task_name = args.task_name.lower() args.output_mode = "classification" label_list = ["0", "1"] num_labels = len(label_list) # store args if args.local_rank != -1: args.world_size = torch.distributed.get_world_size() args.rank = dist.get_rank() # assign args.world_size if args.local_rank == -1: args.world_size = 1 # Load pretrained model and tokenizer if args.local_rank not in [-1, 0]: # Make sure only the first process in distributed training will # download model & vocab torch.distributed.barrier() args.model_type = args.model_type.lower() configObj = MSMarcoConfigDict[args.model_type] config = configObj.config_class.from_pretrained( args.config_name if args.config_name else args.model_name_or_path, num_labels=num_labels, finetuning_task=args.task_name, cache_dir=args.cache_dir if args.cache_dir else None, ) tokenizer = configObj.tokenizer_class.from_pretrained( args.tokenizer_name if args.tokenizer_name else args.model_name_or_path, do_lower_case=args.do_lower_case, cache_dir=args.cache_dir if args.cache_dir else None, ) model = configObj.model_class.from_pretrained( args.model_name_or_path, from_tf=bool(".ckpt" in args.model_name_or_path), config=config, cache_dir=args.cache_dir if args.cache_dir else None, ) if args.loss_objective_function == "simclr_cosine": model.is_representation_l2_normalization = args.representation_l2_normalization if args.local_rank == 0: # Make sure only the first process in distributed training will # download model & vocab torch.distributed.barrier() # model.to(args.device) return tokenizer, model def save_checkpoint(args, model, tokenizer): # Saving best-practices: if you use defaults names for the model, you can # reload it using from_pretrained() if is_first_worker(): # Create output directory if needed if not os.path.exists(args.output_dir): os.makedirs(args.output_dir) logger.info("Saving model checkpoint to %s", args.output_dir) # Save a trained model, configuration and tokenizer using `save_pretrained()`. # They can then be reloaded using `from_pretrained()` model_to_save = ( model.module if hasattr(model, "module") else model ) # Take care of distributed/parallel training model_to_save.save_pretrained(args.output_dir) tokenizer.save_pretrained(args.output_dir) # Good practice: save your training arguments together with the trained # model torch.save(args, os.path.join(args.output_dir, "training_args.bin")) if args.local_rank != -1: dist.barrier() def main(): args = get_arguments() set_env(args) tokenizer, model = load_model(args) query_collection_path = os.path.join(args.data_dir, "train-query") query_cache = EmbeddingCache(query_collection_path) passage_collection_path = os.path.join(args.data_dir, "passages") passage_cache = EmbeddingCache(passage_collection_path) with query_cache, passage_cache: global_step = train(args, model, tokenizer, query_cache, passage_cache) logger.info(" global_step = %s", global_step) save_checkpoint(args, model, tokenizer) if __name__ == "__main__": main()
15,679
7,892
<gh_stars>1000+ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Vamp An API for audio analysis and feature extraction plugins. Centre for Digital Music, Queen Mary, University of London. Copyright 2006 <NAME>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the names of the Centre for Digital Music; Queen Mary, University of London; and <NAME> shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. */ #include "PercussionOnsetDetector.h" using std::string; using std::vector; using std::cerr; using std::endl; #include <cmath> PercussionOnsetDetector::PercussionOnsetDetector(float inputSampleRate) : Plugin(inputSampleRate), m_stepSize(0), m_blockSize(0), m_threshold(3), m_sensitivity(40), m_priorMagnitudes(0), m_dfMinus1(0), m_dfMinus2(0) { } PercussionOnsetDetector::~PercussionOnsetDetector() { delete[] m_priorMagnitudes; } string PercussionOnsetDetector::getIdentifier() const { return "percussiononsets"; } string PercussionOnsetDetector::getName() const { return "Simple Percussion Onset Detector"; } string PercussionOnsetDetector::getDescription() const { return "Detect percussive note onsets by identifying broadband energy rises"; } string PercussionOnsetDetector::getMaker() const { return "Vamp SDK Example Plugins"; } int PercussionOnsetDetector::getPluginVersion() const { return 2; } string PercussionOnsetDetector::getCopyright() const { return "Code copyright 2006 <NAME>, University of London, after <NAME> et al 2005. Freely redistributable (BSD license)"; } size_t PercussionOnsetDetector::getPreferredStepSize() const { return 0; } size_t PercussionOnsetDetector::getPreferredBlockSize() const { return 1024; } bool PercussionOnsetDetector::initialise(size_t channels, size_t stepSize, size_t blockSize) { if (channels < getMinChannelCount() || channels > getMaxChannelCount()) return false; m_stepSize = stepSize; m_blockSize = blockSize; m_priorMagnitudes = new float[m_blockSize/2]; for (size_t i = 0; i < m_blockSize/2; ++i) { m_priorMagnitudes[i] = 0.f; } m_dfMinus1 = 0.f; m_dfMinus2 = 0.f; return true; } void PercussionOnsetDetector::reset() { for (size_t i = 0; i < m_blockSize/2; ++i) { m_priorMagnitudes[i] = 0.f; } m_dfMinus1 = 0.f; m_dfMinus2 = 0.f; } PercussionOnsetDetector::ParameterList PercussionOnsetDetector::getParameterDescriptors() const { ParameterList list; ParameterDescriptor d; d.identifier = "threshold"; d.name = "Energy rise threshold"; d.description = "Energy rise within a frequency bin necessary to count toward broadband total"; d.unit = "dB"; d.minValue = 0; d.maxValue = 20; d.defaultValue = 3; d.isQuantized = false; list.push_back(d); d.identifier = "sensitivity"; d.name = "Sensitivity"; d.description = "Sensitivity of peak detector applied to broadband detection function"; d.unit = "%"; d.minValue = 0; d.maxValue = 100; d.defaultValue = 40; d.isQuantized = false; list.push_back(d); return list; } float PercussionOnsetDetector::getParameter(std::string id) const { if (id == "threshold") return m_threshold; if (id == "sensitivity") return m_sensitivity; return 0.f; } void PercussionOnsetDetector::setParameter(std::string id, float value) { if (id == "threshold") { if (value < 0) value = 0; if (value > 20) value = 20; m_threshold = value; } else if (id == "sensitivity") { if (value < 0) value = 0; if (value > 100) value = 100; m_sensitivity = value; } } PercussionOnsetDetector::OutputList PercussionOnsetDetector::getOutputDescriptors() const { OutputList list; OutputDescriptor d; d.identifier = "onsets"; d.name = "Onsets"; d.description = "Percussive note onset locations"; d.unit = ""; d.hasFixedBinCount = true; d.binCount = 0; d.hasKnownExtents = false; d.isQuantized = false; d.sampleType = OutputDescriptor::VariableSampleRate; d.sampleRate = m_inputSampleRate; list.push_back(d); d.identifier = "detectionfunction"; d.name = "Detection Function"; d.description = "Broadband energy rise detection function"; d.binCount = 1; d.isQuantized = true; d.quantizeStep = 1.0; d.sampleType = OutputDescriptor::OneSamplePerStep; list.push_back(d); return list; } PercussionOnsetDetector::FeatureSet PercussionOnsetDetector::process(const float *const *inputBuffers, Vamp::RealTime ts) { if (m_stepSize == 0) { cerr << "ERROR: PercussionOnsetDetector::process: " << "PercussionOnsetDetector has not been initialised" << endl; return FeatureSet(); } int count = 0; for (size_t i = 1; i < m_blockSize/2; ++i) { float real = inputBuffers[0][i*2]; float imag = inputBuffers[0][i*2 + 1]; float sqrmag = real * real + imag * imag; if (m_priorMagnitudes[i] > 0.f) { float diff = 10.f * log10f(sqrmag / m_priorMagnitudes[i]); // std::cout << "i=" << i << ", sqrmag=" << sqrmag << ", prior=" << m_priorMagnitudes[i] << ", diff=" << diff << ", threshold=" << m_threshold << " " << (diff >= m_threshold ? "[*]" : "") << std::endl; if (diff >= m_threshold) ++count; } m_priorMagnitudes[i] = sqrmag; } FeatureSet returnFeatures; Feature detectionFunction; detectionFunction.hasTimestamp = false; detectionFunction.values.push_back(count); returnFeatures[1].push_back(detectionFunction); if (m_dfMinus2 < m_dfMinus1 && m_dfMinus1 >= count && m_dfMinus1 > ((100 - m_sensitivity) * m_blockSize) / 200) { //std::cout << "result at " << ts << "! (count == " << count << ", prev == " << m_dfMinus1 << ")" << std::endl; Feature onset; onset.hasTimestamp = true; onset.timestamp = ts - Vamp::RealTime::frame2RealTime (m_stepSize, int(m_inputSampleRate + 0.5)); returnFeatures[0].push_back(onset); } m_dfMinus2 = m_dfMinus1; m_dfMinus1 = count; return returnFeatures; } PercussionOnsetDetector::FeatureSet PercussionOnsetDetector::getRemainingFeatures() { return FeatureSet(); }
2,905
1,047
<reponame>davidjsherman/repo2docker """ Test if the subdirectory is correctly navigated to """ import os import escapism import pytest from repo2docker.app import Repo2Docker TEST_REPO = "https://github.com/binderhub-ci-repos/repo2docker-subdir-support" def test_subdir(run_repo2docker): # Build from a subdirectory # if subdir support is broken this will fail as the instructions in the # root of the test repo are invalid cwd = os.getcwd() argv = ["--subdir", "a directory", TEST_REPO] run_repo2docker(argv) # check that we restored the current working directory assert cwd == os.getcwd(), "We should be back in %s" % cwd def test_subdir_in_image_name(): app = Repo2Docker(repo=TEST_REPO, subdir="a directory") app.initialize() app.build() escaped_dirname = escapism.escape("a directory", escape_char="-").lower() assert escaped_dirname in app.output_image_spec def test_subdir_invalid(): # test an error is raised when requesting a non existent subdir app = Repo2Docker(repo=TEST_REPO, subdir="invalid-sub-dir") app.initialize() with pytest.raises(FileNotFoundError): app.build() # Just build the image and do not run it.
445
1,144
/** Generated Model - DO NOT CHANGE */ package org.compiere.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; /** Generated Model for C_PaySelectionLine * @author Adempiere (generated) */ @SuppressWarnings("javadoc") public class X_C_PaySelectionLine extends org.compiere.model.PO implements I_C_PaySelectionLine, org.compiere.model.I_Persistent { /** * */ private static final long serialVersionUID = 1643620282L; /** Standard Constructor */ public X_C_PaySelectionLine (Properties ctx, int C_PaySelectionLine_ID, String trxName) { super (ctx, C_PaySelectionLine_ID, trxName); /** if (C_PaySelectionLine_ID == 0) { setC_Invoice_ID (0); setC_PaySelection_ID (0); setC_PaySelectionLine_ID (0); setDifferenceAmt (BigDecimal.ZERO); setDiscountAmt (BigDecimal.ZERO); setIsManual (false); setIsSOTrx (false); setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_PaySelectionLine WHERE C_PaySelection_ID=@C_PaySelection_ID@ setOpenAmt (BigDecimal.ZERO); setPayAmt (BigDecimal.ZERO); setPaymentRule (null); // P } */ } /** Load Constructor */ public X_C_PaySelectionLine (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** Load Meta Data */ @Override protected org.compiere.model.POInfo initPO (Properties ctx) { org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName()); return poi; } /** Set Bankauszug. @param C_BankStatement_ID Bank Statement of account */ @Override public void setC_BankStatement_ID (int C_BankStatement_ID) { if (C_BankStatement_ID < 1) set_Value (COLUMNNAME_C_BankStatement_ID, null); else set_Value (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); } /** Get Bankauszug. @return Bank Statement of account */ @Override public int getC_BankStatement_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatement_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Auszugs-Position. @param C_BankStatementLine_ID Position auf einem Bankauszug zu dieser Bank */ @Override public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) { if (C_BankStatementLine_ID < 1) set_Value (COLUMNNAME_C_BankStatementLine_ID, null); else set_Value (COLUMNNAME_C_BankStatementLine_ID, Integer.valueOf(C_BankStatementLine_ID)); } /** Get Auszugs-Position. @return Position auf einem Bankauszug zu dieser Bank */ @Override public int getC_BankStatementLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementLine_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Bankstatementline Reference. @param C_BankStatementLine_Ref_ID Bankstatementline Reference */ @Override public void setC_BankStatementLine_Ref_ID (int C_BankStatementLine_Ref_ID) { if (C_BankStatementLine_Ref_ID < 1) set_Value (COLUMNNAME_C_BankStatementLine_Ref_ID, null); else set_Value (COLUMNNAME_C_BankStatementLine_Ref_ID, Integer.valueOf(C_BankStatementLine_Ref_ID)); } /** Get Bankstatementline Reference. @return Bankstatementline Reference */ @Override public int getC_BankStatementLine_Ref_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementLine_Ref_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_BP_BankAccount getC_BP_BankAccount() { return get_ValueAsPO(COLUMNNAME_C_BP_BankAccount_ID, org.compiere.model.I_C_BP_BankAccount.class); } @Override public void setC_BP_BankAccount(org.compiere.model.I_C_BP_BankAccount C_BP_BankAccount) { set_ValueFromPO(COLUMNNAME_C_BP_BankAccount_ID, org.compiere.model.I_C_BP_BankAccount.class, C_BP_BankAccount); } /** Set Bankverbindung. @param C_BP_BankAccount_ID Bank Account of the Business Partner */ @Override public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) { if (C_BP_BankAccount_ID < 1) set_Value (COLUMNNAME_C_BP_BankAccount_ID, null); else set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); } /** Get Bankverbindung. @return Bank Account of the Business Partner */ @Override public int getC_BP_BankAccount_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Geschäftspartner. @param C_BPartner_ID Bezeichnet einen Geschäftspartner */ @Override public void setC_BPartner_ID (int C_BPartner_ID) { if (C_BPartner_ID < 1) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); else set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Geschäftspartner. @return Bezeichnet einen Geschäftspartner */ @Override public int getC_BPartner_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Währung. @param C_Currency_ID Die Währung für diesen Eintrag */ @Override public void setC_Currency_ID (int C_Currency_ID) { throw new IllegalArgumentException ("C_Currency_ID is virtual column"); } /** Get Währung. @return Die Währung für diesen Eintrag */ @Override public int getC_Currency_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_Invoice getC_Invoice() { return get_ValueAsPO(COLUMNNAME_C_Invoice_ID, org.compiere.model.I_C_Invoice.class); } @Override public void setC_Invoice(org.compiere.model.I_C_Invoice C_Invoice) { set_ValueFromPO(COLUMNNAME_C_Invoice_ID, org.compiere.model.I_C_Invoice.class, C_Invoice); } /** Set Rechnung. @param C_Invoice_ID Invoice Identifier */ @Override public void setC_Invoice_ID (int C_Invoice_ID) { if (C_Invoice_ID < 1) set_Value (COLUMNNAME_C_Invoice_ID, null); else set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); } /** Get Rechnung. @return Invoice Identifier */ @Override public int getC_Invoice_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_Payment getC_Payment() { return get_ValueAsPO(COLUMNNAME_C_Payment_ID, org.compiere.model.I_C_Payment.class); } @Override public void setC_Payment(org.compiere.model.I_C_Payment C_Payment) { set_ValueFromPO(COLUMNNAME_C_Payment_ID, org.compiere.model.I_C_Payment.class, C_Payment); } /** Set Zahlung. @param C_Payment_ID Zahlung */ @Override public void setC_Payment_ID (int C_Payment_ID) { if (C_Payment_ID < 1) set_Value (COLUMNNAME_C_Payment_ID, null); else set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); } /** Get Zahlung. @return Zahlung */ @Override public int getC_Payment_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_PaySelection getC_PaySelection() { return get_ValueAsPO(COLUMNNAME_C_PaySelection_ID, org.compiere.model.I_C_PaySelection.class); } @Override public void setC_PaySelection(org.compiere.model.I_C_PaySelection C_PaySelection) { set_ValueFromPO(COLUMNNAME_C_PaySelection_ID, org.compiere.model.I_C_PaySelection.class, C_PaySelection); } /** Set Zahlung Anweisen. @param C_PaySelection_ID Zahlung Anweisen */ @Override public void setC_PaySelection_ID (int C_PaySelection_ID) { if (C_PaySelection_ID < 1) set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, null); else set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); } /** Get Zahlung Anweisen. @return Zahlung Anweisen */ @Override public int getC_PaySelection_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelection_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Zahlungsauswahl- Position. @param C_PaySelectionLine_ID Payment Selection Line */ @Override public void setC_PaySelectionLine_ID (int C_PaySelectionLine_ID) { if (C_PaySelectionLine_ID < 1) set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, null); else set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, Integer.valueOf(C_PaySelectionLine_ID)); } /** Get Zahlungsauswahl- Position. @return Payment Selection Line */ @Override public int getC_PaySelectionLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelectionLine_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Beschreibung. @return Beschreibung */ @Override public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Differenz. @param DifferenceAmt Difference Amount */ @Override public void setDifferenceAmt (java.math.BigDecimal DifferenceAmt) { set_ValueNoCheck (COLUMNNAME_DifferenceAmt, DifferenceAmt); } /** Get Differenz. @return Difference Amount */ @Override public java.math.BigDecimal getDifferenceAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DifferenceAmt); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Skonto. @param DiscountAmt Calculated amount of discount */ @Override public void setDiscountAmt (java.math.BigDecimal DiscountAmt) { set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); } /** Get Skonto. @return Calculated amount of discount */ @Override public java.math.BigDecimal getDiscountAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Has Open Credit Memo. @param HasOpenCreditMemos Has Open Credit Memo Invoices */ @Override public void setHasOpenCreditMemos (boolean HasOpenCreditMemos) { throw new IllegalArgumentException ("HasOpenCreditMemos is virtual column"); } /** Get Has Open Credit Memo. @return Has Open Credit Memo Invoices */ @Override public boolean isHasOpenCreditMemos () { Object oo = get_Value(COLUMNNAME_HasOpenCreditMemos); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Has Open Outgoing payments. @param HasOpenOutgoingPayments Has Open Outgoing payments */ @Override public void setHasOpenOutgoingPayments (boolean HasOpenOutgoingPayments) { throw new IllegalArgumentException ("HasOpenOutgoingPayments is virtual column"); } /** Get Has Open Outgoing payments. @return Has Open Outgoing payments */ @Override public boolean isHasOpenOutgoingPayments () { Object oo = get_Value(COLUMNNAME_HasOpenOutgoingPayments); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Manuell. @param IsManual This is a manual process */ @Override public void setIsManual (boolean IsManual) { set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); } /** Get Manuell. @return This is a manual process */ @Override public boolean isManual () { Object oo = get_Value(COLUMNNAME_IsManual); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Verkaufs-Transaktion. @param IsSOTrx This is a Sales Transaction */ @Override public void setIsSOTrx (boolean IsSOTrx) { set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); } /** Get Verkaufs-Transaktion. @return This is a Sales Transaction */ @Override public boolean isSOTrx () { Object oo = get_Value(COLUMNNAME_IsSOTrx); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Zeile Nr.. @param Line Unique line for this document */ @Override public void setLine (int Line) { set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); } /** Get Zeile Nr.. @return Unique line for this document */ @Override public int getLine () { Integer ii = (Integer)get_Value(COLUMNNAME_Line); if (ii == null) return 0; return ii.intValue(); } /** Set Offener Betrag. @param OpenAmt Offener Betrag */ @Override public void setOpenAmt (java.math.BigDecimal OpenAmt) { set_ValueNoCheck (COLUMNNAME_OpenAmt, OpenAmt); } /** Get Offener Betrag. @return Offener Betrag */ @Override public java.math.BigDecimal getOpenAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Offene Zahlungszuordnung. @param OpenPaymentAllocationForm Offene Zahlungszuordnung */ @Override public void setOpenPaymentAllocationForm (java.lang.String OpenPaymentAllocationForm) { set_Value (COLUMNNAME_OpenPaymentAllocationForm, OpenPaymentAllocationForm); } /** Get Offene Zahlungszuordnung. @return Offene Zahlungszuordnung */ @Override public java.lang.String getOpenPaymentAllocationForm () { return (java.lang.String)get_Value(COLUMNNAME_OpenPaymentAllocationForm); } /** Set Zahlungsbetrag. @param PayAmt Amount being paid */ @Override public void setPayAmt (java.math.BigDecimal PayAmt) { set_Value (COLUMNNAME_PayAmt, PayAmt); } /** Get Zahlungsbetrag. @return Amount being paid */ @Override public java.math.BigDecimal getPayAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); if (bd == null) return BigDecimal.ZERO; return bd; } /** * PaymentRule AD_Reference_ID=195 * Reference name: _Payment Rule */ public static final int PAYMENTRULE_AD_Reference_ID=195; /** Cash = B */ public static final String PAYMENTRULE_Cash = "B"; /** CreditCard = K */ public static final String PAYMENTRULE_CreditCard = "K"; /** DirectDeposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; /** Check = S */ public static final String PAYMENTRULE_Check = "S"; /** OnCredit = P */ public static final String PAYMENTRULE_OnCredit = "P"; /** DirectDebit = D */ public static final String PAYMENTRULE_DirectDebit = "D"; /** Mixed = M */ public static final String PAYMENTRULE_Mixed = "M"; /** PayPal = L */ public static final String PAYMENTRULE_PayPal = "L"; /** Set Zahlungsweise. @param PaymentRule How you pay the invoice */ @Override public void setPaymentRule (java.lang.String PaymentRule) { set_Value (COLUMNNAME_PaymentRule, PaymentRule); } /** Get Zahlungsweise. @return How you pay the invoice */ @Override public java.lang.String getPaymentRule () { return (java.lang.String)get_Value(COLUMNNAME_PaymentRule); } /** Set Referenz. @param Reference Bezug für diesen Eintrag */ @Override public void setReference (java.lang.String Reference) { set_Value (COLUMNNAME_Reference, Reference); } /** Get Referenz. @return Bezug für diesen Eintrag */ @Override public java.lang.String getReference () { return (java.lang.String)get_Value(COLUMNNAME_Reference); } }
6,299
424
package com.j256.ormlite.field.types; import static org.junit.Assert.assertEquals; import java.sql.SQLException; import java.sql.Timestamp; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.GregorianCalendar; import org.junit.Test; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.field.FieldType; import com.j256.ormlite.field.SqlType; import com.j256.ormlite.table.DatabaseTable; public class SqlDateTypeTest extends BaseTypeTest { private static final String DATE_COLUMN = "date"; private DataType dataType = DataType.SQL_DATE; @Test public void testSqlDate() throws Exception { Class<LocalDate> clazz = LocalDate.class; Dao<LocalDate, Object> dao = createDao(clazz, true); GregorianCalendar c = new GregorianCalendar(); c.set(GregorianCalendar.HOUR_OF_DAY, 0); c.set(GregorianCalendar.MINUTE, 0); c.set(GregorianCalendar.SECOND, 0); c.set(GregorianCalendar.MILLISECOND, 0); long millis = c.getTimeInMillis(); java.sql.Date val = new java.sql.Date(millis); String format = "yyyy-MM-dd HH:mm:ss.S"; DateFormat dateFormat = new SimpleDateFormat(format); String valStr = dateFormat.format(val); LocalDate foo = new LocalDate(); foo.date = val; assertEquals(1, dao.create(foo)); Timestamp timestamp = new Timestamp(val.getTime()); testType(dao, foo, clazz, val, timestamp, timestamp, valStr, dataType, DATE_COLUMN, false, true, true, false, true, false, true, false); } @Test public void testSqlDateNull() throws Exception { Class<LocalDate> clazz = LocalDate.class; Dao<LocalDate, Object> dao = createDao(clazz, true); LocalDate foo = new LocalDate(); assertEquals(1, dao.create(foo)); testType(dao, foo, clazz, null, null, null, null, dataType, DATE_COLUMN, false, true, true, false, true, false, true, false); } @Test(expected = SQLException.class) public void testSqlDateParseInvalid() throws Exception { FieldType fieldType = FieldType.createFieldType(databaseType, TABLE_NAME, LocalDate.class.getDeclaredField(DATE_COLUMN), LocalDate.class); dataType.getDataPersister().parseDefaultString(fieldType, "not valid date string"); } @Test public void testCoverage() { new SqlDateType(SqlType.DATE, new Class[0]); } @Test(expected = IllegalArgumentException.class) public void testInvalidDateField() throws Exception { FieldType.createFieldType(databaseType, TABLE_NAME, InvalidDate.class.getDeclaredField("notDate"), LocalDate.class); } /* ============================================================================================ */ @DatabaseTable protected static class InvalidDate { @DatabaseField(dataType = DataType.SQL_DATE) String notDate; } @DatabaseTable(tableName = TABLE_NAME) protected static class LocalDate { @DatabaseField(columnName = DATE_COLUMN) java.sql.Date date; } }
1,021
458
// Copyright 2015-2021 Swim Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package swim.http; import org.testng.annotations.Test; import static swim.http.HttpAssertions.assertWrites; public class HttpMethodSpec { @Test public void parseMethods() { assertParses("GET", HttpMethod.GET); assertParses("HEAD", HttpMethod.HEAD); assertParses("POST", HttpMethod.POST); assertParses("PUT", HttpMethod.PUT); assertParses("DELETE", HttpMethod.DELETE); assertParses("CONNECT", HttpMethod.CONNECT); assertParses("OPTIONS", HttpMethod.OPTIONS); assertParses("TRACE", HttpMethod.TRACE); } @Test public void writeMethods() { assertWrites(HttpMethod.GET, "GET"); assertWrites(HttpMethod.HEAD, "HEAD"); assertWrites(HttpMethod.POST, "POST"); assertWrites(HttpMethod.PUT, "PUT"); assertWrites(HttpMethod.DELETE, "DELETE"); assertWrites(HttpMethod.CONNECT, "CONNECT"); assertWrites(HttpMethod.OPTIONS, "OPTIONS"); assertWrites(HttpMethod.TRACE, "TRACE"); } public static void assertParses(String string, HttpMethod method) { HttpAssertions.assertParses(Http.standardParser().methodParser(), string, method); } }
567
357
<gh_stars>100-1000 /* * Copyright © 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an “AS IS” BASIS, without * warranties or conditions of any kind, EITHER EXPRESS OR IMPLIED. See the * License for the specific language governing permissions and limitations * under the License. */ /* * Module Name: * * globals.c * * Abstract: * * Identity Manager - Active Directory Integration * * Global variables * * Authors: <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * */ #include "includes.h" #ifndef _WIN32 static IDM_KRB_CONTEXT gIdmKrbContext = { .mutex_rw = PTHREAD_RWLOCK_INITIALIZER, .state = IDM_KRB_CONTEXT_STATE_UNKNOWN, .pszAccount = NULL, .pszDomain = NULL, .pszCachePath = NULL, .expiryTime = 0 }; PIDM_KRB_CONTEXT pgIdmKrbContext = &gIdmKrbContext; IDM_AUTH_MUTEX gIdmAuthMutex = { .mutex = PTHREAD_MUTEX_INITIALIZER }; PIDM_AUTH_MUTEX pgIdmAuthMutex = &gIdmAuthMutex; #endif /* !_WIN32 */
541
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ash/printing/automatic_usb_printer_configurer.h" #include <string> #include <utility> #include "base/bind.h" #include "base/logging.h" #include "chrome/browser/ash/printing/usb_printer_notification_controller.h" namespace ash { namespace { bool IsPrinterIdInList(const std::string& printer_id, const std::vector<chromeos::Printer>& printer_list) { for (const auto& printer : printer_list) { if (printer.id() == printer_id) { return true; } } return false; } } // namespace AutomaticUsbPrinterConfigurer::AutomaticUsbPrinterConfigurer( std::unique_ptr<chromeos::PrinterConfigurer> printer_configurer, chromeos::PrinterInstallationManager* installation_manager, UsbPrinterNotificationController* notification_controller) : printer_configurer_(std::move(printer_configurer)), installation_manager_(installation_manager), notification_controller_(notification_controller) { DCHECK(installation_manager); } AutomaticUsbPrinterConfigurer::~AutomaticUsbPrinterConfigurer() = default; void AutomaticUsbPrinterConfigurer::OnPrintersChanged( chromeos::PrinterClass printer_class, const std::vector<chromeos::Printer>& printers) { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_); if (printer_class == chromeos::PrinterClass::kAutomatic) { // Remove any notifications for printers that are no longer in the automatic // class and setup any USB printers we haven't seen yet. PruneRemovedAutomaticPrinters(printers); for (const chromeos::Printer& printer : printers) { if (!configured_printers_.contains(printer.id()) && printer.IsUsbProtocol()) { SetupPrinter(printer); } } return; } if (printer_class == chromeos::PrinterClass::kDiscovered) { // Remove any notifications for printers that are no longer in the // discovered class and show a configuration notification for printers we // haven't seen yet PruneRemovedDiscoveredPrinters(printers); for (const chromeos::Printer& printer : printers) { if (!unconfigured_printers_.contains(printer.id()) && printer.IsUsbProtocol()) { notification_controller_->ShowConfigurationNotification(printer); DCHECK(!configured_printers_.contains(printer.id())); unconfigured_printers_.insert(printer.id()); } } return; } } void AutomaticUsbPrinterConfigurer::SetupPrinter( const chromeos::Printer& printer) { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_); if (installation_manager_->IsPrinterInstalled(printer)) { // Skip setup if the printer is already installed. CompleteConfiguration(printer); } printer_configurer_->SetUpPrinter( printer, base::BindOnce(&AutomaticUsbPrinterConfigurer::OnSetupComplete, weak_factory_.GetWeakPtr(), printer)); } void AutomaticUsbPrinterConfigurer::OnSetupComplete( const chromeos::Printer& printer, chromeos::PrinterSetupResult result) { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_); if (result == chromeos::PrinterSetupResult::kPrinterIsNotAutoconfigurable) { installation_manager_->PrinterIsNotAutoconfigurable(printer); return; } if (result != chromeos::PrinterSetupResult::kSuccess) { LOG(ERROR) << "Unable to autoconfigure usb printer " << printer.id(); return; } installation_manager_->PrinterInstalled(printer, /*is_automatic=*/true); chromeos::PrinterConfigurer::RecordUsbPrinterSetupSource( chromeos::UsbPrinterSetupSource::kAutoconfigured); CompleteConfiguration(printer); } void AutomaticUsbPrinterConfigurer::CompleteConfiguration( const chromeos::Printer& printer) { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_); VLOG(1) << "Auto USB Printer setup successful for " << printer.id(); notification_controller_->ShowEphemeralNotification(printer); DCHECK(!unconfigured_printers_.contains(printer.id())); configured_printers_.insert(printer.id()); } void AutomaticUsbPrinterConfigurer::PruneRemovedAutomaticPrinters( const std::vector<chromeos::Printer>& automatic_printers) { PruneRemovedPrinters(automatic_printers, /*use_configured_printers=*/true); } void AutomaticUsbPrinterConfigurer::PruneRemovedDiscoveredPrinters( const std::vector<chromeos::Printer>& discovered_printers) { PruneRemovedPrinters(discovered_printers, /*use_configured_printers=*/false); } void AutomaticUsbPrinterConfigurer::PruneRemovedPrinters( const std::vector<chromeos::Printer>& current_printers, bool use_configured_printers) { auto& printers = use_configured_printers ? configured_printers_ : unconfigured_printers_; for (auto it = printers.begin(); it != printers.end();) { if (!IsPrinterIdInList(*it, current_printers)) { notification_controller_->RemoveNotification(*it); it = printers.erase(it); } else { ++it; } } } } // namespace ash
1,760
1,585
package com.example.wechat01.widght.swipe.interfaces; public interface SwipeAdapterInterface { public int getSwipeLayoutResourceId(int position); }
45
6,181
import renderdoc as rd import rdtest class D3D12_List_Types(rdtest.TestCase): demos_test_name = 'D3D12_List_Types' def check_capture(self): action = self.find_action("Draw") self.controller.SetFrameEvent(action.eventId, False) self.check_triangle(out=action.outputs[0], fore=[0.0, 1.0, 1.0, 1.0]) postvs_data = self.get_postvs(action, rd.MeshDataStage.VSOut, 0, action.numIndices) postvs_ref = { 0: { 'vtx': 0, 'idx': 0, 'SV_POSITION': [-0.5, -0.5, 0.0, 1.0], 'COLOR': [0.0, 1.0, 1.0, 1.0], 'TEXCOORD': [1234.0, 5678.0], }, 1: { 'vtx': 1, 'idx': 1, 'SV_POSITION': [0.0, 0.5, 0.0, 1.0], 'COLOR': [0.0, 1.0, 1.0, 1.0], 'TEXCOORD': [1234.0, 5678.0], }, 2: { 'vtx': 2, 'idx': 2, 'SV_POSITION': [0.5, -0.5, 0.0, 1.0], 'COLOR': [0.0, 1.0, 1.0, 1.0], 'TEXCOORD': [1234.0, 5678.0], }, } self.check_mesh_data(postvs_ref, postvs_data)
780
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.blogger.model; /** * Model definition for Blog. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Blogger API v3. For a detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Blog extends com.google.api.client.json.GenericJson { /** * The JSON custom meta-data for the Blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String customMetaData; /** * The description of this blog. This is displayed underneath the title. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * The identifier for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** * The kind of this entry. Always blogger#blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The locale this Blog is set to. * The value may be {@code null}. */ @com.google.api.client.util.Key private Locale locale; /** * The name of this blog. This is displayed as the title. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The container of pages in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private Pages pages; /** * The container of posts in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private Posts posts; /** * RFC 3339 date-time when this blog was published. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String published; /** * The API REST URL to fetch this resource from. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** * The status of the blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** * RFC 3339 date-time when this blog was last updated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String updated; /** * The URL where this blog is published. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String url; /** * The JSON custom meta-data for the Blog. * @return value or {@code null} for none */ public java.lang.String getCustomMetaData() { return customMetaData; } /** * The JSON custom meta-data for the Blog. * @param customMetaData customMetaData or {@code null} for none */ public Blog setCustomMetaData(java.lang.String customMetaData) { this.customMetaData = customMetaData; return this; } /** * The description of this blog. This is displayed underneath the title. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * The description of this blog. This is displayed underneath the title. * @param description description or {@code null} for none */ public Blog setDescription(java.lang.String description) { this.description = description; return this; } /** * The identifier for this resource. * @return value or {@code null} for none */ public java.lang.String getId() { return id; } /** * The identifier for this resource. * @param id id or {@code null} for none */ public Blog setId(java.lang.String id) { this.id = id; return this; } /** * The kind of this entry. Always blogger#blog. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * The kind of this entry. Always blogger#blog. * @param kind kind or {@code null} for none */ public Blog setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The locale this Blog is set to. * @return value or {@code null} for none */ public Locale getLocale() { return locale; } /** * The locale this Blog is set to. * @param locale locale or {@code null} for none */ public Blog setLocale(Locale locale) { this.locale = locale; return this; } /** * The name of this blog. This is displayed as the title. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The name of this blog. This is displayed as the title. * @param name name or {@code null} for none */ public Blog setName(java.lang.String name) { this.name = name; return this; } /** * The container of pages in this blog. * @return value or {@code null} for none */ public Pages getPages() { return pages; } /** * The container of pages in this blog. * @param pages pages or {@code null} for none */ public Blog setPages(Pages pages) { this.pages = pages; return this; } /** * The container of posts in this blog. * @return value or {@code null} for none */ public Posts getPosts() { return posts; } /** * The container of posts in this blog. * @param posts posts or {@code null} for none */ public Blog setPosts(Posts posts) { this.posts = posts; return this; } /** * RFC 3339 date-time when this blog was published. * @return value or {@code null} for none */ public java.lang.String getPublished() { return published; } /** * RFC 3339 date-time when this blog was published. * @param published published or {@code null} for none */ public Blog setPublished(java.lang.String published) { this.published = published; return this; } /** * The API REST URL to fetch this resource from. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { return selfLink; } /** * The API REST URL to fetch this resource from. * @param selfLink selfLink or {@code null} for none */ public Blog setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** * The status of the blog. * @return value or {@code null} for none */ public java.lang.String getStatus() { return status; } /** * The status of the blog. * @param status status or {@code null} for none */ public Blog setStatus(java.lang.String status) { this.status = status; return this; } /** * RFC 3339 date-time when this blog was last updated. * @return value or {@code null} for none */ public java.lang.String getUpdated() { return updated; } /** * RFC 3339 date-time when this blog was last updated. * @param updated updated or {@code null} for none */ public Blog setUpdated(java.lang.String updated) { this.updated = updated; return this; } /** * The URL where this blog is published. * @return value or {@code null} for none */ public java.lang.String getUrl() { return url; } /** * The URL where this blog is published. * @param url url or {@code null} for none */ public Blog setUrl(java.lang.String url) { this.url = url; return this; } @Override public Blog set(String fieldName, Object value) { return (Blog) super.set(fieldName, value); } @Override public Blog clone() { return (Blog) super.clone(); } /** * The locale this Blog is set to. */ public static final class Locale extends com.google.api.client.json.GenericJson { /** * The country this blog's locale is set to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String country; /** * The language this blog is authored in. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String language; /** * The language variant this blog is authored in. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String variant; /** * The country this blog's locale is set to. * @return value or {@code null} for none */ public java.lang.String getCountry() { return country; } /** * The country this blog's locale is set to. * @param country country or {@code null} for none */ public Locale setCountry(java.lang.String country) { this.country = country; return this; } /** * The language this blog is authored in. * @return value or {@code null} for none */ public java.lang.String getLanguage() { return language; } /** * The language this blog is authored in. * @param language language or {@code null} for none */ public Locale setLanguage(java.lang.String language) { this.language = language; return this; } /** * The language variant this blog is authored in. * @return value or {@code null} for none */ public java.lang.String getVariant() { return variant; } /** * The language variant this blog is authored in. * @param variant variant or {@code null} for none */ public Locale setVariant(java.lang.String variant) { this.variant = variant; return this; } @Override public Locale set(String fieldName, Object value) { return (Locale) super.set(fieldName, value); } @Override public Locale clone() { return (Locale) super.clone(); } } /** * The container of pages in this blog. */ public static final class Pages extends com.google.api.client.json.GenericJson { /** * The URL of the container for pages in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** * The count of pages in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer totalItems; /** * The URL of the container for pages in this blog. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { return selfLink; } /** * The URL of the container for pages in this blog. * @param selfLink selfLink or {@code null} for none */ public Pages setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** * The count of pages in this blog. * @return value or {@code null} for none */ public java.lang.Integer getTotalItems() { return totalItems; } /** * The count of pages in this blog. * @param totalItems totalItems or {@code null} for none */ public Pages setTotalItems(java.lang.Integer totalItems) { this.totalItems = totalItems; return this; } @Override public Pages set(String fieldName, Object value) { return (Pages) super.set(fieldName, value); } @Override public Pages clone() { return (Pages) super.clone(); } } /** * The container of posts in this blog. */ public static final class Posts extends com.google.api.client.json.GenericJson { /** * The List of Posts for this Blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List<Post> items; /** * The URL of the container for posts in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** * The count of posts in this blog. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer totalItems; /** * The List of Posts for this Blog. * @return value or {@code null} for none */ public java.util.List<Post> getItems() { return items; } /** * The List of Posts for this Blog. * @param items items or {@code null} for none */ public Posts setItems(java.util.List<Post> items) { this.items = items; return this; } /** * The URL of the container for posts in this blog. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { return selfLink; } /** * The URL of the container for posts in this blog. * @param selfLink selfLink or {@code null} for none */ public Posts setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** * The count of posts in this blog. * @return value or {@code null} for none */ public java.lang.Integer getTotalItems() { return totalItems; } /** * The count of posts in this blog. * @param totalItems totalItems or {@code null} for none */ public Posts setTotalItems(java.lang.Integer totalItems) { this.totalItems = totalItems; return this; } @Override public Posts set(String fieldName, Object value) { return (Posts) super.set(fieldName, value); } @Override public Posts clone() { return (Posts) super.clone(); } } }
5,105
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.childaccounts; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import android.accounts.Account; import android.app.Activity; import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnit; import org.mockito.junit.MockitoRule; import org.chromium.base.Callback; import org.chromium.base.test.BaseRobolectricTestRunner; import org.chromium.base.test.util.JniMocker; import org.chromium.chrome.test.util.browser.signin.AccountManagerTestRule; import org.chromium.components.signin.AccountManagerFacade.ChildAccountStatusListener; import org.chromium.components.signin.AccountUtils; import org.chromium.components.signin.test.util.FakeAccountManagerFacade; import org.chromium.ui.base.WindowAndroid; import java.lang.ref.WeakReference; /** * Unit tests for {@link ChildAccountService}. */ @RunWith(BaseRobolectricTestRunner.class) public class ChildAccountServiceTest { private static final Account CHILD_ACCOUNT1 = AccountUtils.createAccountFromName("<EMAIL>"); private static final long FAKE_NATIVE_CALLBACK = 1000L; private final FakeAccountManagerFacade mFakeFacade = spy(new FakeAccountManagerFacade()); @Rule public final MockitoRule mMockitoRule = MockitoJUnit.rule(); @Rule public final JniMocker mocker = new JniMocker(); @Rule public final AccountManagerTestRule mAccountManagerTestRule = new AccountManagerTestRule(mFakeFacade); @Mock private ChildAccountStatusListener mListenerMock; @Mock private ChildAccountService.Natives mNativeMock; @Mock private WindowAndroid mWindowAndroidMock; @Before public void setUp() { mocker.mock(ChildAccountServiceJni.TEST_HOOKS, mNativeMock); } @Test public void testReauthenticateChildAccountWhenActivityIsNull() { when(mWindowAndroidMock.getActivity()).thenReturn(new WeakReference<>(null)); ChildAccountService.reauthenticateChildAccount( mWindowAndroidMock, CHILD_ACCOUNT1.name, FAKE_NATIVE_CALLBACK); verify(mNativeMock).onReauthenticationFailed(FAKE_NATIVE_CALLBACK); } @Test public void testReauthenticateChildAccountWhenReauthenticationSucceeded() { final Activity activity = mock(Activity.class); when(mWindowAndroidMock.getActivity()).thenReturn(new WeakReference<>(activity)); doAnswer(invocation -> { Account account = invocation.getArgument(0); Assert.assertEquals(CHILD_ACCOUNT1.name, account.name); Callback<Boolean> callback = invocation.getArgument(2); callback.onResult(true); return null; }) .when(mFakeFacade) .updateCredentials(any(Account.class), eq(activity), any()); ChildAccountService.reauthenticateChildAccount( mWindowAndroidMock, CHILD_ACCOUNT1.name, FAKE_NATIVE_CALLBACK); verify(mNativeMock, never()).onReauthenticationFailed(anyLong()); } @Test public void testReauthenticateChildAccountWhenReauthenticationFailed() { final Activity activity = mock(Activity.class); when(mWindowAndroidMock.getActivity()).thenReturn(new WeakReference<>(activity)); doAnswer(invocation -> { Account account = invocation.getArgument(0); Assert.assertEquals(CHILD_ACCOUNT1.name, account.name); Callback<Boolean> callback = invocation.getArgument(2); callback.onResult(false); return null; }) .when(mFakeFacade) .updateCredentials(any(Account.class), eq(activity), any()); ChildAccountService.reauthenticateChildAccount( mWindowAndroidMock, CHILD_ACCOUNT1.name, FAKE_NATIVE_CALLBACK); verify(mNativeMock).onReauthenticationFailed(FAKE_NATIVE_CALLBACK); } }
1,702
811
{ "description": "Selectors - Syntax and parsing (css3-modsel-154)", "selectors": { "p": "css3-modsel-154.expected0.html" }, "src": "css3-modsel-154.src.html" }
74
852
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester process = cms.Process("SIPIXELDQM") process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi") process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi") process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi") process.load("Configuration.StandardSequences.MagneticField_cff") process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi") process.load("RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi") process.load("DQM.SiPixelMonitorRawData.SiPixelMonitorRawData_cfi") process.load("DQM.SiPixelMonitorDigi.SiPixelMonitorDigi_cfi") process.load("DQM.SiPixelMonitorCluster.SiPixelMonitorCluster_cfi") process.load("DQM.SiPixelMonitorRecHit.SiPixelMonitorRecHit_cfi") process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.DQMEnvironment_cfi") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") process.GlobalTag.connect ="sqlite_file:/afs/cern.ch/user/m/malgeri/public/globtag/CRUZET3_V7.db" process.GlobalTag.globaltag = "CRUZET3_V7::All" process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag') process.source = cms.Source("PoolSource", debugFlag = cms.untracked.bool(True), debugVebosity = cms.untracked.uint32(1), #fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/c/chiochia/cmssw/Muon_FullValidation_150pre3.root') fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/relval/2008/6/6/RelVal-RelValTTbar-1212531852-IDEAL_V1-2nd-02/0000/081018D5-EC33-DD11-A623-000423D6CA42.root') ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('siPixelDigis', 'SiPixelRawDataErrorSource', 'SiPixelDigiSource', 'SiPixelClusterSource', 'SiPixelRecHitSource', 'sipixelEDAClient'), cout = cms.untracked.PSet( threshold = cms.untracked.string('ERROR') ), destinations = cms.untracked.vstring('cout') ) process.AdaptorConfig = cms.Service("AdaptorConfig") process.sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient", FileSaveFrequency = cms.untracked.int32(50), StaticUpdateFrequency = cms.untracked.int32(10) ) from DQMServices.Core.DQMQualityTester import DQMQualityTester process.qTester = DQMQualityTester( qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_qualitytest_config.xml'), QualityTestPrescaler = cms.untracked.int32(1), getQualityTestsFromFile = cms.untracked.bool(True) ) process.ModuleWebRegistry = cms.Service("ModuleWebRegistry") process.Reco = cms.Sequence(process.siPixelDigis*process.siPixelClusters) process.RAWmonitor = cms.Sequence(process.SiPixelRawDataErrorSource) process.DIGImonitor = cms.Sequence(process.SiPixelDigiSource) process.CLUmonitor = cms.Sequence(process.SiPixelClusterSource) process.HITmonitor = cms.Sequence(process.SiPixelRecHitSource) process.DQMmodules = cms.Sequence(process.qTester*process.dqmEnv*process.dqmSaver) process.p = cms.Path(process.Reco*process.DQMmodules*process.RAWmonitor*process.DIGImonitor*process.CLUmonitor*process.sipixelEDAClient) #process.p = cms.Path(process.DQMmodules*process.DIGImonitor*process.sipixelEDAClient) process.siPixelDigis.InputLabel = 'source' process.siPixelDigis.IncludeErrors = True process.SiPixelRawDataErrorSource.saveFile = False process.SiPixelRawDataErrorSource.isPIB = False process.SiPixelRawDataErrorSource.slowDown = False process.SiPixelDigiSource.saveFile = False process.SiPixelDigiSource.isPIB = False process.SiPixelDigiSource.slowDown = False process.SiPixelDigiSource.modOn = True process.SiPixelDigiSource.ladOn = False process.SiPixelDigiSource.layOn = False process.SiPixelDigiSource.phiOn = False process.SiPixelDigiSource.bladeOn = False process.SiPixelDigiSource.diskOn = False process.SiPixelDigiSource.ringOn = False process.SiPixelClusterSource.saveFile = False process.SiPixelClusterSource.modOn = True process.SiPixelClusterSource.ladOn = False process.SiPixelClusterSource.layOn = False process.SiPixelClusterSource.phiOn = False process.SiPixelClusterSource.bladeOn = False process.SiPixelClusterSource.diskOn = False process.SiPixelClusterSource.ringOn = False process.SiPixelRecHitSource.saveFile = False process.SiPixelRecHitSource.modOn = True process.SiPixelRecHitSource.ladOn = False process.SiPixelRecHitSource.layOn = False process.SiPixelRecHitSource.phiOn = False process.SiPixelRecHitSource.bladeOn = False process.SiPixelRecHitSource.ringOn = False process.SiPixelRecHitSource.diskOn = False process.DQM.collectorHost = '' process.dqmSaver.convention = 'Online' process.dqmSaver.producer = 'DQM' process.dqmEnv.subSystemFolder = 'Pixel' process.dqmSaver.dirName = '.' process.dqmSaver.saveByLumiSection = -1 process.dqmSaver.saveByRun = 1 process.dqmSaver.saveAtJobEnd = True
1,858
301
<reponame>PavelMovchan/SwipeTransition<filename>Sources/Automation/AutoSwipeToDismiss/UINavigationController+AutoSwipeToDismiss.h // // UINavigationController+AutoSwipeToDismiss.h // AutoSwipeToDismiss // // Created by <NAME> on 20171224. // Copyright © 2017年 tattn. All rights reserved. // #import <UIKit/UIKit.h> @class SwipeToDismissController; @interface UIViewController (AutoSwipeToDismiss) @property(nonatomic, nullable) SwipeToDismissController* swipeToDismiss; @end
178
312
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. //----------------------------------------------------------------------------- #include "platform/platform.h" #include "memstream.h" MemStream::MemStream(const U32 in_bufferSize, void* io_pBuffer, const bool in_allowRead, const bool in_allowWrite) : cm_bufferSize(in_bufferSize), m_pBufferBase(io_pBuffer), m_instCaps(0), m_currentPosition(0) { AssertFatal(io_pBuffer != NULL, "Invalid buffer pointer"); AssertFatal(in_bufferSize > 0, "Invalid buffer size"); AssertFatal(in_allowRead || in_allowWrite, "Either write or read must be allowed"); if (in_allowRead) m_instCaps |= Stream::StreamRead; if (in_allowWrite) m_instCaps |= Stream::StreamWrite; setStatus(Ok); } MemStream::~MemStream() { m_pBufferBase = NULL; m_currentPosition = 0; setStatus(Closed); } U32 MemStream::getStreamSize() { AssertFatal(getStatus() != Closed, "Stream not open, size undefined"); return cm_bufferSize; } bool MemStream::hasCapability(const Capability in_cap) const { // Closed streams can't do anything // if (getStatus() == Closed) return false; U32 totalCaps = U32(Stream::StreamPosition) | m_instCaps; return (U32(in_cap) & totalCaps) != 0; } U32 MemStream::getPosition() const { AssertFatal(getStatus() != Closed, "Position of a closed stream is undefined"); return m_currentPosition; } bool MemStream::setPosition(const U32 in_newPosition) { AssertFatal(getStatus() != Closed, "SetPosition of a closed stream is not allowed"); AssertFatal(in_newPosition <= cm_bufferSize, "Invalid position"); m_currentPosition = in_newPosition; if (m_currentPosition > cm_bufferSize) { // Never gets here in debug version, this is for the release builds... // setStatus(UnknownError); return false; } else if (m_currentPosition == cm_bufferSize) { setStatus(EOS); } else { setStatus(Ok); } return true; } bool MemStream::_read(const U32 in_numBytes, void *out_pBuffer) { AssertFatal(getStatus() != Closed, "Attempted read from a closed stream"); if (in_numBytes == 0) return true; AssertFatal(out_pBuffer != NULL, "Invalid output buffer"); if (hasCapability(StreamRead) == false) { AssertWarn(false, "Reading is disallowed on this stream"); setStatus(IllegalCall); return false; } bool success = true; U32 actualBytes = in_numBytes; if ((m_currentPosition + in_numBytes) > cm_bufferSize) { success = false; actualBytes = cm_bufferSize - m_currentPosition; } // Obtain a current pointer, and do the copy const void* pCurrent = (const void*)((const U8*)m_pBufferBase + m_currentPosition); dMemcpy(out_pBuffer, pCurrent, actualBytes); // Advance the stream position m_currentPosition += actualBytes; if (!success) setStatus(EOS); else setStatus(Ok); return success; } bool MemStream::_write(const U32 in_numBytes, const void *in_pBuffer) { AssertFatal(getStatus() != Closed, "Attempted write to a closed stream"); if (in_numBytes == 0) return true; AssertFatal(in_pBuffer != NULL, "Invalid input buffer"); if (hasCapability(StreamWrite) == false) { AssertWarn(0, "Writing is disallowed on this stream"); setStatus(IllegalCall); return false; } bool success = true; U32 actualBytes = in_numBytes; if ((m_currentPosition + in_numBytes) > cm_bufferSize) { success = false; actualBytes = cm_bufferSize - m_currentPosition; } // Obtain a current pointer, and do the copy void* pCurrent = (void*)((U8*)m_pBufferBase + m_currentPosition); dMemcpy(pCurrent, in_pBuffer, actualBytes); // Advance the stream position m_currentPosition += actualBytes; if (m_currentPosition == cm_bufferSize) setStatus(EOS); else setStatus(Ok); return success; }
1,772
11,356
// (C) Copyright <NAME> 2011-2015 // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). #if !defined(BOOST_VMD_DETAIL_SEQUENCE_COMMON_HPP) #define BOOST_VMD_DETAIL_SEQUENCE_COMMON_HPP #include <boost/preprocessor/arithmetic/inc.hpp> #include <boost/preprocessor/array/push_back.hpp> #include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/comparison/equal.hpp> #include <boost/preprocessor/comparison/less_equal.hpp> #include <boost/preprocessor/comparison/not_equal.hpp> #include <boost/preprocessor/control/iif.hpp> #include <boost/preprocessor/control/while.hpp> #include <boost/preprocessor/list/append.hpp> #include <boost/preprocessor/logical/bitor.hpp> #include <boost/preprocessor/punctuation/is_begin_parens.hpp> #include <boost/preprocessor/seq/push_back.hpp> #include <boost/preprocessor/seq/size.hpp> #include <boost/preprocessor/tuple/elem.hpp> #include <boost/preprocessor/tuple/push_back.hpp> #include <boost/preprocessor/tuple/replace.hpp> #include <boost/preprocessor/tuple/size.hpp> #include <boost/vmd/empty.hpp> #include <boost/vmd/identity.hpp> #include <boost/vmd/is_empty.hpp> #include <boost/vmd/is_empty_list.hpp> #include <boost/vmd/detail/array.hpp> #include <boost/vmd/detail/equal_type.hpp> #include <boost/vmd/detail/identifier.hpp> #include <boost/vmd/detail/identifier_type.hpp> #include <boost/vmd/detail/list.hpp> #include <boost/vmd/detail/modifiers.hpp> #include <boost/vmd/detail/mods.hpp> #include <boost/vmd/detail/seq.hpp> #include <boost/vmd/detail/tuple.hpp> #define BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT_ELEM 0 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ELEM 1 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM_ELEM 2 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE_ELEM 3 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM_ELEM 4 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES_ELEM 5 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX_ELEM 6 #define BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,number) \ BOOST_PP_EQUAL_D \ ( \ d, \ BOOST_PP_TUPLE_ELEM(0,from), \ number \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_NO_RETURN(d,from) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,BOOST_VMD_DETAIL_MODS_NO_RETURN) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_EXACT_RETURN(d,from) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,BOOST_VMD_DETAIL_MODS_RETURN) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_GENERAL_RETURN(d,from) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,BOOST_VMD_DETAIL_MODS_RETURN_TUPLE) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_ARRAY_RETURN(d,from) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,BOOST_VMD_DETAIL_MODS_RETURN_ARRAY) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_LIST_RETURN(d,from) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_RETURN(d,from,BOOST_VMD_DETAIL_MODS_RETURN_LIST) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_AFTER(from) \ BOOST_PP_EQUAL \ ( \ BOOST_PP_TUPLE_ELEM(1,from), \ BOOST_VMD_DETAIL_MODS_RETURN_AFTER \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_AFTER_D(d,from) \ BOOST_PP_EQUAL_D \ ( \ d, \ BOOST_PP_TUPLE_ELEM(1,from), \ BOOST_VMD_DETAIL_MODS_RETURN_AFTER \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state) \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX_ELEM,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_IS_EMPTY(state) \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_FROM_EMPTY(state,data) \ (data) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_TO_SEQ(state,data) \ BOOST_PP_SEQ_PUSH_BACK(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state),data) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_TO_TUPLE(state,data) \ BOOST_PP_TUPLE_PUSH_BACK(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state),data) \ /**/ // Array #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_BOOST_VMD_TYPE_ARRAY(d,state,data) \ BOOST_PP_ARRAY_PUSH_BACK(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state),data) \ /**/ // List #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_BOOST_VMD_TYPE_LIST(d,state,data) \ BOOST_PP_LIST_APPEND_D(d,BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state),(data,BOOST_PP_NIL)) \ /**/ // Seq #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_BOOST_VMD_TYPE_SEQ(d,state,data) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_IS_EMPTY(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_FROM_EMPTY, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_TO_SEQ \ ) \ (state,data) \ /**/ // Tuple #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_BOOST_VMD_TYPE_TUPLE(d,state,data) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_IS_EMPTY(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_FROM_EMPTY, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_TO_TUPLE \ ) \ (state,data) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_GET_NAME(state) \ BOOST_PP_CAT \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_PROCESS(d,name,state,data) \ name(d,state,data) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_GET_DATA(d,state,tuple) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_NO_RETURN \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ), \ BOOST_PP_TUPLE_ELEM, \ BOOST_VMD_IDENTITY(tuple) \ ) \ (1,tuple) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD(d,state,ttuple) \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_PROCESS \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_GET_NAME(state), \ state, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD_GET_DATA(d,state,ttuple) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_PROCESSING_ELEM_CHECK(d,state) \ BOOST_PP_EQUAL_D \ ( \ d, \ BOOST_PP_SEQ_SIZE(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state)), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_PROCESSING_ELEM(d,state) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_IS_EMPTY(BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state)), \ BOOST_VMD_IDENTITY(0), \ BOOST_VMD_DETAIL_SEQUENCE_PROCESSING_ELEM_CHECK \ ) \ (d,state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE(state) \ BOOST_PP_TUPLE_ELEM \ ( \ 0, \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state),BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state)) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE_REENTRANT(state) \ BOOST_PP_TUPLE_ELEM \ ( \ 1, \ BOOST_PP_TUPLE_ELEM(BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state),BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state)) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_UNKNOWN(d,state) \ ( \ , \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD(d,state,(BOOST_VMD_TYPE_UNKNOWN,BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state))), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state), \ BOOST_PP_INC(BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state)) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_GET_FULL_TYPE_CHECK_ID(d,type,id) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE_D(d,type,BOOST_VMD_TYPE_IDENTIFIER), \ BOOST_VMD_DETAIL_IDENTIFIER_TYPE_D, \ BOOST_VMD_IDENTITY(type) \ ) \ (d,id) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_GET_FULL_TYPE(d,state,tuple) \ BOOST_VMD_DETAIL_SEQUENCE_GET_FULL_TYPE_CHECK_ID \ ( \ d, \ BOOST_PP_CAT \ ( \ BOOST_VMD_TYPE_, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE(state) \ ), \ BOOST_PP_TUPLE_ELEM(0,tuple) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_PROCESS(d,state,tuple) \ ( \ BOOST_PP_TUPLE_ELEM(1,tuple), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD \ ( \ d, \ state, \ ( \ BOOST_VMD_DETAIL_SEQUENCE_GET_FULL_TYPE(d,state,tuple), \ BOOST_PP_TUPLE_ELEM(0,tuple) \ ) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state), \ BOOST_PP_INC(BOOST_PP_TUPLE_SIZE(BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state))) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_SEQ_SINGLE(d,tuple) \ BOOST_PP_EQUAL_D(d,BOOST_PP_SEQ_SIZE(BOOST_PP_TUPLE_ELEM(0,tuple)),1) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_SEQ(d,state,tuple) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE_D \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_GET_FULL_TYPE(d,state,tuple), \ BOOST_VMD_TYPE_SEQ \ ), \ BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_SEQ_SINGLE, \ BOOST_VMD_IDENTITY(0) \ ) \ (d,tuple) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND(d,state,tuple) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_SEQ(d,state,tuple), \ BOOST_VMD_DETAIL_SEQUENCE_INCREMENT_INDEX, \ BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND_PROCESS \ ) \ (d,state,tuple) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INCREMENT_INDEX(d,state,tuple) \ BOOST_PP_TUPLE_REPLACE_D(d,state,BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX_ELEM,BOOST_PP_INC(BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state))) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE_TUPLE(d,state,tuple) \ BOOST_PP_IIF \ ( \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_PP_TUPLE_ELEM(0,tuple) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_INCREMENT_INDEX, \ BOOST_VMD_DETAIL_SEQUENCE_TYPE_FOUND \ ) \ (d,state,tuple) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE(d,call,state) \ BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE_TUPLE \ ( \ d, \ state, \ call(BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state),BOOST_VMD_RETURN_AFTER) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE_D(d,call,state) \ BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE_TUPLE \ ( \ d, \ state, \ call(d,BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state),BOOST_VMD_RETURN_AFTER) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_GCLRT(state) \ BOOST_PP_CAT \ ( \ BOOST_VMD_DETAIL_, \ BOOST_PP_CAT(BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE(state),_D) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_GCLPL(state) \ BOOST_PP_CAT \ ( \ BOOST_VMD_DETAIL_, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_GCL(state,rflag) \ BOOST_PP_IIF \ ( \ rflag, \ BOOST_VMD_DETAIL_SEQUENCE_GCLRT, \ BOOST_VMD_DETAIL_SEQUENCE_GCLPL \ ) \ (state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_RT_CALL(d,call,state,rflag) \ BOOST_PP_IIF \ ( \ rflag, \ BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE_D, \ BOOST_VMD_DETAIL_SEQUENCE_TEST_TYPE \ ) \ (d,call,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_RT(d,state,rflag) \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_RT_CALL \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_GCL(state,rflag), \ state, \ rflag \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST(d,state) \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST_RT \ ( \ d, \ state, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_GET_TYPE_REENTRANT(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_OP(d,state) \ BOOST_PP_IIF \ ( \ BOOST_PP_EQUAL_D \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state), \ BOOST_PP_TUPLE_SIZE(BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state)) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_UNKNOWN, \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP_TEST \ ) \ (d,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_INNER_PRED(d,state) \ BOOST_PP_NOT_EQUAL_D \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INDEX(state), \ BOOST_PP_INC(BOOST_PP_TUPLE_SIZE(BOOST_VMD_DETAIL_SEQUENCE_STATE_TYPES(state))) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ELEM_FROM(d,from) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_GENERAL_RETURN(d,from), \ ((SEQ,1),(TUPLE,1)), \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_EXACT_RETURN(d,from), \ ((SEQ,1),(LIST,1),(ARRAY,1),(TUPLE,1)), \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_ARRAY_RETURN(d,from), \ ((SEQ,1),(ARRAY,1),(TUPLE,1)), \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_LIST_RETURN(d,from), \ ((SEQ,1),(LIST,1),(TUPLE,1)), \ ((SEQ,1),(TUPLE,1)) \ ) \ ) \ ) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ELEM(d,state) \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ELEM_FROM \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ANY(d,state) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ELEM, \ BOOST_VMD_IDENTITY(((SEQ,1),(TUPLE,1))) \ ) \ (d,state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES(d,state) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_PROCESSING_ELEM(d,state), \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ELEM, \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES_ANY \ ) \ (d,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN(d,state) \ BOOST_PP_WHILE_ ## d \ ( \ BOOST_VMD_DETAIL_SEQUENCE_INNER_PRED, \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP, \ BOOST_PP_TUPLE_PUSH_BACK \ ( \ BOOST_PP_TUPLE_PUSH_BACK \ ( \ state, \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN_TUPLE_TYPES(d,state) \ ), \ 0 \ ) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_ID_LOOP(d,state) \ BOOST_PP_WHILE_ ## d \ ( \ BOOST_VMD_DETAIL_SEQUENCE_INNER_PRED, \ BOOST_VMD_DETAIL_SEQUENCE_INNER_OP, \ BOOST_PP_TUPLE_PUSH_BACK(BOOST_PP_TUPLE_PUSH_BACK(state,((IDENTIFIER,1))),0) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_ID_EL(d,state) \ ( \ BOOST_PP_TUPLE_ELEM(1,BOOST_VMD_DETAIL_LIST_D(d,BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state),BOOST_VMD_RETURN_AFTER)), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT_ADD(d,state,(BOOST_VMD_TYPE_LIST,BOOST_PP_NIL)), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_ID(d,state) \ BOOST_PP_IIF \ ( \ BOOST_VMD_IS_EMPTY_LIST_D \ ( \ d, \ BOOST_VMD_DETAIL_IDENTIFIER_D \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ ) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_OP_ID_EL, \ BOOST_VMD_DETAIL_SEQUENCE_OP_ID_LOOP \ ) \ (d,state) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP_REDUCE_STATE(state) \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_OUTTYPE(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_OP(d,state) \ BOOST_VMD_DETAIL_SEQUENCE_OP_REDUCE_STATE \ ( \ BOOST_PP_IIF \ ( \ BOOST_PP_IS_BEGIN_PARENS \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_OP_PAREN, \ BOOST_VMD_DETAIL_SEQUENCE_OP_ID \ ) \ (d,state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_PRED_CELEM_SZ(d,state) \ BOOST_PP_LESS_EQUAL_D \ ( \ d, \ BOOST_PP_SEQ_SIZE(BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state)), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_PRED_CELEM(d,state) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_PP_BITOR \ ( \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_ELEM(state) \ ), \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state) \ ) \ ), \ BOOST_VMD_IDENTITY(1), \ BOOST_VMD_DETAIL_SEQUENCE_PRED_CELEM_SZ \ ) \ (d,state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_PRED(d,state) \ BOOST_VMD_IDENTITY_RESULT \ ( \ BOOST_PP_IIF \ ( \ BOOST_VMD_IS_EMPTY \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ ), \ BOOST_VMD_IDENTITY(0), \ BOOST_VMD_DETAIL_SEQUENCE_PRED_CELEM \ ) \ (d,state) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_CHECK(output) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE(output,BOOST_VMD_TYPE_ARRAY), \ (0,()), \ BOOST_PP_NIL \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_CHECK_D(d,output) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE_D(d,output,BOOST_VMD_TYPE_ARRAY), \ (0,()), \ BOOST_PP_NIL \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE(output) \ BOOST_PP_IIF \ ( \ BOOST_PP_BITOR \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE(output,BOOST_VMD_TYPE_SEQ), \ BOOST_VMD_DETAIL_EQUAL_TYPE(output,BOOST_VMD_TYPE_TUPLE) \ ), \ BOOST_VMD_EMPTY, \ BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_CHECK \ ) \ (output) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_D(d,output) \ BOOST_PP_IIF \ ( \ BOOST_PP_BITOR \ ( \ BOOST_VMD_DETAIL_EQUAL_TYPE_D(d,output,BOOST_VMD_TYPE_SEQ), \ BOOST_VMD_DETAIL_EQUAL_TYPE_D(d,output,BOOST_VMD_TYPE_TUPLE) \ ), \ BOOST_VMD_EMPTY, \ BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_CHECK_D \ ) \ (d,output) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE_GET(state) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_AFTER \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ), \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state) \ ) /**/ #define BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE_GET_D(d,state) \ BOOST_PP_IIF \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_IS_AFTER_D \ ( \ d, \ BOOST_VMD_DETAIL_SEQUENCE_STATE_FROM(state) \ ), \ ( \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_INPUT(state) \ ), \ BOOST_VMD_DETAIL_SEQUENCE_STATE_RESULT(state) \ ) /**/ #define BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE(vseq,elem,output,from) \ BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE_GET \ ( \ BOOST_PP_WHILE \ ( \ BOOST_VMD_DETAIL_SEQUENCE_PRED, \ BOOST_VMD_DETAIL_SEQUENCE_OP, \ ( \ vseq, \ BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE \ ( \ output \ ), \ elem, \ output, \ from \ ) \ ) \ ) \ /**/ #define BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE_D(d,vseq,elem,output,from) \ BOOST_VMD_DETAIL_SEQUENCE_ELEM_PROCESS_TUPLE_GET_D \ ( \ d, \ BOOST_PP_WHILE_ ## d \ ( \ BOOST_VMD_DETAIL_SEQUENCE_PRED, \ BOOST_VMD_DETAIL_SEQUENCE_OP, \ ( \ vseq, \ BOOST_VMD_DETAIL_SEQUENCE_EMPTY_TYPE_D \ ( \ d, \ output \ ), \ elem, \ output, \ from \ ) \ ) \ ) \ /**/ #endif /* BOOST_VMD_DETAIL_SEQUENCE_COMMON_HPP */
14,396
1,140
from uuid import uuid4 import pytest from pluggy import HookimplMarker from flaskbb.core.changesets import ChangeSetPostProcessor, ChangeSetValidator from flaskbb.core.exceptions import (PersistenceError, StopValidation, ValidationError) from flaskbb.core.user.update import PasswordUpdate from flaskbb.user.models import User from flaskbb.user.services.update import DefaultPasswordUpdateHandler class TestDefaultPasswordUpdateHandler(object): def test_raises_stop_validation_if_errors_occur( self, mocker, user, database, plugin_manager ): validator = mocker.Mock(spec=ChangeSetValidator) validator.validate.side_effect = ValidationError( "new_password", "Don't use that password" ) password_change = PasswordUpdate(str(uuid4()), str(uuid4())) hook_impl = mocker.MagicMock(spec=ChangeSetPostProcessor) plugin_manager.register(self.impl(hook_impl)) handler = DefaultPasswordUpdateHandler( db=database, plugin_manager=plugin_manager, validators=[validator] ) with pytest.raises(StopValidation) as excinfo: handler.apply_changeset(user, password_change) assert excinfo.value.reasons == [ ("new_password", "Don't use that password") ] hook_impl.post_process_changeset.assert_not_called() def test_raises_persistence_error_if_save_fails( self, mocker, user, plugin_manager ): password_change = PasswordUpdate(str(uuid4()), str(uuid4())) db = mocker.Mock() db.session.commit.side_effect = Exception("no") hook_impl = mocker.MagicMock(spec=ChangeSetPostProcessor) plugin_manager.register(self.impl(hook_impl)) handler = DefaultPasswordUpdateHandler( db=db, plugin_manager=plugin_manager, validators=[] ) with pytest.raises(PersistenceError) as excinfo: handler.apply_changeset(user, password_change) assert "Could not update password" in str(excinfo.value) hook_impl.post_process_changeset.assert_not_called() def test_actually_updates_password( self, user, database, plugin_manager, mocker ): new_password = str(uuid4()) password_change = PasswordUpdate("<PASSWORD>", <PASSWORD>_password) hook_impl = mocker.MagicMock(spec=ChangeSetPostProcessor) plugin_manager.register(self.impl(hook_impl)) handler = DefaultPasswordUpdateHandler( db=database, plugin_manager=plugin_manager, validators=[] ) handler.apply_changeset(user, password_change) same_user = User.query.get(user.id) assert same_user.check_password(new_password) hook_impl.post_process_changeset.assert_called_once_with(user=user) @staticmethod def impl(post_processor): class Impl: @HookimplMarker("flaskbb") def flaskbb_password_updated(self, user): post_processor.post_process_changeset(user=user) return Impl()
1,243
1,144
/* * #%L * de.metas.business.rest-api-impl * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ package de.metas.rest_api.v1.externlasystem.dto; import de.metas.RestUtils; import de.metas.common.rest_api.common.JsonMetasfreshId; import de.metas.common.rest_api.v1.CreatePInstanceLogRequest; import de.metas.common.rest_api.v1.JsonError; import de.metas.common.rest_api.v1.JsonErrorItem; import de.metas.common.rest_api.v1.JsonPInstanceLog; import de.metas.common.rest_api.v1.issue.JsonCreateIssueResponse; import de.metas.common.rest_api.v1.issue.JsonCreateIssueResponseItem; import de.metas.error.AdIssueId; import de.metas.error.IErrorManager; import de.metas.error.InsertRemoteIssueRequest; import de.metas.externalsystem.ExternalSystemConfigRepo; import de.metas.externalsystem.ExternalSystemParentConfig; import de.metas.externalsystem.ExternalSystemType; import de.metas.externalsystem.audit.CreateExportAuditRequest; import de.metas.externalsystem.audit.ExternalSystemExportAudit; import de.metas.externalsystem.audit.ExternalSystemExportAuditRepo; import de.metas.logging.LogManager; import de.metas.process.AdProcessId; import de.metas.process.IADPInstanceDAO; import de.metas.process.IADProcessDAO; import de.metas.process.PInstanceId; import de.metas.process.ProcessExecutionResult; import de.metas.process.ProcessInfo; import de.metas.process.ProcessInfoLog; import de.metas.util.Services; import lombok.NonNull; import org.adempiere.exceptions.AdempiereException; import org.adempiere.util.lang.impl.TableRecordReference; import org.slf4j.Logger; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import static de.metas.externalsystem.process.InvokeExternalSystemProcess.PARAM_CHILD_CONFIG_ID; import static de.metas.externalsystem.process.InvokeExternalSystemProcess.PARAM_EXTERNAL_REQUEST; @Service public class ExternalSystemService { private static final transient Logger logger = LogManager.getLogger(ExternalSystemService.class); private static final String DEFAULT_ISSUE_SUMMARY = "No summary provided."; private final IADProcessDAO adProcessDAO = Services.get(IADProcessDAO.class); private final IADPInstanceDAO adPInstanceDAO = Services.get(IADPInstanceDAO.class); private final IErrorManager errorManager = Services.get(IErrorManager.class); private final IADPInstanceDAO instanceDAO = Services.get(IADPInstanceDAO.class); private final ExternalSystemConfigRepo externalSystemConfigRepo; private final ExternalSystemExportAuditRepo externalSystemExportAuditRepo; public ExternalSystemService( final ExternalSystemConfigRepo externalSystemConfigRepo, final ExternalSystemExportAuditRepo externalSystemExportAuditRepo) { this.externalSystemConfigRepo = externalSystemConfigRepo; this.externalSystemExportAuditRepo = externalSystemExportAuditRepo; } @NonNull public ProcessExecutionResult invokeExternalSystem(@NonNull final InvokeExternalSystemProcessRequest invokeExternalSystemProcessRequest) { final ExternalSystemParentConfig externalSystemParentConfig = externalSystemConfigRepo.getByTypeAndValue(invokeExternalSystemProcessRequest.getExternalSystemType(), invokeExternalSystemProcessRequest.getChildSystemConfigValue()) .orElseThrow(() -> new AdempiereException("ExternalSystemParentConfig @NotFound@") .appendParametersToMessage() .setParameter("invokeExternalSystemProcessRequest", invokeExternalSystemProcessRequest)); final AdProcessId processId = adProcessDAO.retrieveProcessIdByClassIfUnique(invokeExternalSystemProcessRequest .getExternalSystemType() .getExternalSystemProcessClassName()); // note: when the AD_PInstance is created by the schedule, it's also stored as string final String configIdAsString = Integer.toString(externalSystemParentConfig.getChildConfig().getId().getRepoId()); final ProcessInfo.ProcessInfoBuilder processInfoBuilder = ProcessInfo.builder(); processInfoBuilder.setAD_Process_ID(processId.getRepoId()); processInfoBuilder.addParameter(PARAM_EXTERNAL_REQUEST, invokeExternalSystemProcessRequest.getRequest()); processInfoBuilder.addParameter(PARAM_CHILD_CONFIG_ID, configIdAsString); processInfoBuilder.setRecord(externalSystemParentConfig.getTableRecordReference()); final ProcessExecutionResult processExecutionResult = processInfoBuilder .buildAndPrepareExecution() .executeSync() .getResult(); adPInstanceDAO.unlockAndSaveResult(processExecutionResult); return processExecutionResult; } @NonNull public JsonCreateIssueResponse createIssue(final @NonNull JsonError jsonError, final @NonNull PInstanceId pInstanceId) { final List<JsonCreateIssueResponseItem> adIssueIds = jsonError .getErrors() .stream() .map(error -> createInsertRemoteIssueRequest(error, pInstanceId)) .map(errorManager::insertRemoteIssue) .map(id -> JsonCreateIssueResponseItem.builder().issueId(JsonMetasfreshId.of(id.getRepoId())).build()) .collect(Collectors.toList()); return JsonCreateIssueResponse.builder() .ids(adIssueIds) .build(); } public void storeExternalPinstanceLog(@NonNull final CreatePInstanceLogRequest request, @NonNull final PInstanceId pInstanceId) { try { final List<ProcessInfoLog> processInfoLogList = request.getLogs() .stream() .map(JsonPInstanceLog::getMessage) .map(ProcessInfoLog::ofMessage) .collect(Collectors.toList()); instanceDAO.saveProcessInfoLogs(pInstanceId, processInfoLogList); } catch (final Exception e) { final AdIssueId issueId = Services.get(IErrorManager.class).createIssue(e); logger.error("Could not save the given model; message={}; AD_Issue_ID={}", e.getLocalizedMessage(), issueId); throw e; } } @NonNull public Optional<ExternalSystemParentConfig> getByTypeAndValue(@NonNull final ExternalSystemType type, @NonNull final String childConfigValue) { return externalSystemConfigRepo.getByTypeAndValue(type, childConfigValue); } @NonNull public Optional<ExternalSystemExportAudit> getMostRecentByTableReferenceAndSystem( @NonNull final TableRecordReference tableRecordReference, @NonNull final ExternalSystemType externalSystemType) { return externalSystemExportAuditRepo.getMostRecentByTableReferenceAndSystem(tableRecordReference, externalSystemType); } @NonNull public ExternalSystemExportAudit createESExportAudit(@NonNull final CreateExportAuditRequest request) { return externalSystemExportAuditRepo.createESExportAudit(request); } @NonNull private InsertRemoteIssueRequest createInsertRemoteIssueRequest(final JsonErrorItem jsonErrorItem, final PInstanceId pInstanceId) { return InsertRemoteIssueRequest.builder() .issueCategory(jsonErrorItem.getIssueCategory()) .issueSummary(StringUtils.isEmpty(jsonErrorItem.getMessage()) ? DEFAULT_ISSUE_SUMMARY : jsonErrorItem.getMessage()) .sourceClassName(jsonErrorItem.getSourceClassName()) .sourceMethodName(jsonErrorItem.getSourceMethodName()) .stacktrace(jsonErrorItem.getStackTrace()) .pInstance_ID(pInstanceId) .orgId(RestUtils.retrieveOrgIdOrDefault(jsonErrorItem.getOrgCode())) .build(); } }
2,531
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_UNOWNED_TEXTURE_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_UNOWNED_TEXTURE_H_ #include "third_party/blink/renderer/modules/webgl/webgl_texture.h" namespace blink { // This class exists to prevent a double-freeing of a texture resource. // It is also necessary for WebXR's Camera Access feature to be able to // provide a camera image textures until it's decided how to best expose // the texture to the WebXR API. // TODO(https://bugs.chromium.org/p/chromium/issues/detail?id=1104340). // The texture does not own its texture name - it relies on being notified that // the texture name has been deleted by whoever owns it. class WebGLUnownedTexture final : public WebGLTexture { public: // The provided GLuint must have been created in the same // WebGLRenderingContextBase that is provided. Garbage collection of // this texture will not result in any GL calls being issued. explicit WebGLUnownedTexture(WebGLRenderingContextBase* ctx, GLuint texture, GLenum target); ~WebGLUnownedTexture() override; // Used to notify the unowned texture that the owner has removed the texture // name and so that it should not be used anymore. void OnGLDeleteTextures(); private: void DeleteObjectImpl(gpu::gles2::GLES2Interface*) override; }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_UNOWNED_TEXTURE_H_
548
1,425
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.tinkerpop.gremlin.neo4j.structure; import org.apache.tinkerpop.gremlin.FeatureRequirement; import org.apache.tinkerpop.gremlin.neo4j.AbstractNeo4jGremlinTest; import org.apache.tinkerpop.gremlin.neo4j.process.traversal.LabelP; import org.apache.tinkerpop.gremlin.process.traversal.Traverser; import org.apache.tinkerpop.gremlin.structure.Graph; import org.apache.tinkerpop.gremlin.structure.T; import org.apache.tinkerpop.gremlin.structure.Vertex; import org.apache.tinkerpop.gremlin.structure.VertexProperty; import org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils; import org.junit.Test; import org.neo4j.tinkerpop.api.Neo4jDirection; import org.neo4j.tinkerpop.api.Neo4jGraphAPI; import org.neo4j.tinkerpop.api.Neo4jNode; import org.neo4j.tinkerpop.api.Neo4jRelationship; import org.neo4j.tinkerpop.api.Neo4jTx; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; /** * @author <NAME> (http://markorodriguez.com) */ public class NativeNeo4jStructureCheck extends AbstractNeo4jGremlinTest { @Test public void shouldOpenWithOverriddenConfig() throws Exception { assertNotNull(this.graph); } @Test public void shouldSupportHasContainersWithMultiLabels() throws Exception { final Neo4jVertex vertex = (Neo4jVertex) this.graph.addVertex(T.label, "person", "name", "marko"); graph.tx().commit(); assertTrue(g.V().has(T.label, "person").hasNext()); assertEquals("marko", g.V().has(T.label, LabelP.of("person")).values("name").next()); assertEquals("marko", g.V().has(T.label, "person").values("name").next()); // more labels vertex.addLabel("animal"); vertex.addLabel("object"); graph.tx().commit(); // no indices (neo4j graph step) assertFalse(g.V().has(T.label, "person").hasNext()); assertEquals("marko", g.V().has(T.label, LabelP.of("person")).values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("animal")).values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("object")).values("name").next()); // no indices (has step) assertFalse(g.V().as("a").select("a").has(T.label, "person").hasNext()); assertEquals("marko", g.V().as("a").select("a").has(T.label, LabelP.of("person")).values("name").next()); assertEquals("marko", g.V().as("a").select("a").has(T.label, LabelP.of("animal")).values("name").next()); assertEquals("marko", g.V().as("a").select("a").has(T.label, LabelP.of("object")).values("name").next()); // indices (neo4j graph step) this.getGraph().cypher("CREATE INDEX ON :person(name)").iterate(); graph.tx().commit(); Thread.sleep(500); assertFalse(g.V().has(T.label, "person").has("name", "marko").hasNext()); assertEquals("marko", g.V().has(T.label, LabelP.of("person")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("animal")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("object")).has("name", "marko").values("name").next()); this.getGraph().cypher("CREATE INDEX ON :animal(name)").iterate(); graph.tx().commit(); Thread.sleep(500); assertFalse(g.V().has(T.label, "animal").has("name", "marko").hasNext()); assertEquals("marko", g.V().has(T.label, LabelP.of("person")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("animal")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("object")).has("name", "marko").values("name").next()); this.getGraph().cypher("CREATE INDEX ON :object(name)").iterate(); graph.tx().commit(); Thread.sleep(500); assertFalse(g.V().has(T.label, "object").has("name", "marko").hasNext()); assertEquals("marko", g.V().has(T.label, LabelP.of("person")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("animal")).has("name", "marko").values("name").next()); assertEquals("marko", g.V().has(T.label, LabelP.of("object")).has("name", "marko").values("name").next()); } @Test public void shouldNotThrowConcurrentModificationException() { this.graph.addVertex("name", "a"); this.graph.addVertex("name", "b"); this.graph.addVertex("name", "c"); this.graph.addVertex("name", "d"); this.graph.vertices().forEachRemaining(Vertex::remove); this.graph.tx().commit(); assertEquals(0, IteratorUtils.count(this.graph.vertices()), 0); } @Test public void shouldTraverseWithoutLabels() { final Neo4jGraphAPI service = this.getGraph().getBaseGraph(); final Neo4jTx tx = service.tx(); final Neo4jNode n = service.createNode(); tx.success(); tx.close(); final Neo4jTx tx2 = service.tx(); assertEquals(0, IteratorUtils.count(n.labels().iterator())); assertEquals(1, IteratorUtils.count(graph.vertices())); graph.tx().close(); tx2.close(); } @Test public void shouldDoLabelSearch() { this.graph.addVertex(T.label, "Person", "name", "marko"); this.graph.addVertex(T.label, "Person", "name", "john"); Vertex pete = this.graph.addVertex(T.label, "Person", "name", "pete"); this.graph.addVertex(T.label, "Monkey", "name", "pete"); this.graph.tx().commit(); assertEquals(3, this.g.V().has(T.label, "Person").count().next(), 0); pete.remove(); this.graph.tx().commit(); assertEquals(2, this.g.V().has(T.label, "Person").count().next(), 0); } @Test public void shouldNotGenerateVerticesOrEdgesForGraphVariables() { graph.tx().readWrite(); graph.variables().set("namespace", "rdf-xml"); tryCommit(graph, graph -> { assertEquals("rdf-xml", graph.variables().get("namespace").get()); assertEquals(0, g.V().count().next().intValue()); assertEquals(0, g.E().count().next().intValue()); assertEquals(0, IteratorUtils.count(this.getBaseGraph().allNodes())); assertEquals(0, IteratorUtils.count(this.getBaseGraph().allRelationships())); }); } @Test public void shouldNotGenerateNodesAndRelationships() { graph.tx().readWrite(); tryCommit(graph, graph -> validateCounts(0, 0, 0, 0)); Vertex vertex = graph.addVertex(T.label, "person"); tryCommit(graph, graph -> validateCounts(1, 0, 1, 0)); vertex.property("name", "marko"); assertEquals("marko", vertex.value("name")); tryCommit(graph, graph -> validateCounts(1, 0, 1, 0)); vertex.property("name", "okram"); tryCommit(graph, g -> { validateCounts(1, 0, 1, 0); assertEquals("okram", vertex.value("name")); }); VertexProperty vertexProperty = vertex.property("name"); tryCommit(graph, graph -> { assertTrue(vertexProperty.isPresent()); assertEquals("name", vertexProperty.key()); assertEquals("okram", vertexProperty.value()); validateCounts(1, 0, 1, 0); }); try { vertexProperty.property("acl", "private"); } catch (UnsupportedOperationException e) { assertEquals(VertexProperty.Exceptions.metaPropertiesNotSupported().getMessage(), e.getMessage()); } } @Test public void shouldSupportNeo4jMultiLabels() { final Neo4jVertex vertex = (Neo4jVertex) graph.addVertex(T.label, "animal::person", "name", "marko"); tryCommit(graph, graph -> { assertTrue(vertex.label().equals("animal::person")); assertEquals(2, vertex.labels().size()); assertTrue(vertex.labels().contains("person")); assertTrue(vertex.labels().contains("animal")); assertEquals(2, IteratorUtils.count(vertex.getBaseVertex().labels().iterator())); }); vertex.addLabel("organism"); tryCommit(graph, graph -> { assertTrue(vertex.label().equals("animal::organism::person")); assertEquals(3, vertex.labels().size()); assertTrue(vertex.labels().contains("person")); assertTrue(vertex.labels().contains("animal")); assertTrue(vertex.labels().contains("organism")); assertEquals(3, IteratorUtils.count(vertex.getBaseVertex().labels().iterator())); }); vertex.removeLabel("person"); tryCommit(graph, graph -> { assertTrue(vertex.label().equals("animal::organism")); assertEquals(2, vertex.labels().size()); assertTrue(vertex.labels().contains("animal")); assertTrue(vertex.labels().contains("organism")); }); vertex.addLabel("organism"); // repeat add vertex.removeLabel("person"); // repeat remove tryCommit(graph, graph -> { assertTrue(vertex.label().equals("animal::organism")); assertEquals(2, vertex.labels().size()); assertTrue(vertex.labels().contains("animal")); assertTrue(vertex.labels().contains("organism")); assertEquals(2, IteratorUtils.count(vertex.getBaseVertex().labels().iterator())); }); assertEquals(Long.valueOf(0), g.V().has(T.label, "organism").count().next()); assertEquals(Long.valueOf(1), g.V().has(T.label, LabelP.of("organism")).count().next()); assertEquals(Long.valueOf(1), g.V().has(T.label, LabelP.of("animal")).count().next()); vertex.removeLabel("organism"); vertex.removeLabel("animal"); assertEquals(0, vertex.labels().size()); vertex.addLabel("organism-animal"); tryCommit(graph, graph -> { assertEquals(Long.valueOf(0), g.V().has(T.label, LabelP.of("organism")).count().next()); assertEquals(Long.valueOf(0), g.V().has(T.label, LabelP.of("animal")).count().next()); assertEquals(Long.valueOf(0), g.V().map(Traverser::get).has(T.label, LabelP.of("organism")).count().next()); assertEquals(Long.valueOf(0), g.V().map(Traverser::get).has(T.label, LabelP.of("animal")).count().next()); // assertEquals(Long.valueOf(1), g.V().has(T.label, LabelP.of("organism-animal")).count().next()); assertEquals(Long.valueOf(1), g.V().has(T.label, "organism-animal").count().next()); assertEquals(Long.valueOf(1), g.V().map(Traverser::get).has(T.label, LabelP.of("organism-animal")).count().next()); assertEquals(Long.valueOf(1), g.V().map(Traverser::get).has(T.label, "organism-animal").count().next()); }); } }
4,908
1,441
<filename>ch3/cs/UVa00441.py<gh_stars>1000+ def main(): first = True while True: x = list(map(int, input().split())) k = x[0] if k is 0: break if first: first = False else: print('') for a in range(1, k-4): for b in range(a+1, k-3): for c in range(b+1, k-2): for d in range(c+1, k-1): for e in range(d+1, k): for f in range(e+1, k+1): print('{} {} {} {} {} {}'.format(x[a], x[b], x[c], x[d], x[e], x[f])) main()
410
1,144
<gh_stars>1000+ #ifndef _XT_IPCOMP_H #define _XT_IPCOMP_H #include <linux/types.h> struct xt_ipcomp { __u32 spis[2]; /* Security Parameter Index */ __u8 invflags; /* Inverse flags */ __u8 hdrres; /* Test of the Reserved Filed */ }; /* Values for "invflags" field in struct xt_ipcomp. */ #define XT_IPCOMP_INV_SPI 0x01 /* Invert the sense of spi. */ #define XT_IPCOMP_INV_MASK 0x01 /* All possible flags. */ #endif /*_XT_IPCOMP_H*/
190
487
from suzieq.sqobjects.basicobj import SqObject from suzieq.utils import convert_macaddr_format_to_colon class ArpndObj(SqObject): def __init__(self, **kwargs): super().__init__(table='arpnd', **kwargs) self._valid_get_args = ['namespace', 'hostname', 'ipAddress', 'columns', 'oif', 'macaddr', 'query_str'] self._convert_args = { 'macaddr': convert_macaddr_format_to_colon }
213
711
package com.java110.community.api; import com.alibaba.fastjson.JSONObject; import com.java110.community.bmo.car.IQueryCar; import com.java110.utils.util.Assert; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping(value = "/car") public class CarApi { @Autowired private IQueryCar queryCarImpl; @RequestMapping(value = "/carInfo", method = RequestMethod.POST) public ResponseEntity<String> carInfo(@RequestBody JSONObject reqJson) { Assert.hasKeyAndValue(reqJson, "code", "未包含小区ID"); return queryCarImpl.queryCarInfo(reqJson); } }
309
9,782
<filename>presto-hive/src/main/java/com/facebook/presto/hive/HadoopDirectoryLister.java /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.facebook.presto.hive; import com.facebook.presto.hive.filesystem.ExtendedFileSystem; import com.facebook.presto.hive.metastore.Table; import com.facebook.presto.hive.util.HiveFileIterator; import org.apache.hadoop.fs.LocatedFileStatus; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.PathFilter; import org.apache.hadoop.fs.RemoteIterator; import java.io.IOException; import java.util.Iterator; import java.util.Optional; import static com.facebook.presto.hive.HiveFileInfo.createHiveFileInfo; import static java.util.Objects.requireNonNull; public class HadoopDirectoryLister implements DirectoryLister { @Override public Iterator<HiveFileInfo> list( ExtendedFileSystem fileSystem, Table table, Path path, NamenodeStats namenodeStats, PathFilter pathFilter, HiveDirectoryContext hiveDirectoryContext) { return new HiveFileIterator( path, p -> new HadoopFileInfoIterator(fileSystem.listLocatedStatus(p)), namenodeStats, hiveDirectoryContext.getNestedDirectoryPolicy(), pathFilter); } public static class HadoopFileInfoIterator implements RemoteIterator<HiveFileInfo> { private final RemoteIterator<LocatedFileStatus> locatedFileStatusIterator; public HadoopFileInfoIterator(RemoteIterator<LocatedFileStatus> locatedFileStatusIterator) { this.locatedFileStatusIterator = requireNonNull(locatedFileStatusIterator, "locatedFileStatusIterator is null"); } @Override public boolean hasNext() throws IOException { return locatedFileStatusIterator.hasNext(); } @Override public HiveFileInfo next() throws IOException { return createHiveFileInfo(locatedFileStatusIterator.next(), Optional.empty()); } } }
999
348
{"nom":"Lantan","circ":"3ème circonscription","dpt":"Cher","inscrits":92,"abs":39,"votants":53,"blancs":7,"nuls":2,"exp":44,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"SOC","nom":"M. <NAME>","voix":12}]}
91
390
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import json import os import pandas as pd import torch from dgllife.data import UnlabeledSMILES from dgllife.utils import mol_to_bigraph from functools import partial from torch.utils.data import DataLoader from tqdm import tqdm from utils import mkdir_p, collate_molgraphs_unlabeled, load_model, predict, init_featurizer def main(args): dataset = UnlabeledSMILES(args['smiles'], node_featurizer=args['node_featurizer'], edge_featurizer=args['edge_featurizer'], mol_to_graph=partial(mol_to_bigraph, add_self_loop=True)) dataloader = DataLoader(dataset, batch_size=args['batch_size'], collate_fn=collate_molgraphs_unlabeled, num_workers=args['num_workers']) model = load_model(args).to(args['device']) checkpoint = torch.load(args['train_result_path'] + '/model.pth', map_location='cpu') model.load_state_dict(checkpoint['model_state_dict']) model.eval() smiles_list = [] predictions = [] with torch.no_grad(): for batch_id, batch_data in enumerate(tqdm(dataloader, desc="Iteration")): batch_smiles, bg = batch_data smiles_list.extend(batch_smiles) batch_pred = predict(args, model, bg) if not args['soft_classification']: batch_pred = (batch_pred >= 0.5).float() predictions.append(batch_pred.detach().cpu()) predictions = torch.cat(predictions, dim=0) output_data = {'canonical_smiles': smiles_list} if args['task_names'] is None: args['task_names'] = ['task_{:d}'.format(t) for t in range(1, args['n_tasks'] + 1)] else: args['task_names'] = args['task_names'].split(',') for task_id, task_name in enumerate(args['task_names']): output_data[task_name] = predictions[:, task_id] df = pd.DataFrame(output_data) df.to_csv(args['inference_result_path'] + '/prediction.csv', index=False) if __name__ == '__main__': from argparse import ArgumentParser parser = ArgumentParser('Inference for Multi-label Binary Classification') parser.add_argument('-f', '--file-path', type=str, required=True, help='Path to a .csv/.txt file of SMILES strings') parser.add_argument('-sc', '--smiles-column', type=str, help='Header for the SMILES column in the CSV file, can be ' 'omitted if the input file is a .txt file or the .csv ' 'file only has one column of SMILES strings') parser.add_argument('-tp', '--train-result-path', type=str, default='classification_results', help='Path to the saved training results, which will be used for ' 'loading the trained model and related configurations') parser.add_argument('-ip', '--inference-result-path', type=str, default='classification_inference_results', help='Path to save the inference results') parser.add_argument('-t', '--task-names', default=None, type=str, help='Task names for saving model predictions in the CSV file to output, ' 'which should be the same as the ones used for training. If not ' 'specified, we will simply use task1, task2, ...') parser.add_argument('-s', '--soft-classification', action='store_true', default=False, help='By default we will perform hard classification with binary labels. ' 'This flag allows performing soft classification instead.') parser.add_argument('-nw', '--num-workers', type=int, default=1, help='Number of processes for data loading (default: 1)') args = parser.parse_args().__dict__ # Load configuration with open(args['train_result_path'] + '/configure.json', 'r') as f: args.update(json.load(f)) if torch.cuda.is_available(): args['device'] = torch.device('cuda:0') else: args['device'] = torch.device('cpu') if args['file_path'].endswith('.csv') or args['file_path'].endswith('.csv.gz'): import pandas df = pandas.read_csv(args['file_path']) if args['smiles_column'] is not None: smiles = df[args['smiles_column']].tolist() else: assert len(df.columns) == 1, 'The CSV file has more than 1 columns and ' \ '-sc (smiles-column) needs to be specified.' smiles = df[df.columns[0]].tolist() elif args['file_path'].endswith('.txt'): from dgllife.utils import load_smiles_from_txt smiles = load_smiles_from_txt(args['file_path']) else: raise ValueError('Expect the input data file to be a .csv or a .txt file, ' 'got {}'.format(args['file_path'])) args['smiles'] = smiles args = init_featurizer(args) # Handle directories mkdir_p(args['inference_result_path']) assert os.path.exists(args['train_result_path']), \ 'The path to the saved training results does not exist.' main(args)
2,275
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.network.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Log Analytics Workspace for Firewall Policy Insights. */ @Fluent public final class FirewallPolicyLogAnalyticsWorkspace { @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallPolicyLogAnalyticsWorkspace.class); /* * Region to configure the Workspace. */ @JsonProperty(value = "region") private String region; /* * The workspace Id for Firewall Policy Insights. */ @JsonProperty(value = "workspaceId") private SubResource workspaceId; /** * Get the region property: Region to configure the Workspace. * * @return the region value. */ public String region() { return this.region; } /** * Set the region property: Region to configure the Workspace. * * @param region the region value to set. * @return the FirewallPolicyLogAnalyticsWorkspace object itself. */ public FirewallPolicyLogAnalyticsWorkspace withRegion(String region) { this.region = region; return this; } /** * Get the workspaceId property: The workspace Id for Firewall Policy Insights. * * @return the workspaceId value. */ public SubResource workspaceId() { return this.workspaceId; } /** * Set the workspaceId property: The workspace Id for Firewall Policy Insights. * * @param workspaceId the workspaceId value to set. * @return the FirewallPolicyLogAnalyticsWorkspace object itself. */ public FirewallPolicyLogAnalyticsWorkspace withWorkspaceId(SubResource workspaceId) { this.workspaceId = workspaceId; return this; } /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } }
781
575
<filename>components/viz/service/display/display_resource_provider_software.h // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_SOFTWARE_H_ #define COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_SOFTWARE_H_ #include <utility> #include <vector> #include "components/viz/service/display/display_resource_provider.h" #include "components/viz/service/viz_service_export.h" #include "third_party/skia/include/core/SkBitmap.h" namespace viz { class SharedBitmapManager; // DisplayResourceProvider implementation used with SoftwareRenderer. class VIZ_SERVICE_EXPORT DisplayResourceProviderSoftware : public DisplayResourceProvider { public: explicit DisplayResourceProviderSoftware( SharedBitmapManager* shared_bitmap_manager); ~DisplayResourceProviderSoftware() override; class VIZ_SERVICE_EXPORT ScopedReadLockSkImage { public: ScopedReadLockSkImage(DisplayResourceProviderSoftware* resource_provider, ResourceId resource_id, SkAlphaType alpha_type = kPremul_SkAlphaType, GrSurfaceOrigin origin = kTopLeft_GrSurfaceOrigin); ~ScopedReadLockSkImage(); ScopedReadLockSkImage(const ScopedReadLockSkImage&) = delete; ScopedReadLockSkImage& operator=(const ScopedReadLockSkImage& other) = delete; const SkImage* sk_image() const { return sk_image_.get(); } sk_sp<SkImage> TakeSkImage() { return std::move(sk_image_); } bool valid() const { return !!sk_image_; } private: DisplayResourceProviderSoftware* const resource_provider_; const ResourceId resource_id_; sk_sp<SkImage> sk_image_; }; private: // These functions are used by ScopedReadLockSkImage to lock and unlock // resources. const ChildResource* LockForRead(ResourceId id); void UnlockForRead(ResourceId id); // DisplayResourceProvider overrides: std::vector<ReturnedResource> DeleteAndReturnUnusedResourcesToChildImpl( Child& child_info, DeleteStyle style, const std::vector<ResourceId>& unused) override; void PopulateSkBitmapWithResource(SkBitmap* sk_bitmap, const ChildResource* resource); SharedBitmapManager* const shared_bitmap_manager_; base::flat_map<ResourceId, sk_sp<SkImage>> resource_sk_images_; }; } // namespace viz #endif // COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_RESOURCE_PROVIDER_SOFTWARE_H_
910
14,668
<reponame>zealoussnow/chromium<filename>sandbox/linux/syscall_broker/broker_command.h<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SYSCALL_BROKER_BROKER_COMMAND_H_ #define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_COMMAND_H_ #include <fcntl.h> #include <stddef.h> #include <stdint.h> #include <bitset> #include <initializer_list> namespace sandbox { namespace syscall_broker { class BrokerPermissionList; // Some flags are local to the current process and cannot be sent over a Unix // socket. They need special treatment from the client. // O_CLOEXEC is tricky because in theory another thread could call execve() // before special treatment is made on the client, so a client needs to call // recvmsg(2) with MSG_CMSG_CLOEXEC. // To make things worse, there are two CLOEXEC related flags, FD_CLOEXEC (see // F_GETFD in fcntl(2)) and O_CLOEXEC (see F_GETFL in fcntl(2)). O_CLOEXEC // doesn't affect the semantics on execve(), it's merely a note that the // descriptor was originally opened with O_CLOEXEC as a flag. And it is sent // over unix sockets just fine, so a receiver that would (incorrectly) look at // O_CLOEXEC instead of FD_CLOEXEC may be tricked in thinking that the file // descriptor will or won't be closed on execve(). constexpr int kCurrentProcessOpenFlagsMask = O_CLOEXEC; enum BrokerCommand { COMMAND_INVALID = 0, COMMAND_ACCESS, COMMAND_MKDIR, COMMAND_OPEN, COMMAND_READLINK, COMMAND_RENAME, COMMAND_RMDIR, COMMAND_STAT, COMMAND_STAT64, COMMAND_UNLINK, // NOTE: update when adding new commands. COMMAND_MAX = COMMAND_UNLINK }; using BrokerCommandSet = std::bitset<COMMAND_MAX + 1>; // Helper function since std::bitset lacks an initializer list constructor. inline BrokerCommandSet MakeBrokerCommandSet( const std::initializer_list<BrokerCommand>& args) { BrokerCommandSet result; for (const auto& arg : args) result.set(arg); return result; } // Helper functions to perform the same permissions test on either side // (client or broker process) of a broker IPC command. The implementations // must be safe when called from an async signal handler. bool CommandAccessIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, int requested_mode, // e.g. F_OK, R_OK, W_OK. const char** filename_to_use); bool CommandMkdirIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, const char** filename_to_use); bool CommandOpenIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, int requested_flags, // e.g. O_RDONLY, O_RDWR. const char** filename_to_use, bool* unlink_after_open); bool CommandReadlinkIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, const char** filename_to_use); bool CommandRenameIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* old_filename, const char* new_filename, const char** old_filename_to_use, const char** new_filename_to_use); bool CommandRmdirIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, const char** filename_to_use); bool CommandStatIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, const char** filename_to_use); bool CommandUnlinkIsSafe(const BrokerCommandSet& command_set, const BrokerPermissionList& policy, const char* requested_filename, const char** filename_to_use); } // namespace syscall_broker } // namespace sandbox #endif // SANDBOX_LINUX_SYSCALL_BROKER_BROKER_COMMAND_H_
1,934
340
<reponame>definitelyNotFBI/utt // Copyright 2020 VMware, all rights reserved #pragma once #include "client.h" #include "sliver.hpp" #include "storage/db_interface.h" #include <cstdlib> #include <exception> #include <iterator> #include <string> #include <unordered_map> namespace concord { namespace storage { namespace memorydb { // Provides transaction support for memorydb. Since memorydb only supports single-thread operations, Transaction takes // advantage of that and implements commit() trivially. class Transaction : public ITransaction { public: Transaction(Client& client, ITransaction::ID id) : ITransaction{id}, client_{client} {} void commit() override { commitImpl(); } void rollback() override { updates_.clear(); } void put(const concordUtils::Sliver& key, const concordUtils::Sliver& value) override { updates_.emplace(key, WriteOperation{false, value}); } std::string get(const concordUtils::Sliver& key) override { // Try the transaction first. auto it = updates_.find(key); if (it != std::cend(updates_)) { if (it->second.isDelete) { return std::string{}; } return it->second.value.toString(); } // If not found in the transaction, try to get from storage. concordUtils::Sliver val; if (!client_.get(key, val).isOK()) { throw std::runtime_error{"memorydb::Transaction: Failed to get key"}; } return val.toString(); } void del(const concordUtils::Sliver& key) override { updates_.emplace(key, WriteOperation{true, concordUtils::Sliver{}}); } private: struct WriteOperation { bool isDelete{false}; concordUtils::Sliver value; }; // Make sure the commit operation cannot throw. If it does, abort the program. void commitImpl() noexcept { for (const auto& update : updates_) { auto status = concordUtils::Status::OK(); if (update.second.isDelete) { status = client_.del(update.first); } else { status = client_.put(update.first, update.second.value); } if (!status.isOK()) { std::abort(); } } updates_.clear(); } Client& client_; // Maps a key to a write operation. std::unordered_map<concordUtils::Sliver, WriteOperation> updates_; }; } // namespace memorydb } // namespace storage } // namespace concord
799
956
<reponame>ajitkhaparde/trex-core /* SPDX-License-Identifier: BSD-3-Clause * Copyright 2018-2019 NXP */ #ifndef _GPI_H_ #define _GPI_H_ /* Generic Packet Interface:The generic packet interface block interfaces * to block like ethernet, Host interfac and covert data into WSP internal * structures */ #define GPI_VERSION 0x00 #define GPI_CTRL 0x04 #define GPI_RX_CONFIG 0x08 #define GPI_HDR_SIZE 0x0c #define GPI_BUF_SIZE 0x10 #define GPI_LMEM_ALLOC_ADDR 0x14 #define GPI_LMEM_FREE_ADDR 0x18 #define GPI_DDR_ALLOC_ADDR 0x1c #define GPI_DDR_FREE_ADDR 0x20 #define GPI_CLASS_ADDR 0x24 #define GPI_DRX_FIFO 0x28 #define GPI_TRX_FIFO 0x2c #define GPI_INQ_PKTPTR 0x30 #define GPI_DDR_DATA_OFFSET 0x34 #define GPI_LMEM_DATA_OFFSET 0x38 #define GPI_TMLF_TX 0x4c #define GPI_DTX_ASEQ 0x50 #define GPI_FIFO_STATUS 0x54 #define GPI_FIFO_DEBUG 0x58 #define GPI_TX_PAUSE_TIME 0x5c #define GPI_LMEM_SEC_BUF_DATA_OFFSET 0x60 #define GPI_DDR_SEC_BUF_DATA_OFFSET 0x64 #define GPI_TOE_CHKSUM_EN 0x68 #define GPI_OVERRUN_DROPCNT 0x6c #define GPI_CSR_MTIP_PAUSE_REG 0x74 #define GPI_CSR_MTIP_PAUSE_QUANTUM 0x78 #define GPI_CSR_RX_CNT 0x7c #define GPI_CSR_TX_CNT 0x80 #define GPI_CSR_DEBUG1 0x84 #define GPI_CSR_DEBUG2 0x88 struct gpi_cfg { u32 lmem_rtry_cnt; u32 tmlf_txthres; u32 aseq_len; u32 mtip_pause_reg; }; /* GPI commons defines */ #define GPI_LMEM_BUF_EN 0x1 #define GPI_DDR_BUF_EN 0x1 /* EGPI 1 defines */ #define EGPI1_LMEM_RTRY_CNT 0x40 #define EGPI1_TMLF_TXTHRES 0xBC #define EGPI1_ASEQ_LEN 0x50 /* EGPI 2 defines */ #define EGPI2_LMEM_RTRY_CNT 0x40 #define EGPI2_TMLF_TXTHRES 0xBC #define EGPI2_ASEQ_LEN 0x40 /* EGPI 3 defines */ #define EGPI3_LMEM_RTRY_CNT 0x40 #define EGPI3_TMLF_TXTHRES 0xBC #define EGPI3_ASEQ_LEN 0x40 /* HGPI defines */ #define HGPI_LMEM_RTRY_CNT 0x40 #define HGPI_TMLF_TXTHRES 0xBC #define HGPI_ASEQ_LEN 0x40 #define EGPI_PAUSE_TIME 0x000007D0 #define EGPI_PAUSE_ENABLE 0x40000000 #endif /* _GPI_H_ */
997