You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.7KB

  1. /*
  2. * Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com>
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. /*
  21. low level assembler interface wrapper
  22. DEFUN(put_pixels_clamped,mL1,
  23. (int16_t *block, uint8_t *dest, int line_size)):
  24. body
  25. rts;
  26. */
  27. #ifndef AVCODEC_BFIN_CONFIG_BFIN_H
  28. #define AVCODEC_BFIN_CONFIG_BFIN_H
  29. #include "config.h"
  30. #ifndef DEFUN
  31. #define mL3 .text
  32. #ifndef mL1
  33. #if defined(__FDPIC__) && CONFIG_SRAM
  34. #define mL1 .l1.text
  35. #else
  36. #define mL1 mL3
  37. #endif
  38. #endif
  39. #define DEFUN(fname,where,interface) \
  40. .section where; \
  41. .global _ff_bfin_ ## fname ; \
  42. .type _ff_bfin_ ## fname, STT_FUNC; \
  43. .align 8; \
  44. _ff_bfin_ ## fname
  45. #define DEFUN_END(fname) \
  46. .size _ff_bfin_ ## fname, . - _ff_bfin_ ## fname
  47. #ifdef __FDPIC__
  48. #define RELOC(reg,got,obj) reg = [got + obj@GOT17M4]
  49. #else
  50. #define RELOC(reg,got,obj) reg.L = obj; reg.H = obj
  51. #endif
  52. #endif
  53. #endif /* AVCODEC_BFIN_CONFIG_BFIN_H */