12c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent/* 22c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * Copyright (C) 2004-2010 NXP Software 32c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * Copyright (C) 2010 The Android Open Source Project 42c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * 52c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * Licensed under the Apache License, Version 2.0 (the "License"); 62c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * you may not use this file except in compliance with the License. 72c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * You may obtain a copy of the License at 82c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * 92c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * http://www.apache.org/licenses/LICENSE-2.0 102c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * 112c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * Unless required by applicable law or agreed to in writing, software 122c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * distributed under the License is distributed on an "AS IS" BASIS, 132c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 142c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * See the License for the specific language governing permissions and 152c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent * limitations under the License. 162c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent */ 172c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 182c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent/********************************************************************************** 192c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent INCLUDE FILES 202c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent***********************************************************************************/ 212c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 222c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent#include "VectorArithmetic.h" 232c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 242c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent/********************************************************************************** 252c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent FUNCTION MonoTo2I_32 262c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent***********************************************************************************/ 272c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 282c87e9c923b0362fabf8c97ff63997542394c428Eric Laurentvoid MonoTo2I_32( const LVM_INT32 *src, 292c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent LVM_INT32 *dst, 302c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent LVM_INT16 n) 312c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent{ 322c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent LVM_INT16 ii; 332c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent src += (n-1); 342c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent dst += ((n*2)-1); 352c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 362c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent for (ii = n; ii != 0; ii--) 372c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent { 382c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent *dst = *src; 392c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent dst--; 402c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 412c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent *dst = *src; 422c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent dst--; 432c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent src--; 442c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent } 452c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 462c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent return; 472c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent} 482c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent 492c87e9c923b0362fabf8c97ff63997542394c428Eric Laurent/**********************************************************************************/ 50