annotate libavutil/arm/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) 2009 Mans Rullgard <mans@mansr.com>
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_ARM_TIMER_H
nengel@2 22 #define AVUTIL_ARM_TIMER_H
nengel@2 23
nengel@2 24 #include <stdint.h>
nengel@2 25 #include "config.h"
nengel@2 26
nengel@2 27 #if HAVE_INLINE_ASM && defined(__ARM_ARCH_7A__)
nengel@2 28
nengel@2 29 #define AV_READ_TIME read_time
nengel@2 30
nengel@2 31 static inline uint64_t read_time(void)
nengel@2 32 {
nengel@2 33 unsigned cc;
nengel@2 34 __asm__ volatile ("mrc p15, 0, %0, c9, c13, 0" : "=r"(cc));
nengel@2 35 return cc;
nengel@2 36 }
nengel@2 37
nengel@2 38 #endif /* HAVE_INLINE_ASM && __ARM_ARCH_7A__ */
nengel@2 39
nengel@2 40 #endif /* AVUTIL_ARM_TIMER_H */