shithub: libvpx

Download patch

ref: 15a75b45304248f746634b43763c496322bf8968
parent: f685d508da549b0eccfc455c04e2b6fbc3eeb251
parent: 0d1aec7373b6e43825281f0a4f9d40df77323e0a
author: James Zern <jzern@google.com>
date: Thu Jul 29 20:48:08 EDT 2021

Merge "vpx_ports/x86.h: sync with aom_ports/x86.h" into main

--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -242,7 +242,7 @@
 // x86_readtsc directly, but prevent the CPU's out-of-order execution from
 // affecting the measurement (by having earlier/later instructions be evaluated
 // in the time interval). See the white paper, "How to Benchmark Code
-// Execution Times on Intel® IA-32 and IA-64 Instruction Set Architectures" by
+// Execution Times on Intel(R) IA-32 and IA-64 Instruction Set Architectures" by
 // Gabriele Paoloni for more information.
 //
 // If you are timing a large function (CPU time > a couple of seconds), use
@@ -308,6 +308,7 @@
 
 static INLINE unsigned int x86_tsc_start(void) {
   unsigned int reg_eax, reg_ebx, reg_ecx, reg_edx;
+  // This call should not be removed. See function notes above.
   cpuid(0, 0, reg_eax, reg_ebx, reg_ecx, reg_edx);
   // Avoid compiler warnings on unused-but-set variables.
   (void)reg_eax;
@@ -320,6 +321,7 @@
 static INLINE unsigned int x86_tsc_end(void) {
   uint32_t v = x86_readtscp();
   unsigned int reg_eax, reg_ebx, reg_ecx, reg_edx;
+  // This call should not be removed. See function notes above.
   cpuid(0, 0, reg_eax, reg_ebx, reg_ecx, reg_edx);
   // Avoid compiler warnings on unused-but-set variables.
   (void)reg_eax;