tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsHtml5TokenizerSIMD.cpp (1776B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #include "nsHtml5Tokenizer.h"
      6 #include "nsHtml5TokenizerLoopPoliciesSIMD.h"
      7 
      8 int32_t nsHtml5Tokenizer::StateLoopFastestSIMD(int32_t state, char16_t c,
      9                                               int32_t pos, char16_t* buf,
     10                                               bool reconsume,
     11                                               int32_t returnState,
     12                                               int32_t endPos) {
     13  return stateLoop<nsHtml5FastestPolicySIMD>(state, c, pos, buf, reconsume,
     14                                             returnState, endPos);
     15 }
     16 
     17 int32_t nsHtml5Tokenizer::StateLoopLineColSIMD(int32_t state, char16_t c,
     18                                               int32_t pos, char16_t* buf,
     19                                               bool reconsume,
     20                                               int32_t returnState,
     21                                               int32_t endPos) {
     22  return stateLoop<nsHtml5LineColPolicySIMD>(state, c, pos, buf, reconsume,
     23                                             returnState, endPos);
     24 }
     25 
     26 int32_t nsHtml5Tokenizer::StateLoopViewSourceSIMD(int32_t state, char16_t c,
     27                                                  int32_t pos, char16_t* buf,
     28                                                  bool reconsume,
     29                                                  int32_t returnState,
     30                                                  int32_t endPos) {
     31  return stateLoop<nsHtml5ViewSourcePolicySIMD>(state, c, pos, buf, reconsume,
     32                                                returnState, endPos);
     33 }