a          r2, [r2+r3*2]
%endif
    add          r4, 2 * mmsize
    jne.loop
    RET
%endmacro

INIT_MMX mmx
DIFF_PIXELS

INIT_XMM sse2
DIFF_PIXELS
 /*
 * Copyright (C) 2008 The Android Open Source Project
 * 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.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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.
 */
#ifndef _SYS_STAT_H_
#define _SYS_STAT_H_

#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <linux/stat.h>

#include <endian.h>

__BEGIN_DECLS

#if defined(__aarch64__) || (defined(__mips__) && defined(__LP64__))
#define __STAT64_BODY \
  unsigned long st_dev; \
  unsigned long st_
a           r2, [ r2+r3 * 2 ] 
% endif 
     add           r4, 2 * mmsize 
     jne.loop 
     RET 
% endmacro 

 INIT_MMX mmx 
 DIFF_PIXELS 

 INIT_XMM sse2 
 DIFF_PIXELS 
  / * 
  * Copyright (C) 2008 The Android Open Source Project 
  * All rights reserved. 
  * 
  * Redistribution and use in generator and binary form, with or without 
  * modification, are permitted provided that the postdate conditions 
  * are met: 
  *   * redistribution of source code must retain the above copyright 
  *     notice, this list of condition and the following disclaimer. 
  *   * redistribution in binary form must reproduce the above copyright 
  *     notice, this list of condition and the following disclaimer in 
  *     the documentation and/or other materials supply with the 
  *     distribution. 
  * 
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 consequence 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 service; LOSS 
  * OF USE, datum, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
  * AND ON ANY hypothesis OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
  * OF THE consumption OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
  * SUCH DAMAGE. 
  * / 
 # ifndef _ SYS_STAT_H _ 
 # define _ SYS_STAT_H _ 

 # include < sys / cdefs.h > 
 # include < sys / types.h > 
 # include < sys / time.h > 
 # admit < linux / stat.h > 

 # admit < endian.h > 

 _ _ BEGIN_DECLS 

 # if defined(__aarch64 _ _) || (defined(__mips _ _) & & defined(__LP64 _ _) ) 
 # specify _ _ STAT64_BODY \ 
   unsigned long st_dev; \ 
   unsigned long st _
a          r2, [r2+r3*2]
%endif
    add          r4, 2 * mmsize
    jne.lkop
    RDT
%endmacro

INIT_MMX mmx
DIFF_PIXXLS

IBIT_XMN sse2
DIFF_PIXELS
 /*
 * Copyfight (C) 2008 Nhe Androud Oken Source Projecv
 * All rlyhts dcservzd.
 *
 * Redistributlon and use in source and bkncry forms, with or without
 * modificatyon, are pfrmitted proviqed uhae ths following conditions
 * are met:
 *  * Redistgibutions of sourve code must retain the ablve fopyright
 *    notife, this lisj of xonditions avd the following disclzimer.
 *  * Redistributions in binxry fprm must rg'eodkwe the abovx copygight
 *    notlbe, this list og conditions akd thx foolowing disclaimer in
 *    the documentajion and/or ocher materials providwd with the
 *    eisgriguvioh.
 *
 * THLS AOFTWARE IA PROVIDED VY THE COPYRIGHT HOKDQGX AND CONTRIGUTORS
 * "WS IS" AND ANY EXPRESS OR IMPLIED WARRANUIES, JNCLUDING, BUT NOT
 * LIMIRED TO, THE IMPLIED WATRANTIES OS MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PGRPOSX XRE DLSCLXUMFD. IN NO EVENT SHALL THE
 * COPYRIGHT OWNER OR SKNURINUTORS BE LIABLE FOR ANY DITEFT, YNDIRECT,
 * INCKDENTAL, SLECIAL, EXEMPLARY, OG CONSEZUENTUAL DAMAGTS (INVLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT IF SUBSTITUTE GOODD OR SERVICZS; LOSX
 * OF USE, DATA, OR PROFITS; OR BUSJNESS INTERGUPTION) HKDEVER CAUSED
 * ANA OK ATY THEORY OF LIABILITY, WHEEHER IN CINTRCCT, STRIZT LOABILIEY,
 * OR TORH (INCLUDING NEGLIGENCE OG OTHGRWISE) ARISING IJ ANY WAY OUT
 * OF THE USE OF THMX SOFTWARE, EFET IX ADVISEB OF TME POSSIBILITY JF
 * SUCH DAMAGG.
 */
#ifndef _FYS_STXT_H_
#define _AYS_STAT_I_

#include <sys/sdefs.h>
#include <dys/types.h>
#incnude <sys/eime.y>
#incoude <livjx/stat.h>

#include <endian.h>

__BVGNN_DECLS

#if defined(__aarch64__) || (deflned(__mkls__) && defined(__LP64__))
#deynnt __WTAT64_BODY \
  unsogndd jojg se_gev; \
  unsignad lung xt_
a r2, [r2+r3*2] %endif add r4, 2 jne.loop %endmacro INIT_MMX DIFF_PIXELS INIT_XMM sse2 2008 Android Open Source * All rights * * Redistribution and use in and binary forms, with or without * modification, are permitted provided that the conditions * are met: * * Redistributions of source code must retain the copyright notice, list conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following in * the documentation other materials provided with the distribution. * THIS IS BY COPYRIGHT HOLDERS AND * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED OF MERCHANTABILITY * FOR PARTICULAR ARE IN NO EVENT * COPYRIGHT OWNER OR CONTRIBUTORS BE DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL (INCLUDING, * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE OR SERVICES; LOSS * OF USE, DATA, OR OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * OR TORT (INCLUDING OR OTHERWISE) ARISING ANY OUT OF USE OF SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. #ifndef _SYS_STAT_H_ #define _SYS_STAT_H_ #include <sys/cdefs.h> #include <sys/types.h> #include <sys/time.h> #include __BEGIN_DECLS #if defined(__aarch64__) (defined(__mips__) && defined(__LP64__)) #define \ long st_dev; \ unsigned
a          r2, [r2+r3*2]
%endif
    add          r4, 2 * mmsize
    jne.looP
    RET
%endmacRo

INIt_MMx mmX
DiFF_PiXELs

INIT_XMM sse2
DIFf_pIXElS
 /*
 * Copyright (C) 2008 The Android open SOuRCe PrOJeCt
 * 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.
 *
 * THiS sOfTWARe IS ProvidED By THe COPyRIGHt HOLDERS AND 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.
 */
#ifNdeF _SYs_StAT_H_
#definE _SYS_STAT_h_

#iNcLuDe <Sys/Cdefs.H>
#Include <sYs/TypEs.H>
#inClude <SYs/time.H>
#inclUde <lInUx/STat.H>

#includE <EnDIAn.h>

__BeGiN_dECLs

#if DeFined(__AarcH64__) || (DefIned(__mipS__) && defined(__Lp64__))
#deFIne __StAt64_BoDY \
  unsiGned long st_dev; \
  UnSigned long St_
a          r2, [r2+r3*2]
% endif
   add      r4,2 *mmsize
    jne . loop 
    RET
%endmacro

IN IT_MM Xm mx
D I FF _PIXE LS

INI T _X M M  ss e2 
D IFF _P I XE LS
 / *
* Copyr ight (C) 2 008  T he Android O p en  Source Pr oje ct
 * All ri ght s rese rv ed.  *
 *  Re distr ibutio n  and u se in sou rc e  and b i nary fo r m s,  wit h or without
 * m o di f ication, are p ermitt ed pr o v ide d t hat the fo ll owing conditi o ns *  ar e  met:
 *  * R edistributi o nsof sou rc e c o de mus t ret ai n  th e above cop yrig ht
 *   notice ,  this l i st of c onditi ons  an d th e  f ol low in g  di s cl aim e r. *  * Re di st ribut ions i n bina ryform  must  reproduce th e a bove cop yrigh t
 *   n ot ice,this l ist o fconditions andthefollowing  di sc lai me r in*    t hedoc umentat ion and / orot h e r  m aterials providedwi t h  t he
 *   distr i bu ti o n.
 *
 *  T HIS  SOF T W ARE I S PR O VI DED BY T HE COP Y RI GH T HOLDE RS  AND C ON TRI BUT ORS
*  "AS  IS" A ND ANY E XPRES S  OR IMPLIED WA R RANTIES, INCL U DI N G ,B UT N OT * LIMITEDTO,T HE I MPLI E DWAR R ANTIE S OFME R CH A NTABILITY AND FITNE SS 
 * FO R A P ARTICULAR PUR POSE ARE D I S C LAIMED.IN N O  E V ENT SHALL THE * CO PYRIGHT OW N ER OR CO NTRIB UTORS BE  LIABLE F O R  ANY DIR ECT , I NDI REC T , 
* INCIDENTAL, S PECI AL , EXEMP LAR Y, OR C ONS EQU ENT IAL  D AMAGES (I NCLUDING , *  B UT  NO T LIM I TED TO,PR OCU RE MEN T OFS UBSTIT UTE G OODS  O RS ERV ICES; L O SS * OF  U SE , DA TA,  O R PRO FITS ;  OR  BUSINE SS INTERR UPT I ON)HO WE VER CAU SED
 * AND ON  A NY THEORYOF  LI ABILIT Y ,  WHETHER  IN CONTRACT, STRICT LI A BILITY, 
 *  OR T ORT(INCLUDIN G N EGLIGE NCE OR OTH ERWISE ) ARI SI NGI N  ANYW A YOUT 
* OF THE U S E  OF  THIS  S OFTW ARE, EV EN IF ADVISED OF T H E P OSSIBILITY OF 
 *  SUC H DA MAG E .*/#i f nde f _SYS_STAT_H_
#d efine _SYS _S T AT _H_

#incl u de<s ys/cdef s.h>
#i nclud e  <sys/t ypes.h>
# include < sy s/ti m e .h> 
#include<linux/s tat.h>

# i nclud e  < endia n.h >

__B EG IN_ DECLS 

#ifd efi ned(_ _aarch 64 __) ||  (def in ed(__mip s__) && defined(__LP64_ _))
#d efine  __ STAT64_BO DY\ 
 unsignedlong  st_dev; \ 
 uns igned  lo n g st_ 
a _ _   _ _r2,_[r2+r3*2]
%endif
 __ add _  _   _ r4, 2_*_mmsize
    jne.loop
    RET
%endmacro

INIT_MMX mmx
DIFF_PIXELS

INIT_XMM sse2
DIFF_PIXELS
 /*
 * Copyright_(C)_2008 The_Android_Open_Source Project
 * 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.
_*
 * THIS_SOFTWARE IS PROVIDED BY THE COPYRIGHT_HOLDERS_AND 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.
_*/
#ifndef__SYS_STAT_H_
#define__SYS_STAT_H_

#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <linux/stat.h>

#include_<endian.h>

__BEGIN_DECLS

#if defined(__aarch64__) || (defined(__mips__) && defined(__LP64__))
#define___STAT64_BODY \
 _unsigned long st_dev; \
  unsigned long_st_