Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  nsRectIntersectGeneric.h

  Sprache: C
 

/* this source code form is subject to the terms of the mozilla public
 * license, v. 2.0. if a copy of the mpl was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef NSRECT_INTERSECT_GENERIC_H_
#define NSRECT_INTERSECT_GENERIC_H_

#include "nsRect.h"

#include <xsimd/xsimd.hpp>

namespace mozilla {

template <class Arch>
struct IntersectEngine {
 private:
  static void Intersect(const int32_t lhs[4], const int32_t rhs[4],
                        int32_t result[4]);
  static bool IntersectRect(const int32_t lhs[4], const int32_t rhs[4],
                            int32_t result[4]);

 public:
  static nsRect Intersect(const nsRect* lhs, const nsRect* rhs) {
    nsRect result;
    Intersect(reinterpret_cast<const int32_t*>(lhs),
              reinterpret_cast<const int32_t*>(rhs),
              reinterpret_cast<int32_t*>(&result));
    return result;
  }
  static bool IntersectRect(const nsRect* lhs, const nsRect* rhs,
                            nsRect* result) {
    return IntersectRect(reinterpret_cast<const int32_t*>(lhs),
                         reinterpret_cast<const int32_t*>(rhs),
                         reinterpret_cast<int32_t*>(result));
  }
};

}  // namespace mozilla

#endif /* NSRECT_INTERSECT_GENERIC_H_ */

Messung V0.5 in Prozent
C=91 H=97 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002