Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  cpu.cpp

  Sprache: C
 

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * 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/. */


/* This file replaces the CPU info methods originally implemented in
 * src/dsp/cpu.c, due to missing dependencies for Andriod builds. It
 * controls if NEON/SSE/etc is used. */


#include "../dsp/dsp.h"
#include "mozilla/arm.h"
#include "mozilla/SSE.h"

extern "C" {
extern VP8CPUInfo VP8GetCPUInfo;
extern VP8CPUInfo SharpYuvGetCPUInfo;
}

static int MozCPUInfo(CPUFeature feature)
{
  switch (feature) {
    case kSSE2:
      return mozilla::supports_sse2();
    case kSSE3:
      return mozilla::supports_sse3();
    case kSSE4_1:
      return mozilla::supports_sse4_1();
    case kAVX:
      return mozilla::supports_avx();
    case kAVX2:
      return mozilla::supports_avx2();
    case kNEON:
      return mozilla::supports_neon();
#if defined(WEBP_USE_MIPS32) || defined(WEBP_USE_MIPS_DSP_R2) || defined(WEBP_USE_MSA)
    case kMIPS32:
    case kMIPSdspR2:
    case kMSA:
      return 1;
#endif
    default:
      return 0;
  }
}

VP8CPUInfo VP8GetCPUInfo = MozCPUInfo;
VP8CPUInfo SharpYuvGetCPUInfo = MozCPUInfo;

Messung V0.5 in Prozent
C=85 H=93 G=88

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© 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

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik