Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__H264__App
annotate libavutil/x86/timer.h @ 9:ea1ba68cf0ed
update to match api changes + add sscc produced source
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 05 Jun 2013 14:43:26 +0200 |
| parents | |
| children |
| rev | line source |
|---|---|
| nengel@2 | 1 /* |
| nengel@2 | 2 * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> |
| nengel@2 | 3 * |
| nengel@2 | 4 * This file is part of FFmpeg. |
| nengel@2 | 5 * |
| nengel@2 | 6 * FFmpeg is free software; you can redistribute it and/or |
| nengel@2 | 7 * modify it under the terms of the GNU Lesser General Public |
| nengel@2 | 8 * License as published by the Free Software Foundation; either |
| nengel@2 | 9 * version 2.1 of the License, or (at your option) any later version. |
| nengel@2 | 10 * |
| nengel@2 | 11 * FFmpeg is distributed in the hope that it will be useful, |
| nengel@2 | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| nengel@2 | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| nengel@2 | 14 * Lesser General Public License for more details. |
| nengel@2 | 15 * |
| nengel@2 | 16 * You should have received a copy of the GNU Lesser General Public |
| nengel@2 | 17 * License along with FFmpeg; if not, write to the Free Software |
| nengel@2 | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| nengel@2 | 19 */ |
| nengel@2 | 20 |
| nengel@2 | 21 #ifndef AVUTIL_X86_TIMER_H |
| nengel@2 | 22 #define AVUTIL_X86_TIMER_H |
| nengel@2 | 23 |
| nengel@2 | 24 #include <stdint.h> |
| nengel@2 | 25 |
| nengel@2 | 26 #define AV_READ_TIME read_time |
| nengel@2 | 27 |
| nengel@2 | 28 static inline uint64_t read_time(void) |
| nengel@2 | 29 { |
| nengel@2 | 30 uint32_t a, d; |
| nengel@2 | 31 __asm__ volatile("rdtsc" : "=a" (a), "=d" (d)); |
| nengel@2 | 32 return ((uint64_t)d << 32) + a; |
| nengel@2 | 33 } |
| nengel@2 | 34 |
| nengel@2 | 35 #endif /* AVUTIL_X86_TIMER_H */ |
